Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
14 | pmbaty | 1 | //==- BuiltinsLoongArch.def - LoongArch Builtin function database -- C++ -*-==// |
2 | // |
||
3 | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
||
4 | // See https://llvm.org/LICENSE.txt for license information. |
||
5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
||
6 | // |
||
7 | //===----------------------------------------------------------------------===// |
||
8 | // |
||
9 | // This file defines the LoongArch-specific builtin function database. Users of |
||
10 | // this file must define the BUILTIN macro to make use of this information. |
||
11 | // |
||
12 | //===----------------------------------------------------------------------===// |
||
13 | |||
14 | #if defined(BUILTIN) && !defined(TARGET_BUILTIN) |
||
15 | # define TARGET_BUILTIN(ID, TYPE, ATTRS, FEATURE) BUILTIN(ID, TYPE, ATTRS) |
||
16 | #endif |
||
17 | |||
18 | // TODO: Support more builtins. |
||
19 | // TODO: Added feature constraints. |
||
20 | TARGET_BUILTIN(__builtin_loongarch_cacop_d, "vLiULiLi", "nc", "64bit") |
||
21 | TARGET_BUILTIN(__builtin_loongarch_cacop_w, "viUii", "nc", "32bit") |
||
22 | TARGET_BUILTIN(__builtin_loongarch_dbar, "vIUi", "nc", "") |
||
23 | TARGET_BUILTIN(__builtin_loongarch_ibar, "vIUi", "nc", "") |
||
24 | TARGET_BUILTIN(__builtin_loongarch_movfcsr2gr, "UiIUi", "nc", "f") |
||
25 | TARGET_BUILTIN(__builtin_loongarch_movgr2fcsr, "vIUiUi", "nc", "f") |
||
26 | TARGET_BUILTIN(__builtin_loongarch_break, "vIUi", "nc", "") |
||
27 | TARGET_BUILTIN(__builtin_loongarch_syscall, "vIUi", "nc", "") |
||
28 | TARGET_BUILTIN(__builtin_loongarch_cpucfg, "UiUi", "nc", "") |
||
29 | TARGET_BUILTIN(__builtin_loongarch_asrtle_d, "vLiLi", "nc", "64bit") |
||
30 | TARGET_BUILTIN(__builtin_loongarch_asrtgt_d, "vLiLi", "nc", "64bit") |
||
31 | |||
32 | TARGET_BUILTIN(__builtin_loongarch_crc_w_b_w, "iii", "nc", "64bit") |
||
33 | TARGET_BUILTIN(__builtin_loongarch_crc_w_h_w, "iii", "nc", "64bit") |
||
34 | TARGET_BUILTIN(__builtin_loongarch_crc_w_w_w, "iii", "nc", "64bit") |
||
35 | TARGET_BUILTIN(__builtin_loongarch_crc_w_d_w, "iLii", "nc", "64bit") |
||
36 | TARGET_BUILTIN(__builtin_loongarch_crcc_w_b_w, "iii", "nc", "64bit") |
||
37 | TARGET_BUILTIN(__builtin_loongarch_crcc_w_h_w, "iii", "nc", "64bit") |
||
38 | TARGET_BUILTIN(__builtin_loongarch_crcc_w_w_w, "iii", "nc", "64bit") |
||
39 | TARGET_BUILTIN(__builtin_loongarch_crcc_w_d_w, "iLii", "nc", "64bit") |
||
40 | |||
41 | TARGET_BUILTIN(__builtin_loongarch_csrrd_w, "UiIUi", "nc", "") |
||
42 | TARGET_BUILTIN(__builtin_loongarch_csrrd_d, "ULiIUi", "nc", "64bit") |
||
43 | TARGET_BUILTIN(__builtin_loongarch_csrwr_w, "UiUiIUi", "nc", "") |
||
44 | TARGET_BUILTIN(__builtin_loongarch_csrwr_d, "ULiULiIUi", "nc", "64bit") |
||
45 | TARGET_BUILTIN(__builtin_loongarch_csrxchg_w, "UiUiUiIUi", "nc", "") |
||
46 | TARGET_BUILTIN(__builtin_loongarch_csrxchg_d, "ULiULiULiIUi", "nc", "64bit") |
||
47 | |||
48 | TARGET_BUILTIN(__builtin_loongarch_iocsrrd_b, "UiUi", "nc", "") |
||
49 | TARGET_BUILTIN(__builtin_loongarch_iocsrrd_h, "UiUi", "nc", "") |
||
50 | TARGET_BUILTIN(__builtin_loongarch_iocsrrd_w, "UiUi", "nc", "") |
||
51 | TARGET_BUILTIN(__builtin_loongarch_iocsrrd_d, "ULiUi", "nc", "64bit") |
||
52 | TARGET_BUILTIN(__builtin_loongarch_iocsrwr_b, "vUiUi", "nc", "") |
||
53 | TARGET_BUILTIN(__builtin_loongarch_iocsrwr_h, "vUiUi", "nc", "") |
||
54 | TARGET_BUILTIN(__builtin_loongarch_iocsrwr_w, "vUiUi", "nc", "") |
||
55 | TARGET_BUILTIN(__builtin_loongarch_iocsrwr_d, "vULiUi", "nc", "64bit") |
||
56 | |||
57 | TARGET_BUILTIN(__builtin_loongarch_lddir_d, "LiLiIULi", "nc", "64bit") |
||
58 | TARGET_BUILTIN(__builtin_loongarch_ldpte_d, "vLiIULi", "nc", "64bit") |
||
59 | |||
60 | #undef BUILTIN |
||
61 | #undef TARGET_BUILTIN |