This is an archive of the discontinued LLVM Phabricator instance.

[mlir] Add ConstantLike trait to LLVM::ConstantOp
ClosedPublic

Authored by ftynse on Jan 6 2022, 10:26 AM.

Details

Summary

This make LLVM dialect constants to work with m_constant matches. Implement
the folding hook for this operation as required by the trait. This in turn
allows LLVM::ConstantOp to properly participate in constant-folding.

Depends On D116757

Diff Detail

Event Timeline

ftynse created this revision.Jan 6 2022, 10:26 AM
ftynse requested review of this revision.Jan 6 2022, 10:26 AM
wsmoses accepted this revision.Jan 6 2022, 10:31 AM
This revision is now accepted and ready to land.Jan 6 2022, 10:31 AM
This revision was landed with ongoing or failed builds.Jan 7 2022, 12:56 AM
This revision was automatically updated to reflect the committed changes.