ParallelAccelerator.DomainIR

Internal


lookupConstDef(state::ParallelAccelerator.DomainIR.IRState, s::Union{GenSym, Symbol, SymbolNode})

Look up a definition of a variable only when it is const or assigned once. Return nothing If none is found.

source: ParallelAccelerator/src/domain-ir.jl:259


lookupConstDefForArg(state::ParallelAccelerator.DomainIR.IRState, s)

Look up a definition of a variable recursively until the RHS is no-longer just a variable. Return the last rhs If found, or the input variable itself otherwise.

source: ParallelAccelerator/src/domain-ir.jl:273


lookupDef(state::ParallelAccelerator.DomainIR.IRState, s::Union{GenSym, Symbol, SymbolNode})

Look up a definition of a variable. Return nothing If none is found.

source: ParallelAccelerator/src/domain-ir.jl:250


lookupDefInAllScopes(state::ParallelAccelerator.DomainIR.IRState, s::Union{GenSym, Symbol, SymbolNode})

Look up a definition of a variable throughout nested states until a definition is found. Return nothing If none is found.

source: ParallelAccelerator/src/domain-ir.jl:286


updateDef(state::ParallelAccelerator.DomainIR.IRState, s::Union{GenSym, Symbol, SymbolNode}, rhs)

Update the definition of a variable.

source: ParallelAccelerator/src/domain-ir.jl:235