OSDN Git Service

[globalisel] OperandPredicateMatcher's shouldn't need to generate the MachineOperand...
authorDaniel Sanders <daniel_l_sanders@apple.com>
Mon, 20 Feb 2017 15:30:43 +0000 (15:30 +0000)
committerDaniel Sanders <daniel_l_sanders@apple.com>
Mon, 20 Feb 2017 15:30:43 +0000 (15:30 +0000)
commit46f84bdef4869a22acede8a1296ab0248696a840
tree513e1a00c20039606b0cd581cee7a7c2530b025b
parent51a07570a25152fbbc9991dc8636ecbd63d01ab1
[globalisel] OperandPredicateMatcher's shouldn't need to generate the MachineOperand expr. NFC

Summary:
Each OperandPredicateMatcher shouldn't need to know how to generate the expression
to reference a MachineOperand. The OperandMatcher should provide it.

In addition to separating responsibilities, this also lays some groundwork for
decoupling source patterns from destination patterns to allow invented operands
or operands provided by GlobalISel's equivalent to the ComplexPattern<> class.

Depends on D29709

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

Reviewed By: ab

Subscribers: dberris, kristof.beyls, llvm-commits, igorb

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@295668 91177308-0d34-0410-b5e6-96231b3b80d8
test/TableGen/GlobalISelEmitter.td
utils/TableGen/GlobalISelEmitter.cpp