[llvm] [NVPTX] Refactor prototype emission out of ISel (PR #203663)

Reid Kleckner via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 23 09:54:45 PDT 2026


================
@@ -1566,22 +1471,15 @@ SDValue NVPTXTargetLowering::LowerCall(TargetLowering::CallLoweringInfo &CLI,
     CalleeFunc->addFnAttr("nvptx-libcall-callee", "true");
   }
 
-  if (IsIndirectCall) {
-    // This is indirect function call case : PTX requires a prototype of the
-    // form
-    // proto_0 : .callprototype(.param .b32 _) _ (.param .b32 _);
-    // to be emitted, and the label has to used as the last arg of call
-    // instruction.
-    // The prototype is embedded in a string and put as the operand for a
----------------
rnk wrote:

Yeah, this seems much better.

https://github.com/llvm/llvm-project/pull/203663


More information about the llvm-commits mailing list