From d348f5be2cd0fb9f229a9d5d1a2ab61563df8f7e Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 15 Mar 2006 19:23:40 +0000 Subject: [PATCH] minor changes so that GCC builtin can be specified before the Intrinsic info, add some more PPC intrinsics. llvm-svn: 26786 --- llvm/include/llvm/Intrinsics.td | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/llvm/include/llvm/Intrinsics.td b/llvm/include/llvm/Intrinsics.td index 7cb345fbc63e..2d34ce037a90 100644 --- a/llvm/include/llvm/Intrinsics.td +++ b/llvm/include/llvm/Intrinsics.td @@ -96,7 +96,6 @@ class Intrinsic types, list properties = [], string name = ""> { string LLVMName = name; - string GCCBuiltinName = ""; string TargetPrefix = ""; // Set to a prefix for target-specific intrinsics. list Types = types; list Properties = properties; @@ -215,7 +214,18 @@ def int_dbg_func_start : Intrinsic<[llvm_void_ty, llvm_descriptor_ty]>; // PowerPC Intrinsics // 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">; + def int_ppc_altivec_lvx : GCCBuiltin<"__builtin_altivec_lvx">, + Intrinsic<[llvm_v4i32_ty, llvm_int_ty, llvm_ptr_ty], + [IntrReadMem]>; + def int_ppc_altivec_stvx : GCCBuiltin<"__builtin_altivec_stvx">, + Intrinsic<[llvm_void_ty, llvm_v4i32_ty, llvm_int_ty, llvm_ptr_ty], + [IntrWriteMem]>; + + def int_ppc_altivec_vmaddfp : GCCBuiltin<"__builtin_altivec_vmaddfp">, + Intrinsic<[llvm_v4f32_ty, llvm_v4f32_ty, + llvm_v4f32_ty, llvm_v4f32_ty], [InstrNoMem]>; + def int_ppc_altivec_vadduwm : GCCBuiltin<"__builtin_altivec_vadduwm">, + Intrinsic<[llvm_v4i32_ty, llvm_v4i32_ty, llvm_v4i32_ty], + [InstrNoMem]>; + }