ARM: rename ARM builtins to use __builtin_arm prefix

This corrects SVN r212196's naming change to use the proper prefix of
`__builtin_arm_` instead of `__builtin_`.

Thanks to Yi Kong for pointing out the incorrect naming!

llvm-svn: 212253
This commit is contained in:
Saleem Abdulrasool 2014-07-03 02:43:20 +00:00
parent 395421fd98
commit ece7217f70
3 changed files with 15 additions and 15 deletions

View File

@ -68,11 +68,11 @@ BUILTIN(__builtin_arm_crc32d, "UiUiLLUi", "nc")
BUILTIN(__builtin_arm_crc32cd, "UiUiLLUi", "nc")
// HINT
BUILTIN(__builtin_yield, "v", "")
BUILTIN(__builtin_wfe, "v", "")
BUILTIN(__builtin_wfi, "v", "")
BUILTIN(__builtin_sev, "v", "")
BUILTIN(__builtin_sevl, "v", "")
BUILTIN(__builtin_arm_yield, "v", "")
BUILTIN(__builtin_arm_wfe, "v", "")
BUILTIN(__builtin_arm_wfi, "v", "")
BUILTIN(__builtin_arm_sev, "v", "")
BUILTIN(__builtin_arm_sevl, "v", "")
// Data barrier
BUILTIN(__builtin_arm_dmb, "vUi", "nc")

View File

@ -3033,23 +3033,23 @@ Value *CodeGenFunction::EmitARMBuiltinExpr(unsigned BuiltinID,
unsigned HintID = static_cast<unsigned>(-1);
switch (BuiltinID) {
default: break;
case ARM::BI__builtin_yield:
case ARM::BI__builtin_arm_yield:
case ARM::BI__yield:
HintID = 1;
break;
case ARM::BI__builtin_wfe:
case ARM::BI__builtin_arm_wfe:
case ARM::BI__wfe:
HintID = 2;
break;
case ARM::BI__builtin_wfi:
case ARM::BI__builtin_arm_wfi:
case ARM::BI__wfi:
HintID = 3;
break;
case ARM::BI__builtin_sev:
case ARM::BI__builtin_arm_sev:
case ARM::BI__sev:
HintID = 4;
break;
case ARM::BI__builtin_sevl:
case ARM::BI__builtin_arm_sevl:
case ARM::BI__sevl:
HintID = 5;
break;

View File

@ -20,31 +20,31 @@ void test_eh_return_data_regno()
}
void yield() {
__builtin_yield();
__builtin_arm_yield();
}
// CHECK: call {{.*}} @llvm.arm.hint(i32 1)
void wfe() {
__builtin_wfe();
__builtin_arm_wfe();
}
// CHECK: call {{.*}} @llvm.arm.hint(i32 2)
void wfi() {
__builtin_wfi();
__builtin_arm_wfi();
}
// CHECK: call {{.*}} @llvm.arm.hint(i32 3)
void sev() {
__builtin_sev();
__builtin_arm_sev();
}
// CHECK: call {{.*}} @llvm.arm.hint(i32 4)
void sevl() {
__builtin_sevl();
__builtin_arm_sevl();
}
// CHECK: call {{.*}} @llvm.arm.hint(i32 5)