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
Diff Detail
Event Timeline
Herald added subscribers: ormris, wenlei, steven_wu, hiraditya. · View Herald TranscriptDec 30 2021, 5:10 AM
milica-lazarevic added a child revision: D116406: [IR] Handle special Entry Value expression.Dec 30 2021, 5:38 AM
milica-lazarevic added a parent revision: D116404: [IR] Add DICallSiteParam and new params field to DILocation.