GHC.Driver.LlvmConfigCache

ghc-9.14.0.20251028: The GHC API

Safe Haskell | None
Language | GHC2021

GHC.Driver.LlvmConfigCache

Description

LLVM config cache

Synopsis

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

# Documentation

data LlvmConfigCache Source #

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 Source #

readLlvmConfigCache :: LlvmConfigCache -> IO LlvmConfig Source #