[llvm] 4549d83 - [GlobalISel] Update GIComplexOperandMatcher comment; NFC

Sven van Haastregt via llvm-commits llvm-commits at lists.llvm.org
Fri May 15 01:46:58 PDT 2020


Author: Sven van Haastregt
Date: 2020-05-15T09:46:28+01:00
New Revision: 4549d830184294607d075c993836b5c858e6ad95

URL: https://github.com/llvm/llvm-project/commit/4549d830184294607d075c993836b5c858e6ad95
DIFF: https://github.com/llvm/llvm-project/commit/4549d830184294607d075c993836b5c858e6ad95.diff

LOG: [GlobalISel] Update GIComplexOperandMatcher comment; NFC

Update a comment to account for 2deea1878ea ("[globalisel][tablegen]
Revise API for ComplexPattern operands to improve flexibility.",
2017-04-22).

Added: 
    

Modified: 
    llvm/include/llvm/Target/GlobalISel/Target.td

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/Target/GlobalISel/Target.td b/llvm/include/llvm/Target/GlobalISel/Target.td
index 8e868c4c207b..135d4a5e0dd0 100644
--- a/llvm/include/llvm/Target/GlobalISel/Target.td
+++ b/llvm/include/llvm/Target/GlobalISel/Target.td
@@ -38,11 +38,10 @@ class GIComplexOperandMatcher<LLT type, string matcherfn> {
 
   // The function that determines whether the operand matches. It should be of
   // the form:
-  //   bool select(const MatchOperand &Root, MatchOperand &Result1)
-  // and should have the same number of ResultX arguments as the number of
-  // result operands. It must return true on successful match and false
-  // otherwise. If it returns true, then all the ResultX arguments must be
-  // overwritten.
+  //   ComplexRendererFn select(MachineOperand &Root) const;
+  // where Root is the root of the match.  The function should return nullptr
+  // on match failure, or a ComplexRendererFn that renders the operand in case
+  // of a successful match.
   string MatcherFn = matcherfn;
 }
 


        


More information about the llvm-commits mailing list