Interface IInstructionSelector<TInstruction>
A base class for instruction selection algorithms. Instruction selectors take IR instructions and turn them into sequences of target-specific instructions.
Namespace: Flame.Compiler.Target
Assembly: Flame.Compiler.dll
Syntax
public interface IInstructionSelector<TInstruction>
Type Parameters
Name | Description |
---|---|
TInstruction | The type of instructions to produce. |
Methods
| Improve this Doc View SourceSelectInstructions(NamedInstruction)
Selects instructions for a particular IR instruction.
Declaration
SelectedInstructions<TInstruction> SelectInstructions(NamedInstruction instruction)
Parameters
Type | Name | Description |
---|---|---|
NamedInstruction | instruction | The IR instruction to translate to target-specific instructions. |
Returns
Type | Description |
---|---|
SelectedInstructions<TInstruction> | A batch of selected instructions. |