Skip to content

Commit 4549d83

Browse files
committed
[GlobalISel] Update GIComplexOperandMatcher comment; NFC
Update a comment to account for 2deea18 ("[globalisel][tablegen] Revise API for ComplexPattern operands to improve flexibility.", 2017-04-22).
1 parent 4ead2cf commit 4549d83

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

llvm/include/llvm/Target/GlobalISel/Target.td

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,10 @@ class GIComplexOperandMatcher<LLT type, string matcherfn> {
3838

3939
// The function that determines whether the operand matches. It should be of
4040
// the form:
41-
// bool select(const MatchOperand &Root, MatchOperand &Result1)
42-
// and should have the same number of ResultX arguments as the number of
43-
// result operands. It must return true on successful match and false
44-
// otherwise. If it returns true, then all the ResultX arguments must be
45-
// overwritten.
41+
// ComplexRendererFn select(MachineOperand &Root) const;
42+
// where Root is the root of the match. The function should return nullptr
43+
// on match failure, or a ComplexRendererFn that renders the operand in case
44+
// of a successful match.
4645
string MatcherFn = matcherfn;
4746
}
4847

0 commit comments

Comments
 (0)