aboutsummaryrefslogtreecommitdiff
path: root/test/TableGen
diff options
context:
space:
mode:
authorDaniel Sanders <daniel_l_sanders@apple.com>2017-08-17 13:18:35 +0000
committerDaniel Sanders <daniel_l_sanders@apple.com>2017-08-17 13:18:35 +0000
commitc3fa9e8b811cde54fe226eee2af6241eedad6fb9 (patch)
treef1413efd51792683a27e29261b9f0307ad7e6753 /test/TableGen
parent8f5ac0464c9c3003646c475e95e11e7d6475bd72 (diff)
downloadllvm-c3fa9e8b811cde54fe226eee2af6241eedad6fb9.tar.gz
[globalisel][tablegen] Generate TypeObject table. NFC
Summary: Generate the type table from the types used by a target rather than hard-coding the union of types used by all targets. Depends on D36084 Reviewers: ab, t.p.northover, qcolombet, rovka, aditya_nandakumar Reviewed By: rovka Subscribers: kristof.beyls, igorb, llvm-commits Differential Revision: https://reviews.llvm.org/D36085 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@311084 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/TableGen')
-rw-r--r--test/TableGen/GlobalISelEmitter.td7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/TableGen/GlobalISelEmitter.td b/test/TableGen/GlobalISelEmitter.td
index b9163d1945d..b479240d765 100644
--- a/test/TableGen/GlobalISelEmitter.td
+++ b/test/TableGen/GlobalISelEmitter.td
@@ -83,6 +83,13 @@ def HasC : Predicate<"Subtarget->hasC()"> { let RecomputePerFunction = 1; }
// CHECK-NEXT: return Features;
// CHECK-NEXT: }
+// CHECK-LABEL: enum {
+// CHECK-NEXT: GILLT_s32,
+// CHECK-NEXT: }
+// CHECK-NEXT: const static LLT TypeObjects[] = {
+// CHECK-NEXT: LLT::scalar(32),
+// CHECK-NEXT: };
+
// CHECK: bool MyTargetInstructionSelector::selectImpl(MachineInstr &I) const {
// CHECK-NEXT: MachineFunction &MF = *I.getParent()->getParent();
// CHECK-NEXT: MachineRegisterInfo &MRI = MF.getRegInfo();