This is an archive of the discontinued LLVM Phabricator instance.

[MemoryBuiltins] Accept any value in getInitialValueOfAllocation() (NFC)
ClosedPublic

Authored by nikic on Jun 8 2022, 1:20 AM.

Details

Summary

Drop the requirement that getInitialValueOfAllocation() must be passed an allocator function, shifting the responsibility for checking that into the function (which it does anyway). The motivation is to avoid some calls to isAllocationFn(), which has somewhat ill-defined semantics (given the number of allocator-related attributes we have floating around...)

(For this function, all we eventually need is an allockind of zeroed or uninitialized.)

Diff Detail

Event Timeline

nikic created this revision.Jun 8 2022, 1:20 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 8 2022, 1:20 AM
nikic requested review of this revision.Jun 8 2022, 1:20 AM
Herald added a reviewer: sstefan1. · View Herald Transcript
Herald added a project: Restricted Project. · View Herald Transcript
This revision is now accepted and ready to land.Jun 24 2022, 5:59 AM
This revision was landed with ongoing or failed builds.Jun 24 2022, 7:11 AM
This revision was automatically updated to reflect the committed changes.