ExprValue

Lvalue means that value is stored in global, stack slot or variable.

Members

Functions

addrOf
ExprValue addrOf(IrGenState gen, TokenIndex loc, IrIndex currentBlock)
Undocumented in source. Be warned that the author may not have intended to support it.
deref
ExprValue deref(IrGenState gen, TokenIndex loc, IrIndex currentBlock)
Undocumented in source. Be warned that the author may not have intended to support it.
load
IrIndex load(IrGenState gen, TokenIndex loc, IrIndex currentBlock)

loads value from pointer. pointer must be an rvalue

member
ExprValue member(IrGenState gen, TokenIndex loc, IrIndex currentBlock, IrIndex index)

Returns reference to aggregate member Index must be a constant when accessing struct members

rvalue
IrIndex rvalue(IrGenState gen, TokenIndex loc, IrIndex currentBlock)

returns value as intended by frontend

store
void store(IrGenState gen, TokenIndex loc, IrIndex currentBlock, IrIndex value)

writes value to a pointer or variable

Variables

irValue
IrIndex irValue;
Undocumented in source.

Meta