Home
last modified time | relevance | path

Searched refs:addInstruction (Results 1 – 25 of 35) sorted by relevance

12

/external/smali/dexlib2/src/test/java/org/jf/dexlib2/builder/
DPayloadAlignmentTest.java53 implBuilder.addInstruction(new BuilderInstruction10x(Opcode.NOP)); in testPayloadAlignmentRemoveNop()
54 implBuilder.addInstruction(new BuilderArrayPayload(4, null)); in testPayloadAlignmentRemoveNop()
70 implBuilder.addInstruction(new BuilderInstruction12x(Opcode.MOVE, 0, 0)); in testPayloadAlignmentAddNop()
71 implBuilder.addInstruction(new BuilderArrayPayload(4, null)); in testPayloadAlignmentAddNop()
93 implBuilder.addInstruction(new BuilderInstruction31t(Opcode.FILL_ARRAY_DATA, 0, label)); in testPayloadAlignmentRemoveNopWithReferent()
94 implBuilder.addInstruction(new BuilderInstruction12x(Opcode.MOVE, 0, 0)); in testPayloadAlignmentRemoveNopWithReferent()
95 implBuilder.addInstruction(new BuilderInstruction12x(Opcode.MOVE, 0, 0)); in testPayloadAlignmentRemoveNopWithReferent()
96 implBuilder.addInstruction(new BuilderInstruction12x(Opcode.MOVE, 0, 0)); in testPayloadAlignmentRemoveNopWithReferent()
97 implBuilder.addInstruction(new BuilderInstruction10x(Opcode.NOP)); in testPayloadAlignmentRemoveNopWithReferent()
99 implBuilder.addInstruction(new BuilderArrayPayload(4, null)); in testPayloadAlignmentRemoveNopWithReferent()
[all …]
DMutableMethodImplementationTest.java48 builder.addInstruction(new BuilderInstruction10x(Opcode.NOP)); in testTryEndAtEndOfMethod()
49 builder.addInstruction(new BuilderInstruction10x(Opcode.NOP)); in testTryEndAtEndOfMethod()
50 builder.addInstruction(new BuilderInstruction10x(Opcode.NOP)); in testTryEndAtEndOfMethod()
51 builder.addInstruction(new BuilderInstruction10x(Opcode.NOP)); in testTryEndAtEndOfMethod()
52 builder.addInstruction(new BuilderInstruction10x(Opcode.NOP)); in testTryEndAtEndOfMethod()
53 builder.addInstruction(new BuilderInstruction32x(Opcode.MOVE_16, 0, 0)); in testTryEndAtEndOfMethod()
73 builder.addInstruction(new BuilderInstruction10x(Opcode.NOP)); in testNewLabelByAddress()
74 builder.addInstruction(new BuilderInstruction10x(Opcode.NOP)); in testNewLabelByAddress()
75 builder.addInstruction(new BuilderInstruction10x(Opcode.NOP)); in testNewLabelByAddress()
76 builder.addInstruction(new BuilderInstruction10x(Opcode.NOP)); in testNewLabelByAddress()
[all …]
DFixGotoTest.java22 builder.addInstruction(new BuilderInstruction10t(Opcode.GOTO, gotoTarget)); in testFixGotoToGoto16()
25 builder.addInstruction(new BuilderInstruction10x(Opcode.NOP)); in testFixGotoToGoto16()
29 builder.addInstruction(new BuilderInstruction10x(Opcode.RETURN_VOID)); in testFixGotoToGoto16()
45 builder.addInstruction(new BuilderInstruction10t(Opcode.GOTO, gotoTarget)); in testFixGotoToGoto32()
48 builder.addInstruction(new BuilderInstruction10x(Opcode.NOP)); in testFixGotoToGoto32()
52 builder.addInstruction(new BuilderInstruction10x(Opcode.RETURN_VOID)); in testFixGotoToGoto32()
68 builder.addInstruction(new BuilderInstruction20t(Opcode.GOTO_16, gotoTarget)); in testFixGoto16ToGoto32()
71 builder.addInstruction(new BuilderInstruction10x(Opcode.NOP)); in testFixGoto16ToGoto32()
75 builder.addInstruction(new BuilderInstruction10x(Opcode.RETURN_VOID)); in testFixGoto16ToGoto32()
91 builder.addInstruction(new BuilderInstruction20t(Opcode.GOTO_16, goto16Target)); in testFixGotoCascading()
[all …]
DFixOffsetsTest.java56 builder.addInstruction(new BuilderInstruction10t(Opcode.GOTO, firstGotoTarget)); in testFixOffsets()
61 builder.addInstruction(new BuilderInstruction10x(Opcode.NOP)); in testFixOffsets()
69 builder.addInstruction(new BuilderInstruction10x(Opcode.NOP)); in testFixOffsets()
75 builder.addInstruction(new BuilderInstruction10t(Opcode.GOTO, secondGotoTarget)); in testFixOffsets()
82 builder.addInstruction(new BuilderInstruction10x(Opcode.NOP)); in testFixOffsets()
91 builder.addInstruction(new BuilderInstruction10x(Opcode.RETURN_VOID)); in testFixOffsets()
/external/smali/dexlib2/src/test/java/org/jf/dexlib2/analysis/
DMethodAnalyzerTest.java67 builder.addInstruction(new BuilderInstruction22c(Opcode.INSTANCE_OF, 0, 1, in testInstanceOfNarrowingEqz_art()
69 …builder.addInstruction(new BuilderInstruction21t(Opcode.IF_EQZ, 0, builder.getLabel("not_instance_… in testInstanceOfNarrowingEqz_art()
70 builder.addInstruction(new BuilderInstruction10x(Opcode.RETURN_VOID)); in testInstanceOfNarrowingEqz_art()
73 builder.addInstruction(new BuilderInstruction10x(Opcode.RETURN_VOID)); in testInstanceOfNarrowingEqz_art()
98 builder.addInstruction(new BuilderInstruction22c(Opcode.INSTANCE_OF, 0, 1, in testInstanceOfNarrowingEqz_dalvik()
100 …builder.addInstruction(new BuilderInstruction21t(Opcode.IF_EQZ, 0, builder.getLabel("not_instance_… in testInstanceOfNarrowingEqz_dalvik()
101 builder.addInstruction(new BuilderInstruction10x(Opcode.RETURN_VOID)); in testInstanceOfNarrowingEqz_dalvik()
104 builder.addInstruction(new BuilderInstruction10x(Opcode.RETURN_VOID)); in testInstanceOfNarrowingEqz_dalvik()
130 builder.addInstruction(new BuilderInstruction22c(Opcode.INSTANCE_OF, 0, 1, in testInstanceOfNarrowingNez_art()
132 …builder.addInstruction(new BuilderInstruction21t(Opcode.IF_NEZ, 0, builder.getLabel("instance_of")… in testInstanceOfNarrowingNez_art()
[all …]
/external/dexmaker/dexmaker/src/main/java/com/android/dx/
DCode.java351 addInstruction(new PlainInsn(Rops.GOTO, sourcePosition, null, RegisterSpecList.EMPTY), in jump()
390 addInstruction(new ThrowingInsn(Rops.THROW, sourcePosition, in throwValue()
402 private void addInstruction(Insn insn) { in addInstruction() method in Code
403 addInstruction(insn, null); in addInstruction()
410 private void addInstruction(Insn insn, Label branch) { in addInstruction() method in Code
483 addInstruction(new PlainCstInsn(rop, sourcePosition, target.spec(), in loadConstant()
486 addInstruction(new ThrowingCstInsn(rop, sourcePosition, in loadConstant()
496 addInstruction(new PlainInsn(Rops.opMove(source.type.ropType), in move()
506 addInstruction(new PlainInsn(op.rop(source.type), sourcePosition, in op()
521 addInstruction(new PlainInsn(rop, sourcePosition, target.spec(), sources)); in op()
[all …]
/external/llvm/lib/DebugInfo/DWARF/
DDWARFDebugFrame.cpp82 void addInstruction(uint8_t Opcode) { in addInstruction() function in llvm::FrameEntry
86 void addInstruction(uint8_t Opcode, uint64_t Operand1) { in addInstruction() function in llvm::FrameEntry
91 void addInstruction(uint8_t Opcode, uint64_t Operand1, uint64_t Operand2) { in addInstruction() function in llvm::FrameEntry
118 addInstruction(Primary, Op1); in parseInstructions()
121 addInstruction(Primary, Op1, Data.getULEB128(Offset)); in parseInstructions()
133 addInstruction(Opcode); in parseInstructions()
137 addInstruction(Opcode, Data.getAddress(Offset)); in parseInstructions()
141 addInstruction(Opcode, Data.getU8(Offset)); in parseInstructions()
145 addInstruction(Opcode, Data.getU16(Offset)); in parseInstructions()
149 addInstruction(Opcode, Data.getU32(Offset)); in parseInstructions()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/DebugInfo/DWARF/
DDWARFDebugFrame.cpp55 addInstruction(Primary, Op1); in parse()
58 addInstruction(Primary, Op1, Data.getULEB128(Offset)); in parse()
73 addInstruction(Opcode); in parse()
77 addInstruction(Opcode, Data.getAddress(Offset)); in parse()
81 addInstruction(Opcode, Data.getU8(Offset)); in parse()
85 addInstruction(Opcode, Data.getU16(Offset)); in parse()
89 addInstruction(Opcode, Data.getU32(Offset)); in parse()
98 addInstruction(Opcode, Data.getULEB128(Offset)); in parse()
102 addInstruction(Opcode, Data.getSLEB128(Offset)); in parse()
114 addInstruction(Opcode, op1, op2); in parse()
[all …]
/external/spirv-llvm/lib/SPIRV/libSPIRV/
DSPIRVModule.cpp269 virtual SPIRVInstruction *addInstruction(SPIRVInstruction *Inst,
932 return BB->addInstruction(new SPIRVStore(Target->getId(), in addStoreInst()
940 return BB->addInstruction(new SPIRVSwitch(Select, Default, Pairs, BB)); in addSwitchInst()
954 SPIRVModuleImpl::addInstruction(SPIRVInstruction *Inst, SPIRVBasicBlock *BB) { in addInstruction() function in SPIRV::SPIRVModuleImpl
956 return BB->addInstruction(Inst); in addInstruction()
965 return addInstruction(new SPIRVLoad(getId(), Source->getId(), in addLoadInst()
972 return addInstruction(new SPIRVPhi(Type, getId(), IncomingPairs, BB), BB); in addPhiInst()
979 return addInstruction(new SPIRVExtInst(TheType, getId(), in addExtInst()
987 return addInstruction(new SPIRVExtInst(TheType, getId(), in addExtInst()
994 return addInstruction(new SPIRVFunctionCall(getId(), TheFunction, in addCallInst()
[all …]
DSPIRVBasicBlock.cpp64 SPIRVBasicBlock::addInstruction(SPIRVInstruction *I) { in addInstruction() function in SPIRVBasicBlock
DSPIRVBasicBlock.h81 SPIRVInstruction *addInstruction(SPIRVInstruction *I);
DSPIRVFunction.cpp153 BB->addInstruction(Inst); in decodeBB()
/external/smali/smali/src/main/antlr/
DsmaliTreeWalker.g766 $method::methodBuilder.addInstruction(new BuilderInstruction10t(opcode, $label_ref.label));
774 $method::methodBuilder.addInstruction(new BuilderInstruction10x(opcode));
787 $method::methodBuilder.addInstruction(new BuilderInstruction11n(opcode, regA, litB));
797 $method::methodBuilder.addInstruction(new BuilderInstruction11x(opcode, regA));
808 $method::methodBuilder.addInstruction(new BuilderInstruction12x(opcode, regA, regB));
820 $method::methodBuilder.addInstruction(new BuilderInstruction20bc(opcode, verificationError,
829 $method::methodBuilder.addInstruction(new BuilderInstruction20t(opcode, $label_ref.label));
841 $method::methodBuilder.addInstruction(new BuilderInstruction21c(opcode, regA,
852 $method::methodBuilder.addInstruction(new BuilderInstruction21c(opcode, regA,
863 $method::methodBuilder.addInstruction(new BuilderInstruction21c(opcode, regA,
[all …]
/external/deqp-deps/glslang/SPIRV/
DSpvBuilder.cpp129 buildPoint->addInstruction(std::unique_ptr<Instruction>(line)); in addLine()
1245 buildPoint->addInstruction(std::unique_ptr<Instruction>(inst)); in makeReturn()
1247 …buildPoint->addInstruction(std::unique_ptr<Instruction>(new Instruction(NoResult, NoType, OpReturn… in makeReturn()
1273 buildPoint->addInstruction(std::unique_ptr<Instruction>(new Instruction(OpKill))); in makeDiscard()
1306 buildPoint->addInstruction(std::unique_ptr<Instruction>(inst)); in createUndefined()
1348 buildPoint->addInstruction(std::unique_ptr<Instruction>(store)); in createStore()
1369 buildPoint->addInstruction(std::unique_ptr<Instruction>(load)); in createLoad()
1395 buildPoint->addInstruction(std::unique_ptr<Instruction>(chain)); in createAccessChain()
1406 buildPoint->addInstruction(std::unique_ptr<Instruction>(length)); in createArrayLength()
1421 buildPoint->addInstruction(std::unique_ptr<Instruction>(extract)); in createCompositeExtract()
[all …]
DspvIR.h203 void addInstruction(std::unique_ptr<Instruction> inst);
429 __inline void Block::addInstruction(std::unique_ptr<Instruction> inst) in addInstruction() function
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-mca/
DCodeRegion.cpp55 void CodeRegions::addInstruction(std::unique_ptr<const MCInst> Instruction) { in addInstruction() function in mca::CodeRegions
63 (*It)->addInstruction(std::move(Instruction)); in addInstruction()
DCodeRegion.h64 void addInstruction(std::unique_ptr<const llvm::MCInst> Instruction) { in addInstruction() function
109 void addInstruction(std::unique_ptr<const llvm::MCInst> Instruction);
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/builder/
DMethodImplementationBuilder.java149 public void addInstruction(@Nullable BuilderInstruction instruction) { in addInstruction() method in MethodImplementationBuilder
150 impl.addInstruction(instruction); in addInstruction()
DMutableMethodImplementation.java203 public void addInstruction(int index, BuilderInstruction instruction) {
212 addInstruction(instruction);
237 public void addInstruction(@Nonnull BuilderInstruction instruction) {
458addInstruction(location.index, new BuilderInstruction10x(Opcode.NOP));
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/DebugInfo/DWARF/
DDWARFDebugFrame.h81 void addInstruction(uint8_t Opcode) { in addInstruction() function
86 void addInstruction(uint8_t Opcode, uint64_t Operand1) { in addInstruction() function
92 void addInstruction(uint8_t Opcode, uint64_t Operand1, uint64_t Operand2) { in addInstruction() function
/external/smali/smali/src/main/java/org/jf/smali/
DsmaliTreeWalker.java4606 … method_stack.peek().methodBuilder.addInstruction(new BuilderInstruction10t(opcode, label_ref105)); in insn_format10t()
4639 method_stack.peek().methodBuilder.addInstruction(new BuilderInstruction10x(opcode)); in insn_format10x()
4684 … method_stack.peek().methodBuilder.addInstruction(new BuilderInstruction11n(opcode, regA, litB)); in insn_format11n()
4721 method_stack.peek().methodBuilder.addInstruction(new BuilderInstruction11x(opcode, regA)); in insn_format11x()
4761 … method_stack.peek().methodBuilder.addInstruction(new BuilderInstruction12x(opcode, regA, regB)); in insn_format12x()
4808 …method_stack.peek().methodBuilder.addInstruction(new BuilderInstruction20bc(opcode, verificationEr… in insn_format20bc()
4847 … method_stack.peek().methodBuilder.addInstruction(new BuilderInstruction20t(opcode, label_ref117)); in insn_format20t()
4899 method_stack.peek().methodBuilder.addInstruction(new BuilderInstruction21c(opcode, regA, in insn_format21c_field()
4942 method_stack.peek().methodBuilder.addInstruction(new BuilderInstruction21c(opcode, regA, in insn_format21c_string()
4985 method_stack.peek().methodBuilder.addInstruction(new BuilderInstruction21c(opcode, regA, in insn_format21c_type()
[all …]
/external/smali/dexlib2/src/test/java/org/jf/dexlib2/writer/
DJumboStringConversionTest.java69 methodBuilder.addInstruction(new BuilderInstruction21c(Opcode.CONST_STRING, 0, in testJumboStringConversion()
72 methodBuilder.addInstruction(new BuilderInstruction10x(Opcode.RETURN_VOID)); in testJumboStringConversion()
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-cfi-verify/lib/
DFileAnalysis.h172 void addInstruction(const Instr &Instruction);
DFileAnalysis.cpp467 addInstruction(InstrMeta); in parseSectionContents()
510 void FileAnalysis::addInstruction(const Instr &Instruction) { in addInstruction() function in llvm::cfi_verify::FileAnalysis
/external/apache-commons-bcel/src/main/java/org/apache/bcel/verifier/structurals/
DSubroutines.java226 void addInstruction(final InstructionHandle ih) { in addInstruction() method in Subroutines.SubroutineImpl
483 … ((SubroutineImpl) (actual==all[0]?getTopLevel():getSubroutine(actual))).addInstruction(element); in Subroutines()

12