[all-commits] [llvm/llvm-project] 34b548: Support NativeCodeCall binding in rewrite pattern.
ChiaHungDuan via All-commits
all-commits at lists.llvm.org
Sun May 9 18:29:52 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 34b5482b334f2a3960ef079667adb5b3df20aa7d
https://github.com/llvm/llvm-project/commit/34b5482b334f2a3960ef079667adb5b3df20aa7d
Author: Chia-hung Duan <chiahungduan at google.com>
Date: 2021-05-10 (Mon, 10 May 2021)
Changed paths:
M mlir/docs/DeclarativeRewrites.md
M mlir/include/mlir/IR/OpBase.td
M mlir/lib/TableGen/Pattern.cpp
M mlir/test/lib/Dialect/Test/TestOps.td
M mlir/test/lib/Dialect/Test/TestPatterns.cpp
M mlir/test/mlir-tblgen/pattern.mlir
M mlir/test/mlir-tblgen/rewriter-errors.td
M mlir/tools/mlir-tblgen/RewriterGen.cpp
Log Message:
-----------
Support NativeCodeCall binding in rewrite pattern.
We are able to bind the result from native function while rewriting
pattern. In matching pattern, if we want to get some values back, we can
do that by passing parameter as return value placeholder. Besides, add
the semantic of '$_self' in NativeCodeCall while matching, it'll be the
operation that defines certain operand.
Differential Revision: https://reviews.llvm.org/D100746
More information about the All-commits
mailing list