C# Class Mosa.Compiler.Framework.Stages.CodeGenerationStage

Base class for code generation stages.
Inheritance: BaseMethodCompilerStage, ICodeGenerationStage, IMethodCompilerStage, IPipelineStage
Show file Open project: tgiphil/MOSA-Project

Protected Properties

Property Type Description
codeEmitter BaseCodeEmitter
codeStream Stream

Public Methods

Method Description
CodeGenerationStage ( ) : System

Initializes a new instance of the CodeGenerationStage class.

CodeGenerationStage ( bool emitBinary ) : System

Initializes a new instance of the CodeGenerationStage class.

Protected Methods

Method Description
BeginGenerate ( ) : void

Begins the generate.

BlockEnd ( BasicBlock block ) : void

Completion of code generation for a block.

BlockStart ( BasicBlock block ) : void

Start of code generation for a block.

EmitInstructions ( ) : void

Called to emit a list of instructions offered by the instruction provider.

EndGenerate ( ) : void

Code generation completed.

Run ( ) : void

Method Details

BeginGenerate() protected method

Begins the generate.
protected BeginGenerate ( ) : void
return void

BlockEnd() protected method

Completion of code generation for a block.
protected BlockEnd ( BasicBlock block ) : void
block BasicBlock The completed block.
return void

BlockStart() protected method

Start of code generation for a block.
protected BlockStart ( BasicBlock block ) : void
block BasicBlock The started block.
return void

CodeGenerationStage() public method

Initializes a new instance of the CodeGenerationStage class.
public CodeGenerationStage ( ) : System
return System

CodeGenerationStage() public method

Initializes a new instance of the CodeGenerationStage class.
public CodeGenerationStage ( bool emitBinary ) : System
emitBinary bool if set to true [emit binary].
return System

EmitInstructions() protected method

Called to emit a list of instructions offered by the instruction provider.
protected EmitInstructions ( ) : void
return void

EndGenerate() protected method

Code generation completed.
protected EndGenerate ( ) : void
return void

Run() protected method

protected Run ( ) : void
return void

Property Details

codeEmitter protected property

protected BaseCodeEmitter codeEmitter
return BaseCodeEmitter

codeStream protected property

Holds the stream, where code is emitted to.
protected Stream codeStream
return Stream