diff options
Diffstat (limited to 'clang/lib/Headers/arm_acle.h')
| -rw-r--r-- | clang/lib/Headers/arm_acle.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/clang/lib/Headers/arm_acle.h b/clang/lib/Headers/arm_acle.h index a7406fbf0a8..460f2975d46 100644 --- a/clang/lib/Headers/arm_acle.h +++ b/clang/lib/Headers/arm_acle.h @@ -34,6 +34,30 @@ extern "C" { #endif +/* 8.4 - Hints */ + +#if !defined(_MSC_VER) +static __inline__ void __attribute__((always_inline, nodebug)) __wfi(void) { + __builtin_arm_wfi(); +} + +static __inline__ void __attribute__((always_inline, nodebug)) __wfe(void) { + __builtin_arm_wfe(); +} + +static __inline__ void __attribute__((always_inline, nodebug)) __sev(void) { + __builtin_arm_sev(); +} + +static __inline__ void __attribute__((always_inline, nodebug)) __sevl(void) { + __builtin_arm_sevl(); +} + +static __inline__ void __attribute__((always_inline, nodebug)) __yield(void) { + __builtin_arm_yield(); +} +#endif + /* 9 DATA-PROCESSING INTRINSICS */ /* 9.2 Miscellaneous data-processing intrinsics */ static __inline__ uint32_t __attribute__((always_inline, nodebug)) |

