[llvm] [KernelInfo] Implement new LLVM IR pass for GPU code analysis (PR #102944)
Joel E. Denny via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 12 17:09:29 PDT 2024
================
@@ -772,6 +773,15 @@ void AMDGPUTargetMachine::registerPassBuilderCallbacks(PassBuilder &PB) {
return onlyAllocateVGPRs;
return nullptr;
});
+
+ PB.registerFullLinkTimeOptimizationLastEPCallback(
+ [](ModulePassManager &PM, OptimizationLevel Level) {
+ if (KernelInfoEndLTO) {
----------------
jdenny-ornl wrote:
Done.
https://github.com/llvm/llvm-project/pull/102944
More information about the llvm-commits
mailing list