forked from OSchip/llvm-project
CodeGen: rename __builtin_arm_sevl to __sevl
ACLE adds the __sevl() extension. Rename the hint from a custom name to the ACLE specified name. llvm-svn: 207829
This commit is contained in:
parent
718ada97bc
commit
38ed6de3a0
|
@ -59,7 +59,7 @@ BUILTIN(__builtin_arm_crc32d, "UiUiLLUi", "nc")
|
|||
BUILTIN(__builtin_arm_crc32cd, "UiUiLLUi", "nc")
|
||||
|
||||
// HINT
|
||||
BUILTIN(__builtin_arm_sevl, "v", "")
|
||||
BUILTIN(__sevl, "v", "")
|
||||
|
||||
// Data barrier
|
||||
BUILTIN(__builtin_arm_dmb, "vUi", "nc")
|
||||
|
|
|
@ -4332,6 +4332,11 @@ Value *CodeGenFunction::EmitARMBuiltinExpr(unsigned BuiltinID,
|
|||
return Builder.CreateCall(F, llvm::ConstantInt::get(Int32Ty, 1));
|
||||
}
|
||||
|
||||
if (BuiltinID == ARM::BI__sevl) {
|
||||
Function *F = CGM.getIntrinsic(Intrinsic::arm_hint);
|
||||
return Builder.CreateCall(F, llvm::ConstantInt::get(Int32Ty, 5));
|
||||
}
|
||||
|
||||
if (BuiltinID == ARM::BI__clear_cache) {
|
||||
assert(E->getNumArgs() == 2 && "__clear_cache takes 2 arguments");
|
||||
const FunctionDecl *FD = E->getDirectCallee();
|
||||
|
@ -4428,11 +4433,6 @@ Value *CodeGenFunction::EmitARMBuiltinExpr(unsigned BuiltinID,
|
|||
return Builder.CreateCall(F);
|
||||
}
|
||||
|
||||
if (BuiltinID == ARM::BI__builtin_arm_sevl) {
|
||||
Function *F = CGM.getIntrinsic(Intrinsic::arm_hint);
|
||||
return Builder.CreateCall(F, llvm::ConstantInt::get(Int32Ty, 5));
|
||||
}
|
||||
|
||||
// CRC32
|
||||
Intrinsic::ID CRCIntrinsicID = Intrinsic::not_intrinsic;
|
||||
switch (BuiltinID) {
|
||||
|
|
|
@ -20,7 +20,7 @@ void test_eh_return_data_regno()
|
|||
}
|
||||
|
||||
void sevl() {
|
||||
__builtin_arm_sevl();
|
||||
__sevl();
|
||||
}
|
||||
// CHECK: call {{.*}} @llvm.arm.hint(i32 5)
|
||||
|
||||
|
|
Loading…
Reference in New Issue