forked from OSchip/llvm-project
minor changes so that GCC builtin can be specified before the Intrinsic info,
add some more PPC intrinsics. llvm-svn: 26786
This commit is contained in:
parent
6d6084fd04
commit
d348f5be2c
|
@ -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]>;
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue