2013-11-01 01:18:11 +08:00
|
|
|
// RUN: llvm-tblgen -gen-intrinsic %s | FileCheck %s
|
2013-11-10 22:26:08 +08:00
|
|
|
// XFAIL: vg_leak
|
2013-11-01 01:18:11 +08:00
|
|
|
|
|
|
|
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
|
Add new vector types for 512-, 1024- and 2048-bit vectors
Those types are needed to implement instructions for Hexagon Vector
Extensions (HVX): 16x32, 16x64, 32x16, 32x32, 32x64, 64x8, 64x16,
64x32, 128x8, 128x16, 256x8, 512x1, and 1024x1.
llvm-svn: 253978
2015-11-24 21:07:35 +08:00
|
|
|
def isVoid : ValueType<0, 66>; // Produces no value
|
2013-11-01 01:18:11 +08:00
|
|
|
def llvm_vararg_ty : LLVMType<isVoid>; // this means vararg here
|
|
|
|
|
2015-09-02 21:36:25 +08:00
|
|
|
// CHECK: /* 0 */ 0, 29, 0,
|
2013-11-01 01:18:11 +08:00
|
|
|
def int_foo : Intrinsic<"llvm.foo", [llvm_vararg_ty]>;
|