minor changes so that GCC builtin can be specified before the Intrinsic info,

add some more PPC intrinsics.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26786 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2006-03-15 19:23:40 +00:00
parent b2f6c0075c
commit 8ed32f6f8e

View File

@ -96,7 +96,6 @@ class Intrinsic<list<LLVMType> types,
list<IntrinsicProperty> properties = [],
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;
@ -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]>;
}