Page MenuHomePhabricator

Please use GitHub pull requests for new patches. Avoid migrating existing patches. Phabricator shutdown timeline

[MLIR][Transform] Fix PrintOp::build with StringRef
Needs ReviewPublic

Authored by JoeyYe_HW on Sep 20 2023, 7:00 AM.



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/

Diff Detail

Event Timeline

JoeyYe_HW created this revision.Sep 20 2023, 7:00 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 20 2023, 7:00 AM
JoeyYe_HW requested review of this revision.Sep 20 2023, 7:00 AM