xref: /freebsd/contrib/llvm-project/clang/lib/Headers/riscv_ntlh.h (revision 5f757f3ff9144b609b3c433dfd370cc6bdc191ad)
106c3fb27SDimitry Andric /*===---- riscv_ntlh.h - RISC-V NTLH intrinsics ----------------------------===
206c3fb27SDimitry Andric  *
306c3fb27SDimitry Andric  * Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
406c3fb27SDimitry Andric  * See https://llvm.org/LICENSE.txt for license information.
506c3fb27SDimitry Andric  * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
606c3fb27SDimitry Andric  *
706c3fb27SDimitry Andric  *===-----------------------------------------------------------------------===
806c3fb27SDimitry Andric  */
906c3fb27SDimitry Andric 
1006c3fb27SDimitry Andric #ifndef __RISCV_NTLH_H
1106c3fb27SDimitry Andric #define __RISCV_NTLH_H
1206c3fb27SDimitry Andric 
1306c3fb27SDimitry Andric #ifndef __riscv_zihintntl
1406c3fb27SDimitry Andric #error "NTLH intrinsics require the NTLH extension."
1506c3fb27SDimitry Andric #endif
1606c3fb27SDimitry Andric 
1706c3fb27SDimitry Andric enum {
1806c3fb27SDimitry Andric   __RISCV_NTLH_INNERMOST_PRIVATE = 2,
1906c3fb27SDimitry Andric   __RISCV_NTLH_ALL_PRIVATE,
2006c3fb27SDimitry Andric   __RISCV_NTLH_INNERMOST_SHARED,
2106c3fb27SDimitry Andric   __RISCV_NTLH_ALL
2206c3fb27SDimitry Andric };
2306c3fb27SDimitry Andric 
24*5f757f3fSDimitry Andric #define __riscv_ntl_load __builtin_riscv_ntl_load
25*5f757f3fSDimitry Andric #define __riscv_ntl_store __builtin_riscv_ntl_store
2606c3fb27SDimitry Andric #endif
27