Skip to content
Snippets Groups Projects
Commit d348f5be authored by Chris Lattner's avatar Chris Lattner
Browse files

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

add some more PPC intrinsics.

llvm-svn: 26786
parent 6d6084fd
No related branches found
No related tags found
No related merge requests found
......@@ -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]>;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment