| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
IR.MangleNames
Description
Mangle all variable names in a program to ensure global uniqueness.
Also populate symbol table with information about those (now unique) names.
This module also exports pickId, which other passes can use to create fresh
variable names given some symbol table.
Synopsis
- mangleProgram :: Program Type -> Pass (Program Type)
- normalizeId :: Identifiable i => i -> i
- pickId :: Map MangledId t -> OriginId -> MangledId
Documentation
normalizeId :: Identifiable i => i -> i Source #
Normalize an identifier (remove things like backticks etc.)