diff options
author | Johannes Doerfert <johannes@jdoerfert.de> | 2020-09-05 13:20:31 -0500 |
---|---|---|
committer | Johannes Doerfert <johannes@jdoerfert.de> | 2020-09-09 00:52:17 -0500 |
commit | cefd2a2c705877feebd909a8537b89a8d1d575cc (patch) | |
tree | b6b9873a6bcb43cf99b67fb7373b03fbe920dbaf /llvm/lib/CodeGen/StackMaps.cpp | |
parent | c0ab901bddd5cb80c71848a426b7eaa2882b2ef5 (diff) | |
download | llvm-cefd2a2c705877feebd909a8537b89a8d1d575cc.zip llvm-cefd2a2c705877feebd909a8537b89a8d1d575cc.tar.gz llvm-cefd2a2c705877feebd909a8537b89a8d1d575cc.tar.bz2 |
[Attributor] Cleanup `IRPosition::getArgNo` usages
As we handle callback calls we need to disambiguate the call site
argument number from the callee argument number. While always equal in
non-callback calls, a callback comes with a partial parameter-argument
mapping so there is no implicit correspondence. Here we split
`IRPosition::getArgNo()` into two public functions, `getCallSiteArgNo()`
and `getCalleeArgNo()`. Usages are adjusted to pick the right one for
their purpose. This fixed some problems that would have been exposed as
we more aggressively optimize callbacks.
Diffstat (limited to 'llvm/lib/CodeGen/StackMaps.cpp')
0 files changed, 0 insertions, 0 deletions