1 // RUN: llvm-tblgen -gen-intrinsic %s | FileCheck %s
4 class IntrinsicProperty;
6 class ValueType<int size, int value> {
7 string Namespace = "MVT";
12 class LLVMType<ValueType vt> {
16 class Intrinsic<string name, list<LLVMType> param_types = []> {
17 string LLVMName = name;
19 string TargetPrefix = "";
20 list<LLVMType> RetTypes = [];
21 list<LLVMType> ParamTypes = param_types;
22 list<IntrinsicProperty> Properties = [];
25 // isVoid needs to match the definition in ValueTypes.td
26 def isVoid : ValueType<0, 56>; // Produces no value
27 def llvm_vararg_ty : LLVMType<isVoid>; // this means vararg here
29 // CHECK: /* 0 */ 0, 27, 0,
30 def int_foo : Intrinsic<"llvm.foo", [llvm_vararg_ty]>;