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 18BUILTIN(__clear_cache, "vv*v*", "i") 19 20BUILTIN(__builtin_arm_ldrex, "v.", "t") 21BUILTIN(__builtin_arm_ldaex, "v.", "t") 22BUILTIN(__builtin_arm_strex, "i.", "t") 23BUILTIN(__builtin_arm_stlex, "i.", "t") 24BUILTIN(__builtin_arm_clrex, "v", "") 25 26// Bit manipulation 27BUILTIN(__builtin_arm_rbit, "UiUi", "nc") 28BUILTIN(__builtin_arm_rbit64, "LUiLUi", "nc") 29 30// HINT 31BUILTIN(__builtin_arm_nop, "v", "") 32BUILTIN(__builtin_arm_yield, "v", "") 33BUILTIN(__builtin_arm_wfe, "v", "") 34BUILTIN(__builtin_arm_wfi, "v", "") 35BUILTIN(__builtin_arm_sev, "v", "") 36BUILTIN(__builtin_arm_sevl, "v", "") 37 38// CRC32 39BUILTIN(__builtin_arm_crc32b, "UiUiUc", "nc") 40BUILTIN(__builtin_arm_crc32cb, "UiUiUc", "nc") 41BUILTIN(__builtin_arm_crc32h, "UiUiUs", "nc") 42BUILTIN(__builtin_arm_crc32ch, "UiUiUs", "nc") 43BUILTIN(__builtin_arm_crc32w, "UiUiUi", "nc") 44BUILTIN(__builtin_arm_crc32cw, "UiUiUi", "nc") 45BUILTIN(__builtin_arm_crc32d, "UiUiLUi", "nc") 46BUILTIN(__builtin_arm_crc32cd, "UiUiLUi", "nc") 47 48// Memory barrier 49BUILTIN(__builtin_arm_dmb, "vUi", "nc") 50BUILTIN(__builtin_arm_dsb, "vUi", "nc") 51BUILTIN(__builtin_arm_isb, "vUi", "nc") 52 53// Prefetch 54BUILTIN(__builtin_arm_prefetch, "vvC*UiUiUiUi", "nc") 55 56// System Registers 57BUILTIN(__builtin_arm_rsr, "UicC*", "nc") 58BUILTIN(__builtin_arm_rsr64, "LUicC*", "nc") 59BUILTIN(__builtin_arm_rsrp, "v*cC*", "nc") 60BUILTIN(__builtin_arm_wsr, "vcC*Ui", "nc") 61BUILTIN(__builtin_arm_wsr64, "vcC*LUi", "nc") 62BUILTIN(__builtin_arm_wsrp, "vcC*vC*", "nc") 63 64#undef BUILTIN 65