[llvm] [SPIR-V] Simplify lookup of llvm.global.annotations using getNamedGlobal (PR #210722)
Juan Manuel Martinez CaamaƱo via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 20 08:03:57 PDT 2026
================
@@ -739,10 +739,7 @@ void SPIRVAsmPrinter::outputExecutionMode(const Module &M) {
void SPIRVAsmPrinter::outputAnnotations(const Module &M) {
outputModuleSection(SPIRV::MB_Annotations);
// Process llvm.global.annotations special global variable.
- for (auto F = M.global_begin(), E = M.global_end(); F != E; ++F) {
----------------
jmmartinez wrote:
I love that we called it F
https://github.com/llvm/llvm-project/pull/210722
More information about the llvm-commits
mailing list