[all-commits] [llvm/llvm-project] 5e7ac2: [mlir][transform] Add op for adding attributes to ...
Quinn Dawkins via All-commits
all-commits at lists.llvm.org
Tue May 30 08:54:54 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 5e7ac2503a1bbfa13b84f00d8e12865cd16b0164
https://github.com/llvm/llvm-project/commit/5e7ac2503a1bbfa13b84f00d8e12865cd16b0164
Author: Quinn Dawkins <quinn at nod-labs.com>
Date: 2023-05-30 (Tue, 30 May 2023)
Changed paths:
M mlir/include/mlir/Dialect/Transform/IR/TransformOps.td
M mlir/lib/Dialect/Transform/IR/TransformOps.cpp
M mlir/test/Dialect/Transform/test-interpreter.mlir
Log Message:
-----------
[mlir][transform] Add op for adding attributes to payload IR
The ability to add attributes to payload IR is useful functionality
independent of any dialect. This is added here through `transform.annotate`
by enabling attributes tied to a `TransformParamTypeInterface` (which
internally refers to an Attribute) to be added to a target operation by
name.
The AnnotateOp does not produce a new handle as no existing handles
should be affected by adding an attribute. Existing attributes on
the payload with the same name will be overwritten.
Differential Revision: https://reviews.llvm.org/D151689
More information about the All-commits
mailing list