2013-10-31 17:18:11 +00:00
|
|
|
// RUN: llvm-tblgen -gen-intrinsic %s | FileCheck %s
|
2013-11-10 14:26:08 +00:00
|
|
|
// XFAIL: vg_leak
|
2013-10-31 17:18:11 +00: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;
|
2016-02-10 18:40:04 +00:00
|
|
|
list<IntrinsicProperty> IntrProperties = [];
|
2013-10-31 17:18:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// 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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253978 91177308-0d34-0410-b5e6-96231b3b80d8
2015-11-24 13:07:35 +00:00
|
|
|
def isVoid : ValueType<0, 66>; // Produces no value
|
2013-10-31 17:18:11 +00:00
|
|
|
def llvm_vararg_ty : LLVMType<isVoid>; // this means vararg here
|
|
|
|
|
2015-09-02 13:36:25 +00:00
|
|
|
// CHECK: /* 0 */ 0, 29, 0,
|
2013-10-31 17:18:11 +00:00
|
|
|
def int_foo : Intrinsic<"llvm.foo", [llvm_vararg_ty]>;
|