[llvm] [NVPTX][NVPTXLowerArgs] Add NewPM interface for NVPTXLowerArgs (PR #128960)
Alex MacLean via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 26 21:53:25 PST 2025
================
@@ -757,3 +746,11 @@ PreservedAnalyses NVPTXCopyByValArgsPass::run(Function &F,
return copyFunctionByValArgs(F) ? PreservedAnalyses::none()
: PreservedAnalyses::all();
}
+
+PreservedAnalyses NVPTXLowerArgsPass::run(Function &F,
+ FunctionAnalysisManager &AM) {
+ auto &NTM = static_cast<NVPTXTargetMachine &>(TM);
+ bool Changed = isKernelFunction(F) ? runOnKernelFunction(NTM, F)
+ : runOnDeviceFunction(NTM, F);
----------------
AlexMaclean wrote:
I might be nice to extract this into a little function do de-duplicate with above.
https://github.com/llvm/llvm-project/pull/128960
More information about the llvm-commits
mailing list