mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-12 13:30:51 +00:00
[PPC] Modify HTM and crypto intrinsics to inherit from GCCBuiltin
There was a change to the way some of the HTM and crypto builtins are being handled in Clang. Previously, some of the builtins were dealt with in the CodeGenFunction::EmitPPCBuiltinExpr method (in order to do range checking on constant arguments). These check will been moved to Sema http://reviews.llvm.org/D8672), which means those builtins will not be handled in the EmitPPCBuiltinExpr method anymore. As a result, the definition of the intrinsics in IntrinsicsPowerPC.td needs to be modified to inherit from the GCCBuiltin definition. http://reviews.llvm.org/D8673 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233581 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
770661092f
commit
9039fc77c3
@ -563,11 +563,12 @@ let TargetPrefix = "ppc" in { // All PPC intrinsics start with "llvm.ppc.".
|
||||
Intrinsic<[llvm_v16i8_ty], [llvm_v16i8_ty,
|
||||
llvm_v16i8_ty, llvm_v16i8_ty], [IntrNoMem]>;
|
||||
|
||||
// These need diagnostics for invalid arguments so don't inherit from GCCBuiltin
|
||||
def int_ppc_altivec_crypto_vshasigmad :
|
||||
GCCBuiltin<"__builtin_altivec_crypto_vshasigmad">,
|
||||
Intrinsic<[llvm_v2i64_ty], [llvm_v2i64_ty,
|
||||
llvm_i32_ty, llvm_i32_ty], [IntrNoMem]>;
|
||||
def int_ppc_altivec_crypto_vshasigmaw :
|
||||
GCCBuiltin<"__builtin_altivec_crypto_vshasigmaw">,
|
||||
Intrinsic<[llvm_v4i32_ty], [llvm_v4i32_ty,
|
||||
llvm_i32_ty, llvm_i32_ty], [IntrNoMem]>;
|
||||
}
|
||||
@ -801,20 +802,20 @@ let TargetPrefix = "ppc" in { // All intrinsics start with "llvm.ppc.".
|
||||
|
||||
let TargetPrefix = "ppc" in { // All intrinsics start with "llvm.ppc.".
|
||||
|
||||
def int_ppc_tbegin :
|
||||
def int_ppc_tbegin : GCCBuiltin<"__builtin_tbegin">,
|
||||
Intrinsic<[llvm_i32_ty], [llvm_i32_ty], []>;
|
||||
def int_ppc_tend :
|
||||
def int_ppc_tend : GCCBuiltin<"__builtin_tend">,
|
||||
Intrinsic<[llvm_i32_ty], [llvm_i32_ty], []>;
|
||||
|
||||
def int_ppc_tabort : GCCBuiltin<"__builtin_tabort">,
|
||||
Intrinsic<[llvm_i32_ty], [llvm_i32_ty], []>;
|
||||
def int_ppc_tabortwc :
|
||||
def int_ppc_tabortwc : GCCBuiltin<"__builtin_tabortwc">,
|
||||
Intrinsic<[llvm_i32_ty], [llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], []>;
|
||||
def int_ppc_tabortwci :
|
||||
def int_ppc_tabortwci : GCCBuiltin<"__builtin_tabortwci">,
|
||||
Intrinsic<[llvm_i32_ty], [llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], []>;
|
||||
def int_ppc_tabortdc :
|
||||
def int_ppc_tabortdc : GCCBuiltin<"__builtin_tabortdc">,
|
||||
Intrinsic<[llvm_i32_ty], [llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], []>;
|
||||
def int_ppc_tabortdci :
|
||||
def int_ppc_tabortdci : GCCBuiltin<"__builtin_tabortdci">,
|
||||
Intrinsic<[llvm_i32_ty], [llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], []>;
|
||||
|
||||
def int_ppc_tcheck : GCCBuiltin<"__builtin_tcheck">,
|
||||
@ -823,7 +824,7 @@ def int_ppc_treclaim : GCCBuiltin<"__builtin_treclaim">,
|
||||
Intrinsic<[llvm_i32_ty], [llvm_i32_ty], []>;
|
||||
def int_ppc_trechkpt : GCCBuiltin<"__builtin_trechkpt">,
|
||||
Intrinsic<[llvm_i32_ty], [], []>;
|
||||
def int_ppc_tsr :
|
||||
def int_ppc_tsr : GCCBuiltin<"__builtin_tsr">,
|
||||
Intrinsic<[llvm_i32_ty], [llvm_i32_ty], []>;
|
||||
|
||||
def int_ppc_get_texasr : GCCBuiltin<"__builtin_get_texasr">,
|
||||
|
Loading…
Reference in New Issue
Block a user