class NHIRPhiFunction extends NHIRInstruction
| Modifier and Type | Field and Description |
|---|---|
ArrayList<Integer> |
arguments
List of HIR ids of arguments for the phi function.
|
int |
local
Local variable index.
|
block, hirMnemonic, id, lir, lType, sType| Constructor and Description |
|---|
NHIRPhiFunction(NBasicBlock block,
int id,
ArrayList<Integer> arguments,
int local)
Construct an NHIRPhiFunction instruction.
|
| Modifier and Type | Method and Description |
|---|---|
void |
inferType()
Infer type for this phi function.
|
NLIRInstruction |
toLir()
Convert and return a low-level representation (LIR) of this HIR
instruction.
|
String |
toString()
Return a string representation of this instruction.
|
equals, idpublic NHIRPhiFunction(NBasicBlock block, int id, ArrayList<Integer> arguments, int local)
block - enclosing block.id - identifier of the instruction.arguments - list of HIR ids of arguments for the phi function.local - local variable index.public void inferType()
public NLIRInstruction toLir()
NHIRInstructiontoLir in class NHIRInstructionpublic String toString()
NHIRInstructiontoString in class NHIRInstruction