|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use Instruction | |
|---|---|
| dspl.backend | |
| dspl.backend.test | |
| dspl.frontend | |
| dspl.intermediate.instructions | |
| Uses of Instruction in dspl.backend |
|---|
| Methods in dspl.backend with parameters of type Instruction | |
|---|---|
void |
InstructionProcessor.processInstruction(Instruction inst)
|
| Uses of Instruction in dspl.backend.test |
|---|
| Fields in dspl.backend.test declared as Instruction | |
|---|---|
Instruction |
IntermediateTestCase.firstInst
|
| Methods in dspl.backend.test that return Instruction | |
|---|---|
Instruction |
IntermediateTestCase.getFirstInstr()
Get the First Instruction represneting the Test Case Program |
| Uses of Instruction in dspl.frontend |
|---|
| Methods in dspl.frontend that return Instruction | |
|---|---|
Instruction |
DSPLAstToIntermediateWalker.stmt(antlr.collections.AST _t)
a statements can be one of many types, and an appropriate instruction needs to be appended to the current InstructionSet based on what needs to be done |
Instruction |
DSPLAstToIntermediateWalker.stmts(antlr.collections.AST _t)
stmts is simply a sequence of statments |
Instruction |
DSPLAstToIntermediateWalker.subprog(antlr.collections.AST _t)
|
| Uses of Instruction in dspl.intermediate.instructions |
|---|
| Subclasses of Instruction in dspl.intermediate.instructions | |
|---|---|
class |
ArithmaticInstruction
ArithmaticInstruction includes assignment, conversion, and all arithmatic instructions on both atomics and arrays It covers all common arithmatic operations (addition, subtraction, multiplication, divison, and convolusion) as applied (depending on args/dest) to both atomic and sometimes array Variables. |
class |
BranchInstruction
|
class |
CCallInstruction
CCallInstruction is the insrtuction used for invoking external *presumably c-compiled* functions. |
class |
LoopInstruction
LoopInstruction is used to represent for and while loops. Note that in DSPL a while loop is a subclass of for-loop internally. |
class |
PartialBranchInstruction
The Treewalker must first gather the instruction and its arguments when walking the tree, afterward, the walker can attach the conditional list of arguments |
class |
RelationInstruction
This class is used to represent all of the instructions and the comparison necessary for all of the branch and loop instructions that require some representation of the condition that determines if they run or not. |
| Fields in dspl.intermediate.instructions declared as Instruction | |
|---|---|
Instruction |
LoopInstruction.arithmaticInstr
Contains the instruction(s) to be evaluated directly before evaluating the conditionInstr instruction(s) |
Instruction |
LoopInstruction.assignmentInstr
Contains the instruction(s) to be evaluated before entering the loop is allowed to be empty |
Instruction |
BranchInstruction.elseInst
Instructions to be executed if hte "if" statement is not true (the else portion to be evaluated) |
private Instruction |
InstructionSet.head
First insturction in the series |
Instruction |
BranchInstruction.ifInst
Instructions to be executed if the "if" statement is true |
Instruction |
Instruction.lastInstruction
Valid only in the first instruction (head of the list), the lastInstruction points to the Instruction at the end of the list |
Instruction |
LoopInstruction.loopInstr
Contains the instructions to be evaluated wtihin the body fo the loop |
Instruction |
Instruction.nextInstruction
The next instruction to be executed after this one Note in the case of branches, this is the next instruction to be executed after all of the instructions in a particular path of the branch are executed. |
Instruction |
Instruction.prevInstruction
The previous instruction executed, or in the case of the instruction following an if { } else { } block, it would refer to the BranchInstruction, rather than the previous instruction actually executed. |
private Instruction |
InstructionSet.tail
Final instruction in the series |
| Methods in dspl.intermediate.instructions that return Instruction | |
|---|---|
Instruction |
InstructionSet.first()
Returns the head of the list |
Instruction |
InstructionSet.last()
|
| Methods in dspl.intermediate.instructions with parameters of type Instruction | |
|---|---|
void |
InstructionSet.append(Instruction next)
Takes the next instruction and appends it to the list if there is currently no list, it starts the list |
BranchInstruction |
PartialBranchInstruction.fullFromPartial(Instruction ifInst,
Instruction elseInst)
|
void |
Instruction.setNextInstruction(Instruction next)
|
| Constructors in dspl.intermediate.instructions with parameters of type Instruction | |
|---|---|
BranchInstruction(Comparison comp,
Instruction ifInst,
Instruction elseInst)
|
|
LoopInstruction(Instruction assignmentInstr,
Comparison comp,
Instruction arithmaticInstr,
Instruction loopInstr)
|
|
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||