[Git][ghc/ghc][wip/9.12.3-backports] llvmGen: Fix built-in variable predicate
Zubin pushed to branch wip/9.12.3-backports at Glasgow Haskell Compiler / GHC Commits: e67ba5ed by Ben Gamari at 2025-08-27T18:49:38+05:30 llvmGen: Fix built-in variable predicate Previously the predicate to identify LLVM builtin global variables was checking for `$llvm` rather than `@llvm` as it should. (cherry picked from commit 6e67fa083a50684e1cfae546e07cab4d4250e871) - - - - - 1 changed file: - compiler/GHC/CmmToLlvm/Base.hs Changes: ===================================== compiler/GHC/CmmToLlvm/Base.hs ===================================== @@ -526,10 +526,10 @@ generateExternDecls = do modifyEnv $ \env -> env { envAliases = emptyUniqSet } return (concat defss, []) --- | Is a variable one of the special @$llvm@ globals? +-- | Is a variable one of the special @\@llvm@ globals? isBuiltinLlvmVar :: LlvmVar -> Bool isBuiltinLlvmVar (LMGlobalVar lbl _ _ _ _ _) = - "$llvm" `isPrefixOf` unpackFS lbl + "llvm." `isPrefixOf` unpackFS lbl isBuiltinLlvmVar _ = False -- | Here we take a global variable definition, rename it with a View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/e67ba5ed9c896235e9c50a20b5062fc1... -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/e67ba5ed9c896235e9c50a20b5062fc1... You're receiving this email because of your account on gitlab.haskell.org.
participants (1)
-
Zubin (@wz1000)