]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm/tools/clang/include/clang/Basic/BuiltinsAArch64.def
Update clang to trunk r256633.
[FreeBSD/FreeBSD.git] / contrib / llvm / tools / clang / include / clang / Basic / BuiltinsAArch64.def
1 //==- BuiltinsAArch64.def - AArch64 Builtin function database ----*- C++ -*-==//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // This file defines the AArch64-specific builtin function database.  Users of
11 // this file must define the BUILTIN macro to make use of this information.
12 //
13 //===----------------------------------------------------------------------===//
14
15 // The format of this database matches clang/Basic/Builtins.def.
16
17 // In libgcc
18 BUILTIN(__clear_cache, "vv*v*", "i")
19
20 BUILTIN(__builtin_arm_ldrex, "v.", "t")
21 BUILTIN(__builtin_arm_ldaex, "v.", "t")
22 BUILTIN(__builtin_arm_strex, "i.", "t")
23 BUILTIN(__builtin_arm_stlex, "i.", "t")
24 BUILTIN(__builtin_arm_clrex, "v", "")
25
26 // Bit manipulation
27 BUILTIN(__builtin_arm_rbit, "UiUi", "nc")
28 BUILTIN(__builtin_arm_rbit64, "LUiLUi", "nc")
29
30 // HINT
31 BUILTIN(__builtin_arm_nop, "v", "")
32 BUILTIN(__builtin_arm_yield, "v", "")
33 BUILTIN(__builtin_arm_wfe, "v", "")
34 BUILTIN(__builtin_arm_wfi, "v", "")
35 BUILTIN(__builtin_arm_sev, "v", "")
36 BUILTIN(__builtin_arm_sevl, "v", "")
37
38 // CRC32
39 BUILTIN(__builtin_arm_crc32b, "UiUiUc", "nc")
40 BUILTIN(__builtin_arm_crc32cb, "UiUiUc", "nc")
41 BUILTIN(__builtin_arm_crc32h, "UiUiUs", "nc")
42 BUILTIN(__builtin_arm_crc32ch, "UiUiUs", "nc")
43 BUILTIN(__builtin_arm_crc32w, "UiUiUi", "nc")
44 BUILTIN(__builtin_arm_crc32cw, "UiUiUi", "nc")
45 BUILTIN(__builtin_arm_crc32d, "UiUiLUi", "nc")
46 BUILTIN(__builtin_arm_crc32cd, "UiUiLUi", "nc")
47
48 // Memory barrier
49 BUILTIN(__builtin_arm_dmb, "vUi", "nc")
50 BUILTIN(__builtin_arm_dsb, "vUi", "nc")
51 BUILTIN(__builtin_arm_isb, "vUi", "nc")
52
53 // Prefetch
54 BUILTIN(__builtin_arm_prefetch, "vvC*UiUiUiUi", "nc")
55
56 // System Registers
57 BUILTIN(__builtin_arm_rsr, "UicC*", "nc")
58 BUILTIN(__builtin_arm_rsr64, "LUicC*", "nc")
59 BUILTIN(__builtin_arm_rsrp, "v*cC*", "nc")
60 BUILTIN(__builtin_arm_wsr, "vcC*Ui", "nc")
61 BUILTIN(__builtin_arm_wsr64, "vcC*LUi", "nc")
62 BUILTIN(__builtin_arm_wsrp, "vcC*vC*", "nc")
63 BUILTIN(__builtin_thread_pointer, "v*", "nc")
64
65 #undef BUILTIN