Skip to content
Unverified Commit 214ce4da authored by Jinyun (Joey) Ye's avatar Jinyun (Joey) Ye Committed by GitHub
Browse files

[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
parent 05640657
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment