logo
class

compiler::ConstantFolder

sys::Obj
  compiler::CompilerSupport
    compiler::ConstantFolder

ConstantFolder is used to implement constant folding optimizations where known literals and operations can be performed ahead of time by the compiler.

Slots

fold

Expr fold(CallExpr call)

Check shortcut expression for constant folding

make

new make(Compiler compiler)

Constructor