This is an archive of the discontinued LLVM Phabricator instance.

[mlir][sparse] updating methods to get MLIRContext
ClosedPublic

Authored by wrengr on Aug 4 2023, 5:14 PM.

Details

Summary

Renames the old DimLvlExpr::getContext to tryGetContext to make it clear that the result could be a nullptr. Also adds new delegation methods DimSpec::tryGetContext and LvlSpec::getContext.

Diff Detail

Event Timeline

wrengr created this revision.Aug 4 2023, 5:14 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 4 2023, 5:14 PM
wrengr requested review of this revision.Aug 4 2023, 5:14 PM
aartbik accepted this revision.Aug 4 2023, 5:17 PM
This revision is now accepted and ready to land.Aug 4 2023, 5:17 PM
This revision was automatically updated to reflect the committed changes.