[all-commits] [llvm/llvm-project] 42b160: [mlir][transform] Add an op for replacing values w...
Quinn Dawkins via All-commits
all-commits at lists.llvm.org
Fri Jan 19 10:22:04 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 42b160356fe5d3b41bf07c428d0142d3721b1d44
https://github.com/llvm/llvm-project/commit/42b160356fe5d3b41bf07c428d0142d3721b1d44
Author: Quinn Dawkins <quinn.dawkins at gmail.com>
Date: 2024-01-19 (Fri, 19 Jan 2024)
Changed paths:
M mlir/include/mlir/Dialect/Func/TransformOps/FuncTransformOps.td
M mlir/include/mlir/Dialect/MemRef/TransformOps/MemRefTransformOps.td
M mlir/include/mlir/Dialect/Tensor/TransformOps/TensorTransformOps.td
M mlir/include/mlir/Dialect/Transform/IR/TransformInterfaces.td
M mlir/lib/Dialect/Func/TransformOps/FuncTransformOps.cpp
M mlir/lib/Dialect/Tensor/TransformOps/TensorTransformOps.cpp
M mlir/lib/Dialect/Transform/IR/TransformOps.cpp
A mlir/test/Dialect/Func/func-transform.mlir
A mlir/test/Dialect/Tensor/transform-op-casting.mlir
M mlir/test/lib/Dialect/Transform/TestTransformDialectExtension.td
Log Message:
-----------
[mlir][transform] Add an op for replacing values with function calls (#78398)
Adds `transform.func.cast_and_call` that takes a set of inputs and
outputs and replaces the uses of those outputs with a call to a function
at a specified insertion point.
The idea with this operation is to allow users to author independent IR
outside of a to-be-compiled module, and then match and replace a slice
of the program with a call to the external function.
Additionally adds a mechanism for populating a type converter with a set
of conversion materialization functions that allow insertion of
casts on the inputs/outputs to and from the types of the function
signature.
More information about the All-commits
mailing list