[globalisel][tablegen] Add support for importing 'imm' operands.
authorDaniel Sanders <daniel_l_sanders@apple.com>
Tue, 8 Aug 2017 10:44:31 +0000 (10:44 +0000)
committerDaniel Sanders <daniel_l_sanders@apple.com>
Tue, 8 Aug 2017 10:44:31 +0000 (10:44 +0000)
commit055400469847495627c783c597c35253a00ad128
tree45df2c9b6f8f0689e35ad5fb42d03843e16a2723
parent6e35c31d2d2c1853113ca0526ceead85e9c8e1ac
[globalisel][tablegen] Add support for importing 'imm' operands.

Summary:
This patch enables the import of rules containing 'imm' operands that do not
constrain the acceptable values using predicates. Support for ImmLeaf will
arrive in a later patch.

Depends on D35681

Reviewers: ab, t.p.northover, qcolombet, rovka, aditya_nandakumar

Reviewed By: rovka

Subscribers: kristof.beyls, javed.absar, igorb, llvm-commits

Differential Revision: https://reviews.llvm.org/D35833

llvm-svn: 310343
llvm/include/llvm/CodeGen/GlobalISel/InstructionSelector.h
llvm/include/llvm/CodeGen/GlobalISel/InstructionSelectorImpl.h
llvm/include/llvm/Target/GlobalISel/SelectionDAGCompat.td
llvm/lib/Target/AArch64/AArch64InstructionSelector.cpp
llvm/test/CodeGen/AArch64/GlobalISel/select-imm.mir [new file with mode: 0644]
llvm/test/CodeGen/X86/GlobalISel/select-inc.mir
llvm/test/TableGen/GlobalISelEmitter.td
llvm/utils/TableGen/GlobalISelEmitter.cpp