Uses of Class
com.aparapi.internal.instruction.Instruction
-
Packages that use Instruction Package Description com.aparapi com.aparapi.internal.exception com.aparapi.internal.instruction com.aparapi.internal.model com.aparapi.internal.tool com.aparapi.internal.writer -
-
Uses of Instruction in com.aparapi
Methods in com.aparapi with parameters of type Instruction Modifier and Type Method Description void
Config.InstructionListener. showAndTell(java.lang.String message, Instruction _start, Instruction _instruction)
-
Uses of Instruction in com.aparapi.internal.exception
Fields in com.aparapi.internal.exception declared as Instruction Modifier and Type Field Description private Instruction
ClassParseException. instruction
Methods in com.aparapi.internal.exception that return Instruction Modifier and Type Method Description Instruction
ClassParseException. getInstruction()
Constructors in com.aparapi.internal.exception with parameters of type Instruction Constructor Description ClassParseException(Instruction _instruction, ClassParseException.TYPE _type)
-
Uses of Instruction in com.aparapi.internal.instruction
Fields in com.aparapi.internal.instruction declared as Instruction Modifier and Type Field Description private Instruction
InstructionSet.CloneInstruction. cloning
private Instruction
InstructionSet.MultiAssignInstruction. common
private Instruction
BranchSet. fallThrough
private Instruction
InstructionSet.IncrementInstruction. fieldOrVariable
private Instruction
Instruction. firstChild
private Instruction
InstructionSet.MultiAssignInstruction. from
private Instruction
ExpressionList. head
private Instruction
ExpressionList. instruction
private Instruction
Instruction. lastChild
private Instruction
Instruction. nextExpr
private Instruction
Instruction. nextPC
private Instruction
Instruction. parentExpr
private Instruction
Instruction. prevExpr
private Instruction
Instruction. prevPC
private Instruction
InstructionSet.FieldArrayElementAssign. rhs
private Instruction
InstructionSet.InlineAssignInstruction. rhs
private Instruction
ExpressionList. tail
private Instruction
BranchSet. target
protected Instruction
InstructionSet.Branch. target
protected Instruction[]
InstructionSet.Switch. targets
private Instruction
InstructionSet.MultiAssignInstruction. to
Methods in com.aparapi.internal.instruction that return Instruction Modifier and Type Method Description Instruction
ExpressionList. add(Instruction _instruction)
Add this instruction to the end of the list.static Instruction
InstructionSet.ByteCode. create(MethodModel _methodModel, ByteReader _byteReader)
Instruction
ExpressionList. createList(Instruction _newTail)
[1] [2] [3] [4] Note that passing null here essentially deletes the existing expression list and returns the expressionInstruction
InstructionSet.I_INVOKEDYNAMIC. getArg(int _arg)
Instruction
InstructionSet.I_INVOKEINTERFACE. getArg(int _arg)
Instruction
InstructionSet.I_INVOKESPECIAL. getArg(int _arg)
Instruction
InstructionSet.I_INVOKESTATIC. getArg(int _arg)
Instruction
InstructionSet.I_INVOKEVIRTUAL. getArg(int _arg)
Instruction
InstructionSet.InterfaceConstantPoolMethodIndexAccessor. getArg(int _arg)
Instruction
InstructionSet.MethodCall. getArg(int _arg)
Instruction
InstructionSet.ArrayAccess. getArrayIndex()
Instruction
InstructionSet.ArrayAccess. getArrayRef()
Instruction
InstructionSet.MultiAssignInstruction. getCommon()
Instruction
BranchSet. getFallThrough()
Instruction
InstructionSet.IncrementInstruction. getFieldOrVariableReference()
Instruction
Instruction. getFirstChild()
Instruction
InstructionSet.MultiAssignInstruction. getFrom()
Instruction
ExpressionList. getHead()
Instruction
InstructionSet.AccessInstanceField. getInstance()
Instruction
InstructionSet.AssignToInstanceField. getInstance()
Instruction
InstructionSet.I_GETFIELD. getInstance()
Instruction
InstructionSet.I_PUTFIELD. getInstance()
Instruction
InstructionSet.I_INVOKEDYNAMIC. getInstanceReference()
Instruction
InstructionSet.I_INVOKEINTERFACE. getInstanceReference()
Instruction
InstructionSet.I_INVOKESPECIAL. getInstanceReference()
Instruction
InstructionSet.I_INVOKEVIRTUAL. getInstanceReference()
Instruction
InstructionSet.InterfaceConstantPoolMethodIndexAccessor. getInstanceReference()
Instruction
InstructionSet.VirtualMethodCall. getInstanceReference()
Instruction
Instruction. getLastChild()
Instruction
InstructionSet.Binary. getLhs()
Instruction
InstructionSet.BinaryOperator. getLhs()
Instruction
InstructionSet.If. getLhs()
Instruction
Instruction. getNextExpr()
Instruction
Instruction. getNextPC()
Instruction
Instruction. getParentExpr()
Instruction
Instruction. getPrevExpr()
Instruction
Instruction. getPrevPC()
Instruction
Instruction. getReal()
Instruction
InstructionSet.CloneInstruction. getReal()
Instruction
InstructionSet.Binary. getRhs()
Instruction
InstructionSet.BinaryOperator. getRhs()
Instruction
InstructionSet.FieldArrayElementAssign. getRhs()
Instruction
InstructionSet.If. getRhs()
Instruction
InstructionSet.InlineAssignInstruction. getRhs()
Instruction
Instruction. getRootExpr()
Instruction
Instruction. getStartInstruction()
Instruction
InstructionSet.IncrementInstruction. getStartInstruction()
Instruction
ExpressionList. getTail()
Instruction
BranchSet. getTarget()
Instruction
InstructionSet.Branch. getTarget()
Instruction
InstructionSet.Switch. getTarget(int _index)
Instruction
InstructionSet.MultiAssignInstruction. getTo()
Instruction
InstructionSet.IfUnary. getUnary()
Instruction
InstructionSet.Unary. getUnary()
Instruction
InstructionSet.UnaryOperator. getUnary()
Instruction
InstructionSet.AssignToArrayElement. getValue()
Instruction
InstructionSet.AssignToField. getValueToAssign()
Instruction
InstructionSet.I_PUTFIELD. getValueToAssign()
Instruction
InstructionSet.I_PUTSTATIC. getValueToAssign()
Instruction
InstructionSet.ByteCode. newInstruction(MethodModel _methodModel, ByteReader byteReader, boolean _isWide)
Instruction
Instruction. toInstruction()
abstract Instruction
InstructionTransformer. transform(ExpressionList _expressionList, Instruction i)
Methods in com.aparapi.internal.instruction with parameters of type Instruction Modifier and Type Method Description Instruction
ExpressionList. add(Instruction _instruction)
Add this instruction to the end of the list.private void
ExpressionList. addAsComposites(InstructionSet.ByteCode _byteCode, Instruction _start, BranchSet _branchSet)
private boolean
InstructionPattern. compareSubTrees(Instruction _lhs, Instruction _rhs)
int
Instruction. compareTo(Instruction _other)
static InstructionSet.CompositeInstruction
InstructionSet.CompositeInstruction. create(InstructionSet.ByteCode _byteCode, MethodModel _methodModel, Instruction _firstChild, Instruction _lastChild, BranchSet _branchSet)
Instruction
ExpressionList. createList(Instruction _newTail)
[1] [2] [3] [4] Note that passing null here essentially deletes the existing expression list and returns the expressionboolean
ExpressionList. doesNotContainCompositeOrBranch(Instruction _start, Instruction _exclusiveEnd)
boolean
ExpressionList. doesNotContainContinueOrBreak(Instruction _start, Instruction _extent)
Determine whether the sequence of instructions from _start to _extent is free of branches which extend beyond _extent.java.lang.String
ExpressionList. dumpDiagram(Instruction _instruction)
Aids debugging.InstructionSet.ConditionalBranch
InstructionSet.ConditionalBranch. findEndOfConditionalBranchSet(Instruction _extent)
boolean
ExpressionList. foldComposite(Instruction _instruction)
Fold headTail.tail into valid compositesvoid
ExpressionList. insertBetween(Instruction _prev, Instruction _next, Instruction _newOne)
Insert the given instruction (_newone) between the existing entries (_prev and _next).boolean
Instruction. isAfter(Instruction _other)
boolean
Instruction. isAfterOrEqual(Instruction _other)
boolean
Instruction. isBefore(Instruction _other)
boolean
Instruction. isBeforeOrEqual(Instruction _other)
InstructionPattern.InstructionMatch
InstructionPattern.AssignableInstructionMatcher. matches(Instruction _instruction)
(package private) abstract InstructionPattern.InstructionMatch
InstructionPattern.InstructionMatcher. matches(Instruction _instruction)
InstructionPattern.InstructionMatch
InstructionPattern.InstructionMatcher. matches(Instruction _instruction, InstructionPattern.InstructionMatcher _instructionMatcher)
void
ExpressionList. replaceInclusive(Instruction _head, Instruction _tail, Instruction _newOne)
Inclusive replace between _head and _tail with _newOne.void
InstructionSet.Branch. retarget(Instruction _newTarget)
boolean
Instruction. sameAs(Instruction _other)
void
Instruction. setChildren(Instruction _firstChild, Instruction _lastChild)
void
Instruction. setNextExpr(Instruction _nextExpr)
void
Instruction. setNextPC(Instruction _nextByPC)
void
Instruction. setParentExpr(Instruction _parentExpr)
void
Instruction. setPrevExpr(Instruction _prevExpr)
void
Instruction. setPrevPC(Instruction _prevByPC)
void
InstructionSet.Branch. setTarget(Instruction _target)
void
InstructionSet.Switch. setTarget(int _index, Instruction _instruction)
abstract Instruction
InstructionTransformer. transform(ExpressionList _expressionList, Instruction i)
-
Uses of Instruction in com.aparapi.internal.model
Fields in com.aparapi.internal.model declared as Instruction Modifier and Type Field Description private Instruction
MethodModel. pcHead
private Instruction
MethodModel. pcTail
After we have folded the top level instructions this root list will contain a list of all of the 'root' instructions (stores/loops/conditionals) We are going to build a linked list.Methods in com.aparapi.internal.model that return Instruction Modifier and Type Method Description Instruction
MethodModel. getExprHead()
Instruction
MethodModel. getPCHead()
Methods in com.aparapi.internal.model that return types with arguments of type Instruction Modifier and Type Method Description java.util.Map<java.lang.Integer,Instruction>
MethodModel. createListOfInstructions()
Create a linked list of instructions (from pcHead to pcTail).Methods in com.aparapi.internal.model with parameters of type Instruction Modifier and Type Method Description (package private) void
MethodModel. applyTransformations(ExpressionList _expressionList, Instruction _instruction, Instruction _operandStart)
void
MethodModel. setRequiredPragmas(Instruction instruction)
Look at each instruction for use of long/double or byte writes which require pragmas to be used in the OpenCL sourcevoid
MethodModel. txFormDups(ExpressionList _expressionList, Instruction _instruction)
DUP family of instructions break our stack unwind model (whereby we treat instructions like the oeprands they create/consume).Method parameters in com.aparapi.internal.model with type arguments of type Instruction Modifier and Type Method Description void
MethodModel. buildBranchGraphs(java.util.Map<java.lang.Integer,Instruction> pcMap)
Here we connect the branch nodes to the instruction that they branch to.(package private) void
MethodModel. checkForGetter(java.util.Map<java.lang.Integer,Instruction> pcMap)
Determine if this method is a getter and record the accessed field if so(package private) void
MethodModel. checkForSetter(java.util.Map<java.lang.Integer,Instruction> pcMap)
Determine if this method is a setter and record the accessed field if soConstructor parameters in com.aparapi.internal.model with type arguments of type Instruction Constructor Description FakeLocalVariableTableEntry(java.util.Map<java.lang.Integer,Instruction> _pcMap, ClassModel.ClassModelMethod _method)
-
Uses of Instruction in com.aparapi.internal.tool
Fields in com.aparapi.internal.tool declared as Instruction Modifier and Type Field Description Instruction
InstructionViewer.InstructionView. branchTarget
Instruction
InstructionViewer.InstructionView. collapsedBranchTarget
(package private) Instruction
InstructionViewer. current
protected Instruction
InstructionHelper.BranchVector. end
(package private) Instruction
InstructionViewer. first
protected Instruction
InstructionHelper.BranchVector. from
private Instruction
InstructionViewer.InstructionView. instruction
protected Instruction
InstructionHelper.BranchVector. start
protected Instruction
InstructionHelper.BranchVector. to
Fields in com.aparapi.internal.tool with type parameters of type Instruction Modifier and Type Field Description private java.util.Map<Instruction,InstructionViewer.InstructionView>
InstructionViewer. locationToInstructionViewMap
Methods in com.aparapi.internal.tool that return Instruction Modifier and Type Method Description Instruction
InstructionHelper.BranchVector. getEnd()
Instruction
InstructionHelper.BranchVector. getFrom()
Instruction
InstructionHelper.BranchVector. getStart()
Instruction
InstructionHelper.BranchVector. getTo()
Methods in com.aparapi.internal.tool with parameters of type Instruction Modifier and Type Method Description private static void
InstructionHelper. appendFoldedInstruction(InstructionHelper.Table _sl, java.lang.String _prefix, Instruction _instruction)
(package private) static java.lang.String
InstructionHelper. createView(MethodModel _methodModel, java.lang.String _msg, Instruction _head)
(package private) static java.lang.String
InstructionHelper. createView(MethodModel _methodModel, java.lang.String _msg, Instruction _head, Instruction _tail, int[] _pcForwardBranchTargetCounts)
(package private) void
InstructionHelper. dump(java.lang.String _indent, Instruction i, boolean clone)
(package private) void
InstructionHelper. edump(java.lang.StringBuilder _sb, Instruction i, boolean clone)
(package private) void
InstructionHelper. fdump(int _depth, Instruction i, boolean clone)
(package private) InstructionViewer.InstructionView
InstructionViewer. getInstructionView(Instruction _instruction)
static java.lang.String
InstructionHelper. getLabel(Instruction instruction, boolean showNumber, boolean showExpressions, boolean verboseBytecodeLabels)
void
InstructionViewer. showAndTell(java.lang.String message, Instruction head, Instruction _instruction)
(package private) static void
InstructionHelper. writeExpression(java.lang.String _prefix, Instruction _instruction)
Constructors in com.aparapi.internal.tool with parameters of type Instruction Constructor Description BranchVector(Instruction _from, Instruction _to)
InstructionView(Instruction _instruction)
-
Uses of Instruction in com.aparapi.internal.writer
Methods in com.aparapi.internal.writer that return Instruction Modifier and Type Method Description Instruction
BlockWriter. writeConditional(BranchSet _branchSet)
Instruction
BlockWriter. writeConditional(BranchSet _branchSet, boolean _invert)
Methods in com.aparapi.internal.writer with parameters of type Instruction Modifier and Type Method Description private boolean
BlockWriter. isNeedParenthesis(Instruction instruction)
private boolean
KernelWriter. isThis(Instruction instruction)
void
BlockWriter. writeBlock(Instruction _first, Instruction _last)
void
BlockWriter. writeInstruction(Instruction _instruction)
void
KernelWriter. writeInstruction(Instruction _instruction)
void
BlockWriter. writeSequence(Instruction _first, Instruction _last)
-