[clang] [llvm] [NVPTX] Fix for device function pointer having the same name as generated callprototype (PR #205639)
Alex MacLean via cfe-commits
cfe-commits at lists.llvm.org
Wed Sep 9 14:59:43 PDT 2026
================
@@ -28,9 +29,10 @@ class NVPTXMachineFunctionInfo : public MachineFunctionInfo {
/// references.
SmallPtrSet<const MCSymbol *, 8> ImageHandleSymbols;
+ using CallProtoTy = std::pair<const CallBase *, MCSymbol *>;
/// Stores a mapping from a unique call-site id to the call instruction that
/// needs an indirect-call prototype emitted.
- std::map<unsigned, const CallBase *> CallPrototypes;
+ std::map<unsigned, CallProtoTy> CallPrototypes;
----------------
AlexMaclean wrote:
Instead of adding all this machinery here and in the AsmPrinter, we should just directly store the MCSymbol as an operand on the call instruction during call lowering in ISel, similar to how we store symbols for parameters today.
https://github.com/llvm/llvm-project/pull/205639
More information about the cfe-commits
mailing list