From dfdcd5bb959cb1eb7632ae25ccfaa17a75257348 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 15 Mar 2006 01:32:36 +0000 Subject: [PATCH] Set TargetPrefix on target-specific intrinsics. That way, in theory, different targets could have different implemenations of a __builtin_foo gcc intrinsic. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26769 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Intrinsics.td | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/include/llvm/Intrinsics.td b/include/llvm/Intrinsics.td index 3abe7399b0c..7cb345fbc63 100644 --- a/include/llvm/Intrinsics.td +++ b/include/llvm/Intrinsics.td @@ -97,6 +97,7 @@ class Intrinsic types, string name = ""> { string LLVMName = name; string GCCBuiltinName = ""; + string TargetPrefix = ""; // Set to a prefix for target-specific intrinsics. list Types = types; list 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">; +}