public class LIRGenerationResult extends Object
| Constructor and Description |
|---|
LIRGenerationResult(CompilationIdentifier compilationId,
LIR lir,
FrameMapBuilder frameMapBuilder,
RegisterAllocationConfig registerAllocationConfig,
CallingConvention callingConvention) |
| Modifier and Type | Method and Description |
|---|---|
void |
buildFrameMap()
Creates a
FrameMap out of the FrameMapBuilder. |
CallingConvention |
getCallingConvention()
Returns the incoming calling convention for the parameters of the method that is compiled.
|
String |
getComment(LIRInstruction op)
Gets the comment attached to a
LIRInstruction. |
CompilationIdentifier |
getCompilationId()
Returns a unique identifier of the current compilation.
|
String |
getCompilationUnitName() |
FrameMap |
getFrameMap()
Returns the
FrameMap associated with this LIRGenerationResult. |
FrameMapBuilder |
getFrameMapBuilder()
Returns the
FrameMapBuilder for collecting the information to build a
FrameMap. |
LIR |
getLIR() |
RegisterAllocationConfig |
getRegisterAllocationConfig() |
RegisterConfig |
getRegisterConfig() |
boolean |
hasForeignCall()
Determines whether the code being generated makes at least one foreign call.
|
void |
setComment(LIRInstruction op,
String comment)
Adds a comment to a
LIRInstruction. |
void |
setForeignCall(boolean hasForeignCall) |
public LIRGenerationResult(CompilationIdentifier compilationId, LIR lir, FrameMapBuilder frameMapBuilder, RegisterAllocationConfig registerAllocationConfig, CallingConvention callingConvention)
public RegisterAllocationConfig getRegisterAllocationConfig()
public final void setComment(LIRInstruction op, String comment)
LIRInstruction. Existing comments are replaced.public final String getComment(LIRInstruction op)
LIRInstruction.public CallingConvention getCallingConvention()
public final FrameMapBuilder getFrameMapBuilder()
FrameMapBuilder for collecting the information to build a
FrameMap.
This method can only be used prior calling LIRGenerationResult.buildFrameMap().public void buildFrameMap()
FrameMap out of the FrameMapBuilder. This method should only be
called once. After calling it, LIRGenerationResult.getFrameMapBuilder() can no longer be used.public FrameMap getFrameMap()
FrameMap associated with this LIRGenerationResult.
This method can only be called after LIRGenerationResult.buildFrameMap().public final RegisterConfig getRegisterConfig()
public LIR getLIR()
public boolean hasForeignCall()
public final void setForeignCall(boolean hasForeignCall)
public String getCompilationUnitName()
public CompilationIdentifier getCompilationId()