[all-commits] [llvm/llvm-project] 214ce4: [MLIR][Transform] Fix PrintOp::build with StringRe...
Jinyun (Joey) Ye via All-commits
all-commits at lists.llvm.org
Mon Sep 25 00:58:41 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 214ce4da351f62d9c4341cf2d7c52ff38b6787a1
https://github.com/llvm/llvm-project/commit/214ce4da351f62d9c4341cf2d7c52ff38b6787a1
Author: Jinyun (Joey) Ye <jinyunye at huawei.com>
Date: 2023-09-25 (Mon, 25 Sep 2023)
Changed paths:
M mlir/lib/Dialect/Transform/IR/TransformOps.cpp
Log Message:
-----------
[MLIR][Transform] Fix PrintOp::build with StringRef (#67052)
transform::PrintOp::build(OpBuilder &builder, OperationState &result,
StringRef name) does not set name correctly. Calling
PrintOp::build(builder, result, "whatever name") is going to end up with
a PrintOp with no name.
This patch fixes it by replicating the approach from tablegen created
code. Refer to
build/mlir/include/mlir/Dialect/Transform/IR/TransformOps.cpp.inc
More information about the All-commits
mailing list