aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python
diff options
context:
space:
mode:
authorChris Lattner <clattner@nondot.org>2021-03-22 22:15:39 -0700
committerChris Lattner <clattner@nondot.org>2021-03-23 13:45:45 -0700
commit782c534117d1a600b054475c804ba2766e6e154c (patch)
tree88186193044a4bbec87ace5c082a79758eb67042 /lldb/source/Plugins/ScriptInterpreter/Python
parentc4f65ef78fd71b4db2dc7bc6646c7e3d2be11746 (diff)
downloadllvm-782c534117d1a600b054475c804ba2766e6e154c.zip
llvm-782c534117d1a600b054475c804ba2766e6e154c.tar.gz
llvm-782c534117d1a600b054475c804ba2766e6e154c.tar.bz2
[ODS] Implement a new 'hasCanonicalizeMethod' bit for cann patterns.
This provides a simplified way to implement 'matchAndRewrite' style canonicalization patterns for ops that don't need the full power of RewritePatterns. Using this style, you can implement a static method with a signature like: ``` LogicalResult AssertOp::canonicalize(AssertOp op, PatternRewriter &rewriter) { return success(); } ``` instead of dealing with defining RewritePattern subclasses. This also adopts this for a few canonicalization patterns in the std dialect to show how it works. Differential Revision: https://reviews.llvm.org/D99143
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python')
0 files changed, 0 insertions, 0 deletions