We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents eb31ea5 + 4e9c5e5 commit 50fd459Copy full SHA for 50fd459
llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
@@ -892,6 +892,13 @@ void AMDGPUTargetMachine::registerPassBuilderCallbacks(PassBuilder &PB) {
892
893
PB.registerFullLinkTimeOptimizationLastEPCallback(
894
[this](ModulePassManager &PM, OptimizationLevel Level) {
895
+
896
+ // Promote kernel arguments to global address space for LLVM IR
897
+ // generated by flang compiler
898
+ FunctionPassManager FPM;
899
+ FPM.addPass(AMDGPUPromoteKernelArgumentsPass());
900
+ PM.addPass(createModuleToFunctionPassAdaptor(std::move(FPM)));
901
902
// When we are using -fgpu-rdc, we can only run accelerator code
903
// selection after linking to prevent, otherwise we end up removing
904
// potentially reachable symbols that were exported as external in other
0 commit comments