aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/StackMaps.cpp
diff options
context:
space:
mode:
authorJohannes Doerfert <johannes@jdoerfert.de>2020-09-05 13:20:31 -0500
committerJohannes Doerfert <johannes@jdoerfert.de>2020-09-09 00:52:17 -0500
commitcefd2a2c705877feebd909a8537b89a8d1d575cc (patch)
treeb6b9873a6bcb43cf99b67fb7373b03fbe920dbaf /llvm/lib/CodeGen/StackMaps.cpp
parentc0ab901bddd5cb80c71848a426b7eaa2882b2ef5 (diff)
downloadllvm-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