This is an archive of the discontinued LLVM Phabricator instance.

[mlir][ods] Add cppClassName to ConfinedType
ClosedPublic

Authored by Mogball on Sep 14 2022, 1:44 PM.

Details

Summary

So ODS can generate OneTypedResult when a ConfinedType is used as a
result type.

Diff Detail

Event Timeline

Mogball created this revision.Sep 14 2022, 1:44 PM
Mogball requested review of this revision.Sep 14 2022, 1:44 PM
rriddle added inline comments.Sep 14 2022, 1:50 PM
mlir/include/mlir/IR/OpBase.td
364–365

This is going to overwrite the provided cppClassName. I would expect a user provided cppClassName to override the one coming from the type.

Mogball added inline comments.Sep 14 2022, 1:55 PM
mlir/include/mlir/IR/OpBase.td
364–365

Oh, that one is a misnomer. It should be cppBaseClassName.

Mogball updated this revision to Diff 460248.Sep 14 2022, 3:15 PM
Mogball marked an inline comment as done.

Dont overwrite user-provided cppClassName

rriddle accepted this revision.Sep 14 2022, 3:24 PM
This revision is now accepted and ready to land.Sep 14 2022, 3:24 PM
This revision was automatically updated to reflect the committed changes.