diff options
| author | Chris Lattner <sabre@nondot.org> | 2006-03-15 01:32:36 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2006-03-15 01:32:36 +0000 |
| commit | d00dddeb417c0fa398ee3c7c23debae092891460 (patch) | |
| tree | a06bf5217c2e27585037f30809d331f202336b03 | |
| parent | 2923bd009f8312d2db2767777c9b254ed449e928 (diff) | |
| download | bcm5719-llvm-d00dddeb417c0fa398ee3c7c23debae092891460.tar.gz bcm5719-llvm-d00dddeb417c0fa398ee3c7c23debae092891460.zip | |
Set TargetPrefix on target-specific intrinsics. That way, in theory, different
targets could have different implemenations of a __builtin_foo gcc intrinsic.
llvm-svn: 26769
| -rw-r--r-- | llvm/include/llvm/Intrinsics.td | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/llvm/include/llvm/Intrinsics.td b/llvm/include/llvm/Intrinsics.td index 3abe7399b0c..7cb345fbc63 100644 --- a/llvm/include/llvm/Intrinsics.td +++ b/llvm/include/llvm/Intrinsics.td @@ -97,6 +97,7 @@ class Intrinsic<list<LLVMType> types, string name = ""> { string LLVMName = name; string GCCBuiltinName = ""; + string TargetPrefix = ""; // Set to a prefix for target-specific intrinsics. list<LLVMType> Types = types; list<IntrinsicProperty> Properties = properties; } @@ -204,8 +205,6 @@ def int_dbg_stoppoint : Intrinsic<[llvm_void_ty, def int_dbg_region_start : Intrinsic<[llvm_void_ty]>; def int_dbg_region_end : Intrinsic<[llvm_void_ty]>; def int_dbg_func_start : Intrinsic<[llvm_void_ty, llvm_descriptor_ty]>; -// dbg_declare, // Declare a local object - //===----------------------------------------------------------------------===// @@ -214,8 +213,9 @@ def int_dbg_func_start : Intrinsic<[llvm_void_ty, llvm_descriptor_ty]>; //===----------------------------------------------------------------------===// // PowerPC Intrinsics - -def int_ppc_altivec_lvx : Intrinsic<[llvm_v4i32_ty, llvm_int_ty, llvm_ptr_ty], - [IntrReadMem]>, - GCCBuiltin<"__builtin_altivec_lvx">; - +// +let TargetPrefix = "ppc" in { // All intrinsics start with "llvm.ppc.". + def int_ppc_altivec_lvx : Intrinsic<[llvm_v4i32_ty, llvm_int_ty, llvm_ptr_ty], + [IntrReadMem]>, + GCCBuiltin<"__builtin_altivec_lvx">; +} |

