Page MenuHomePhabricator

[IR] Add DebugEntryValuesCallSite pass
Needs ReviewPublic

Authored by milica-lazarevic on Dec 30 2021, 5:10 AM.

Details

Summary

The purpose of this IR pass is to describe argument values on caller site. Pass has been added to the default<O2> pass pipeline, right before DeadArgumentEliminationPass. It attaches params field to DILocation of call instructions, which represents an array of DICallSiteParam elements. Information about call-site-value is carried through the pipeline, so in the phase of DWARF emitting, we can try to interpret those values as DWARF tag DW_TAG_call_site_parameter. For DWARF emission, it is necessary to have CallSiteInfo support by the target. For now, constant arguments passing is supported.

Diff Detail