ghc-lib-parser-9.14.1.20251220: The GHC API, decoupled from GHC versions

Safe Haskell | Ignore
Language | GHC2021

GHC.Driver.LlvmConfigCache

Description

LLVM config cache

Synopsis

- data LlvmConfigCache
- initLlvmConfigCache :: FilePath -> IO LlvmConfigCache
- readLlvmConfigCache :: LlvmConfigCache -> IO LlvmConfig

# Documentation

data LlvmConfigCache #

Cache LLVM configuration read from files in top_dir

See Note [LLVM configuration] in GHC.CmmToLlvm.Config

Currently implemented with unsafe lazy IO. But it could be implemented with an IORef as the exposed interface is in IO.

initLlvmConfigCache :: FilePath -> IO LlvmConfigCache #

readLlvmConfigCache :: LlvmConfigCache -> IO LlvmConfig #