Dead code elimination (=DCE) for IC.
AliveContext = object ## A stack for marking symbols as alive. ## We need a PackedDecoder for module ID address translations. ## The module we're currently analysing for DCE. ## The final result of our computation.
AliveSyms = seq[IntSet]
proc computeAliveSyms(g: PackedModuleGraph; conf: ConfigRef): AliveSyms {. ...raises: [KeyError, Exception], tags: [ReadDirEffect, RootEffect], forbids: [].}
proc isAlive(a: AliveSyms; module: int; item: int32): bool {....raises: [], tags: [], forbids: [].}
alive
© 2006–2024 Andreas RumpfLicensed under the MIT License. https://nim-lang.org/docs/compiler/ic/dce.html