This is an archive of the discontinued LLVM Phabricator instance.

[mlir] Add materializeOpFoldResults to turn OpFoldResult array into values.
ClosedPublic

Authored by pifon2a on Sep 6 2022, 4:28 AM.

Diff Detail

Event Timeline

pifon2a created this revision.Sep 6 2022, 4:28 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 6 2022, 4:28 AM
pifon2a requested review of this revision.Sep 6 2022, 4:28 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 6 2022, 4:28 AM
springerm accepted this revision.Sep 6 2022, 4:32 AM
This revision is now accepted and ready to land.Sep 6 2022, 4:32 AM
This revision was landed with ongoing or failed builds.Sep 6 2022, 4:38 AM
This revision was automatically updated to reflect the committed changes.
mlir/lib/Dialect/Linalg/Utils/Utils.cpp
952

nit:

ImplicitLocOpBuilder b(loc, builder);
return llvm::to_vector(llvm::map_range(opFoldResults, [&](OpFoldResult ofr){ return (materializeOpFoldResult(b, opFoldResult); }))