xref: /aosp_15_r20/prebuilts/clang-tools/linux-x86/clang-headers/riscv_ntlh.h (revision bed243d3d9cd544cfb038bfa7be843dedc6e6bf7)
1*bed243d3SAndroid Build Coastguard Worker /*===---- riscv_ntlh.h - RISC-V NTLH intrinsics ----------------------------===
2*bed243d3SAndroid Build Coastguard Worker  *
3*bed243d3SAndroid Build Coastguard Worker  * Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4*bed243d3SAndroid Build Coastguard Worker  * See https://llvm.org/LICENSE.txt for license information.
5*bed243d3SAndroid Build Coastguard Worker  * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6*bed243d3SAndroid Build Coastguard Worker  *
7*bed243d3SAndroid Build Coastguard Worker  *===-----------------------------------------------------------------------===
8*bed243d3SAndroid Build Coastguard Worker  */
9*bed243d3SAndroid Build Coastguard Worker 
10*bed243d3SAndroid Build Coastguard Worker #ifndef __RISCV_NTLH_H
11*bed243d3SAndroid Build Coastguard Worker #define __RISCV_NTLH_H
12*bed243d3SAndroid Build Coastguard Worker 
13*bed243d3SAndroid Build Coastguard Worker #ifndef __riscv_zihintntl
14*bed243d3SAndroid Build Coastguard Worker #error "NTLH intrinsics require the NTLH extension."
15*bed243d3SAndroid Build Coastguard Worker #endif
16*bed243d3SAndroid Build Coastguard Worker 
17*bed243d3SAndroid Build Coastguard Worker enum {
18*bed243d3SAndroid Build Coastguard Worker   __RISCV_NTLH_INNERMOST_PRIVATE = 2,
19*bed243d3SAndroid Build Coastguard Worker   __RISCV_NTLH_ALL_PRIVATE,
20*bed243d3SAndroid Build Coastguard Worker   __RISCV_NTLH_INNERMOST_SHARED,
21*bed243d3SAndroid Build Coastguard Worker   __RISCV_NTLH_ALL
22*bed243d3SAndroid Build Coastguard Worker };
23*bed243d3SAndroid Build Coastguard Worker 
24*bed243d3SAndroid Build Coastguard Worker #define __riscv_ntl_load __builtin_riscv_ntl_load
25*bed243d3SAndroid Build Coastguard Worker #define __riscv_ntl_store __builtin_riscv_ntl_store
26*bed243d3SAndroid Build Coastguard Worker #endif
27