mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-01 00:33:09 +00:00
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:
parent
b2f6c0075c
commit
8ed32f6f8e
@ -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
Block a user