This is an archive of the discontinued LLVM Phabricator instance.

[CoroSplit][DebugInfo][nfc] Use more specialize Map arguments
ClosedPublic

Authored by fdeazeve on May 3 2023, 7:34 AM.

Details

Summary

We use a map of Argument->AllocaInst when mapping Arguments to the
AllocaInst created for them.

Said map is declared from "Value" and called a "DbgPtrCache". This
commit:

  • replaces Value to the more specialized Argument class, to reflect the

intent better (i.e. we are _always_ mapping Arguments).

  • replaces the name "DbgPtrCache" with the more explicit "ArgToAllocaMap",

as it is not clear reading the code what a "DbgPtr" is.

Diff Detail

Event Timeline

fdeazeve created this revision.May 3 2023, 7:34 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 3 2023, 7:34 AM
fdeazeve requested review of this revision.May 3 2023, 7:34 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 3 2023, 7:34 AM
aprantl accepted this revision.May 3 2023, 1:23 PM
This revision is now accepted and ready to land.May 3 2023, 1:23 PM
This revision was landed with ongoing or failed builds.May 3 2023, 3:38 PM
This revision was automatically updated to reflect the committed changes.