1 // RUN: llvm-tblgen -gen-intrinsic-enums %s | FileCheck %s
4 class IntrinsicProperty<bit is_default = 0> {
5 bit IsDefault = is_default;
10 class ValueType<int size, int value> {
11 string Namespace = "MVT";
16 class LLVMType<ValueType vt> {
20 class Intrinsic<string name, list<LLVMType> ret_types = []> {
21 string LLVMName = name;
23 string TargetPrefix = "";
24 list<LLVMType> RetTypes = ret_types;
25 list<LLVMType> ParamTypes = [];
26 list<IntrinsicProperty> IntrProperties = [];
27 list<SDNodeProperty> Properties = [];
28 bit DisableDefaultAttributes = 1;
31 def iAny : ValueType<0, 253>;
32 def llvm_anyint_ty : LLVMType<iAny>;
34 // Make sure we can return up to 8 values
35 // CHECK: returns_8_results = {{[0-9]+}}, // llvm.returns.8.results
36 def int_returns_8_results : Intrinsic<"llvm.returns.8.results",
37 [llvm_anyint_ty, llvm_anyint_ty, llvm_anyint_ty, llvm_anyint_ty,
38 llvm_anyint_ty, llvm_anyint_ty, llvm_anyint_ty, llvm_anyint_ty]>;