mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-05 12:31:33 +00:00
record input chains.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96437 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c642b84fb8
commit
2f7ecdeb1d
@ -194,6 +194,15 @@ void MatcherGen::EmitOperatorMatchCode(const TreePatternNode *N,
|
||||
// the child numbers of the node are all offset by one.
|
||||
unsigned OpNo = 0;
|
||||
if (N->NodeHasProperty(SDNPHasChain, CGP)) {
|
||||
// Record the input chain, which is always input #0 of the SDNode.
|
||||
AddMatcherNode(new MoveChildMatcherNode(0));
|
||||
++NextRecordedOperandNo;
|
||||
AddMatcherNode(new RecordMatcherNode("'" + N->getOperator()->getName() +
|
||||
"' input chain"));
|
||||
AddMatcherNode(new MoveParentMatcherNode());
|
||||
|
||||
// Don't look at the input chain when matching the tree pattern to the
|
||||
// SDNode.
|
||||
OpNo = 1;
|
||||
|
||||
// If this node is not the root and the subtree underneath it produces a
|
||||
|
Loading…
Reference in New Issue
Block a user