Lines Matching refs:opcode
77 switch (d_insn->opcode) { in DoConstantPropagation()
149 if ((mir->dalvikInsn.opcode == Instruction::MOVE_RESULT) || in FindMoveResult()
150 (mir->dalvikInsn.opcode == Instruction::MOVE_RESULT_OBJECT) || in FindMoveResult()
151 (mir->dalvikInsn.opcode == Instruction::MOVE_RESULT_WIDE)) { in FindMoveResult()
155 if (MIR::DecodedInstruction::IsPseudoMirOp(mir->dalvikInsn.opcode)) { in FindMoveResult()
189 if (static_cast<int>(mir->dalvikInsn.opcode) == kMirOpPhi) { in FindPhi()
205 switch (mir->dalvikInsn.opcode) { in SelectKind()
233 static constexpr ConditionCode ConditionCodeForIfCcZ(Instruction::Code opcode) { in ConditionCodeForIfCcZ() argument
234 return kIfCcZConditionCodes[opcode - Instruction::IF_EQZ]; in ConditionCodeForIfCcZ()
445 static bool EvaluateBranch(Instruction::Code opcode, int32_t src1, int32_t src2) { in EvaluateBranch() argument
447 switch (opcode) { in EvaluateBranch()
461 LOG(FATAL) << "Unexpected opcode " << opcode; in EvaluateBranch()
494 Instruction::Code opcode = mir->dalvikInsn.opcode; in BasicBlockOpt() local
495 switch (opcode) { in BasicBlockOpt()
515 bool is_taken = EvaluateBranch(opcode, ConstantValue(mir->ssa_rep->uses[0]), rhs); in BasicBlockOpt()
520 mir->dalvikInsn.opcode = Instruction::GOTO; in BasicBlockOpt()
522 IsInstructionIfCc(opcode) ? mir->dalvikInsn.vC : mir->dalvikInsn.vB; in BasicBlockOpt()
526 mir->dalvikInsn.opcode = static_cast<Instruction::Code>(kMirOpNop); in BasicBlockOpt()
550 if (IsInstructionIfCcZ(mir_next->dalvikInsn.opcode) && in BasicBlockOpt()
553 mir_next->meta.ccode = ConditionCodeForIfCcZ(mir_next->dalvikInsn.opcode); in BasicBlockOpt()
554 switch (opcode) { in BasicBlockOpt()
556 mir_next->dalvikInsn.opcode = in BasicBlockOpt()
560 mir_next->dalvikInsn.opcode = in BasicBlockOpt()
564 mir_next->dalvikInsn.opcode = in BasicBlockOpt()
568 mir_next->dalvikInsn.opcode = in BasicBlockOpt()
572 mir_next->dalvikInsn.opcode = in BasicBlockOpt()
575 default: LOG(ERROR) << "Unexpected opcode: " << opcode; in BasicBlockOpt()
577 mir->dalvikInsn.opcode = static_cast<Instruction::Code>(kMirOpNop); in BasicBlockOpt()
601 IsInstructionIfCcZ(mir->dalvikInsn.opcode)) { in BasicBlockOpt()
646 mir->meta.ccode = ConditionCodeForIfCcZ(mir->dalvikInsn.opcode); in BasicBlockOpt()
647 mir->dalvikInsn.opcode = static_cast<Instruction::Code>(kMirOpSelect); in BasicBlockOpt()
790 Instruction::Code opcode = prev->last_mir_insn->dalvikInsn.opcode; in LayoutBlocks() local
791 switch (opcode) { in LayoutBlocks()
792 case Instruction::IF_EQ: opcode = Instruction::IF_NE; break; in LayoutBlocks()
793 case Instruction::IF_NE: opcode = Instruction::IF_EQ; break; in LayoutBlocks()
794 case Instruction::IF_LT: opcode = Instruction::IF_GE; break; in LayoutBlocks()
795 case Instruction::IF_GE: opcode = Instruction::IF_LT; break; in LayoutBlocks()
796 case Instruction::IF_GT: opcode = Instruction::IF_LE; break; in LayoutBlocks()
797 case Instruction::IF_LE: opcode = Instruction::IF_GT; break; in LayoutBlocks()
798 case Instruction::IF_EQZ: opcode = Instruction::IF_NEZ; break; in LayoutBlocks()
799 case Instruction::IF_NEZ: opcode = Instruction::IF_EQZ; break; in LayoutBlocks()
800 case Instruction::IF_LTZ: opcode = Instruction::IF_GEZ; break; in LayoutBlocks()
801 case Instruction::IF_GEZ: opcode = Instruction::IF_LTZ; break; in LayoutBlocks()
802 case Instruction::IF_GTZ: opcode = Instruction::IF_LEZ; break; in LayoutBlocks()
803 case Instruction::IF_LEZ: opcode = Instruction::IF_GTZ; break; in LayoutBlocks()
804 default: LOG(FATAL) << "Unexpected opcode " << opcode; in LayoutBlocks()
806 prev->last_mir_insn->dalvikInsn.opcode = opcode; in LayoutBlocks()
822 (static_cast<int>(bb->last_mir_insn->dalvikInsn.opcode) == kMirOpCheck)) { in CombineBlocks()
845 mir->dalvikInsn.opcode = static_cast<Instruction::Code>(kMirOpNop); in CombineBlocks()
1068 } else if (UNLIKELY(next_mir->dalvikInsn.opcode != Instruction::MOVE_RESULT_OBJECT)) { in EliminateNullChecks()
1069 LOG(WARNING) << "Unexpected opcode following new: " << next_mir->dalvikInsn.opcode; in EliminateNullChecks()
1193 if (IsInstructionSGetOrSPut(mir->dalvikInsn.opcode)) { in EliminateClassInitChecksGate()
1209 } else if (IsInstructionInvokeStatic(mir->dalvikInsn.opcode)) { in EliminateClassInitChecksGate()
1293 if (IsInstructionSGetOrSPut(mir->dalvikInsn.opcode)) { in EliminateClassInitChecks()
1296 } else if (IsInstructionInvokeStatic(mir->dalvikInsn.opcode)) { in EliminateClassInitChecks()
1476 DexMemAccessType type = IGetOrIPutMemAccessType(iget_or_iput->dalvikInsn.opcode); in ComputeInlineIFieldLoweringInfo()
1519 if (MIR::DecodedInstruction::IsPseudoMirOp(mir->dalvikInsn.opcode)) { in InlineSpecialMethods()
1666 Instruction::Code opcode = mir->dalvikInsn.opcode; in StringChange() local
1667 if (opcode == Instruction::NEW_INSTANCE) { in StringChange()
1671 mir->dalvikInsn.opcode = Instruction::CONST_4; in StringChange()
1674 } else if ((opcode == Instruction::INVOKE_DIRECT) || in StringChange()
1675 (opcode == Instruction::INVOKE_DIRECT_RANGE)) { in StringChange()
1680 bool is_range = (opcode == Instruction::INVOKE_DIRECT_RANGE); in StringChange()
1685 mir->dalvikInsn.opcode = Instruction::INVOKE_STATIC; in StringChange()
1690 mir->dalvikInsn.opcode = Instruction::INVOKE_STATIC_RANGE; in StringChange()
1695 move_result_mir->dalvikInsn.opcode = Instruction::MOVE_RESULT_OBJECT; in StringChange()
1711 move_mir->dalvikInsn.opcode = Instruction::MOVE_OBJECT; in StringChange()
1752 if ((IsInstructionInvoke(mir->dalvikInsn.opcode) || in EliminateSuspendChecks()
1753 IsInstructionQuickInvoke(mir->dalvikInsn.opcode)) && in EliminateSuspendChecks()
1794 DCHECK(IsInstructionIfCc(bb->last_mir_insn->dalvikInsn.opcode) || in EliminateSuspendChecks()
1795 IsInstructionIfCcZ(bb->last_mir_insn->dalvikInsn.opcode) || in EliminateSuspendChecks()
1796 IsInstructionGoto(bb->last_mir_insn->dalvikInsn.opcode) || in EliminateSuspendChecks()
1797 (static_cast<int>(bb->last_mir_insn->dalvikInsn.opcode) >= kMirOpFusedCmplFloat && in EliminateSuspendChecks()
1798 static_cast<int>(bb->last_mir_insn->dalvikInsn.opcode) <= kMirOpFusedCmpLong)); in EliminateSuspendChecks()
1806 mir->dalvikInsn.opcode = Instruction::GOTO; in EliminateSuspendChecks()
1851 } else if (mir->dalvikInsn.opcode == Instruction::CHECK_CAST && in CanThrow()
1854 } else if (mir->dalvikInsn.opcode == Instruction::ARRAY_LENGTH || in CanThrow()
1855 static_cast<int>(mir->dalvikInsn.opcode) == kMirOpNullCheck) { in CanThrow()
1883 add_mir->dalvikInsn.opcode = static_cast<Instruction::Code>(kMirOpMsubLong); in CombineMultiplyAdd()
1885 add_mir->dalvikInsn.opcode = static_cast<Instruction::Code>(kMirOpMaddLong); in CombineMultiplyAdd()
1889 add_mir->dalvikInsn.opcode = static_cast<Instruction::Code>(kMirOpMsubInt); in CombineMultiplyAdd()
1891 add_mir->dalvikInsn.opcode = static_cast<Instruction::Code>(kMirOpMaddInt); in CombineMultiplyAdd()
1932 mul_mir->dalvikInsn.opcode = static_cast<Instruction::Code>(kMirOpNop); in CombineMultiplyAdd()
1943 Instruction::Code opcode = mir->dalvikInsn.opcode; in MultiplyAddOpt() local
1946 switch (opcode) { in MultiplyAddOpt()