mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
cfa5724d50
Added new operand type for intrinsics (IIT_V64) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218668 91177308-0d34-0410-b5e6-96231b3b80d8
31 lines
784 B
TableGen
31 lines
784 B
TableGen
// RUN: llvm-tblgen -gen-intrinsic %s | FileCheck %s
|
|
// XFAIL: vg_leak
|
|
|
|
class IntrinsicProperty;
|
|
|
|
class ValueType<int size, int value> {
|
|
string Namespace = "MVT";
|
|
int Size = size;
|
|
int Value = value;
|
|
}
|
|
|
|
class LLVMType<ValueType vt> {
|
|
ValueType VT = vt;
|
|
}
|
|
|
|
class Intrinsic<string name, list<LLVMType> param_types = []> {
|
|
string LLVMName = name;
|
|
bit isTarget = 0;
|
|
string TargetPrefix = "";
|
|
list<LLVMType> RetTypes = [];
|
|
list<LLVMType> ParamTypes = param_types;
|
|
list<IntrinsicProperty> Properties = [];
|
|
}
|
|
|
|
// isVoid needs to match the definition in ValueTypes.td
|
|
def isVoid : ValueType<0, 56>; // Produces no value
|
|
def llvm_vararg_ty : LLVMType<isVoid>; // this means vararg here
|
|
|
|
// CHECK: /* 0 */ 0, 28, 0,
|
|
def int_foo : Intrinsic<"llvm.foo", [llvm_vararg_ty]>;
|