This is an archive of the discontinued LLVM Phabricator instance.

[mlir] Remove some code duplication between `Builders.cpp` and `FoldUtils.cpp`
ClosedPublic

Authored by springerm on Jul 19 2023, 3:23 AM.

Details

Summary

Also update the documentation of Operation::fold, which did not take into account in-place foldings.

Depends On: D155687

Diff Detail

Event Timeline

springerm created this revision.Jul 19 2023, 3:23 AM
Herald added a project: Restricted Project. · View Herald Transcript
springerm requested review of this revision.Jul 19 2023, 3:23 AM
mehdi_amini accepted this revision.Jul 19 2023, 11:46 AM
mehdi_amini added inline comments.
mlir/lib/IR/Operation.cpp
633

The size of the SmallVector should be unnecessary

This revision is now accepted and ready to land.Jul 19 2023, 11:46 AM