blob: 93737b14db2a379aff7f4b29a832ade7764a3e6e [file] [log] [blame]
Artem Belevich786ca6a2017-10-12 17:40:00 +00001// RUN: llvm-tblgen -gen-intrinsic %s | FileCheck %s
2// XFAIL: vg_leak
3
4class IntrinsicProperty;
5
6class ValueType<int size, int value> {
7 string Namespace = "MVT";
8 int Size = size;
9 int Value = value;
10}
11
12class LLVMType<ValueType vt> {
13 ValueType VT = vt;
14}
15
16class Intrinsic<string name, list<LLVMType> ret_types = []> {
17 string LLVMName = name;
18 bit isTarget = 0;
19 string TargetPrefix = "";
20 list<LLVMType> RetTypes = ret_types;
21 list<LLVMType> ParamTypes = [];
22 list<IntrinsicProperty> IntrProperties = [];
23}
24
25def iAny : ValueType<0, 253>;
26def llvm_anyint_ty : LLVMType<iAny>;
27
28// Make sure we can return up to 8 values
29// CHECK: returns_8_results // llvm.returns.8.results
30def int_returns_8_results : Intrinsic<"llvm.returns.8.results",
31 [llvm_anyint_ty, llvm_anyint_ty, llvm_anyint_ty, llvm_anyint_ty,
32 llvm_anyint_ty, llvm_anyint_ty, llvm_anyint_ty, llvm_anyint_ty]>;