Home | History | Annotate | Download | only in portable

Lines Matching full:instruction

22 #include <llvm/IR/Instruction.h>
67 // This can happen on instruction rewrite on verification failure
74 ::llvm::Instruction* inst = ::llvm::dyn_cast< ::llvm::Instruction>(placeholder);
128 const Instruction::PackedSwitchPayload* payload =
129 reinterpret_cast<const Instruction::PackedSwitchPayload*>(
152 const Instruction::SparseSwitchPayload* payload =
153 reinterpret_cast<const Instruction::SparseSwitchPayload*>(
691 Instruction::Code opcode = mir->dalvikInsn.opcode;
699 LOG(INFO) << ".. " << Instruction::Name(opcode) << " 0x" << std::hex << op_val;
744 case Instruction::NOP:
747 case Instruction::MOVE:
748 case Instruction::MOVE_OBJECT:
749 case Instruction::MOVE_16:
750 case Instruction::MOVE_OBJECT_16:
751 case Instruction::MOVE_OBJECT_FROM16:
752 case Instruction::MOVE_FROM16:
753 case Instruction::MOVE_WIDE:
754 case Instruction::MOVE_WIDE_16:
755 case Instruction::MOVE_WIDE_FROM16: {
769 case Instruction::CONST:
770 case Instruction::CONST_4:
771 case Instruction::CONST_16: {
778 case Instruction::CONST_WIDE_16:
779 case Instruction::CONST_WIDE_32: {
788 case Instruction::CONST_HIGH16: {
795 case Instruction::CONST_WIDE: {
802 case Instruction::CONST_WIDE_HIGH16: {
810 case Instruction::SPUT_OBJECT:
814 case Instruction::SPUT:
822 case Instruction::SPUT_BOOLEAN:
826 case Instruction::SPUT_BYTE:
829 case Instruction::SPUT_CHAR:
832 case Instruction::SPUT_SHORT:
835 case Instruction::SPUT_WIDE:
845 case Instruction::SGET_OBJECT:
848 case Instruction::SGET:
855 case Instruction::SGET_BOOLEAN:
858 case Instruction::SGET_BYTE:
861 case Instruction::SGET_CHAR:
864 case Instruction::SGET_SHORT:
867 case Instruction::SGET_WIDE:
876 case Instruction::RETURN_WIDE:
877 case Instruction
878 case Instruction::RETURN_OBJECT: {
888 case Instruction::RETURN_VOID: {
904 case Instruction::IF_EQ:
907 case Instruction::IF_NE:
910 case Instruction::IF_LT:
913 case Instruction::IF_GE:
916 case Instruction::IF_GT:
919 case Instruction::IF_LE:
922 case Instruction::IF_EQZ:
925 case Instruction::IF_NEZ:
928 case Instruction::IF_LTZ:
931 case Instruction::IF_GEZ:
934 case Instruction::IF_GTZ:
937 case Instruction::IF_LEZ:
941 case Instruction::GOTO:
942 case Instruction::GOTO_16:
943 case Instruction::GOTO_32: {
951 case Instruction::ADD_LONG:
952 case Instruction::ADD_LONG_2ADDR:
953 case Instruction::ADD_INT:
954 case Instruction::ADD_INT_2ADDR:
957 case Instruction::SUB_LONG:
958 case Instruction::SUB_LONG_2ADDR:
959 case Instruction::SUB_INT:
960 case Instruction::SUB_INT_2ADDR:
963 case Instruction::MUL_LONG:
964 case Instruction::MUL_LONG_2ADDR:
965 case Instruction::MUL_INT:
966 case Instruction::MUL_INT_2ADDR:
969 case Instruction::DIV_LONG:
970 case Instruction::DIV_LONG_2ADDR:
971 case Instruction::DIV_INT:
972 case Instruction::DIV_INT_2ADDR:
975 case Instruction::REM_LONG:
976 case Instruction::REM_LONG_2ADDR:
977 case Instruction::REM_INT:
978 case Instruction::REM_INT_2ADDR:
981 case Instruction::AND_LONG:
982 case Instruction::AND_LONG_2ADDR:
983 case Instruction::AND_INT:
984 case Instruction::AND_INT_2ADDR:
987 case Instruction::OR_LONG:
988 case Instruction::OR_LONG_2ADDR:
989 case Instruction::OR_INT:
990 case Instruction::OR_INT_2ADDR:
993 case Instruction::XOR_LONG:
994 case Instruction::XOR_LONG_2ADDR:
995 case Instruction::XOR_INT:
996 case Instruction::XOR_INT_2ADDR:
999 case Instruction::SHL_LONG:
1000 case Instruction::SHL_LONG_2ADDR:
1004 case Instruction::SHL_INT:
1005 case Instruction::SHL_INT_2ADDR:
1009 case Instruction::SHR_LONG:
1010 case Instruction::SHR_LONG_2ADDR:
1014 case Instruction::SHR_INT:
1015 case Instruction::SHR_INT_2ADDR:
1019 case Instruction::USHR_LONG:
1020 case Instruction::USHR_LONG_2ADDR:
1024 case Instruction::USHR_INT:
1025 case Instruction::USHR_INT_2ADDR:
1030 case Instruction::ADD_INT_LIT16:
1031 case Instruction::ADD_INT_LIT8:
1034 case Instruction::RSUB_INT:
1035 case Instruction::RSUB_INT_LIT8:
1038 case Instruction::MUL_INT_LIT16:
1039 case Instruction::MUL_INT_LIT8:
1042 case Instruction::DIV_INT_LIT16:
1043 case Instruction::DIV_INT_LIT8:
1046 case Instruction::REM_INT_LIT16:
1047 case Instruction::REM_INT_LIT8:
1050 case Instruction::AND_INT_LIT16:
1051 case Instruction::AND_INT_LIT8:
1054 case Instruction::OR_INT_LIT16:
1055 case Instruction::OR_INT_LIT8:
1058 case Instruction::XOR_INT_LIT16:
1059 case Instruction::XOR_INT_LIT8:
1062 case Instruction::SHL_INT_LIT8:
1066 case Instruction::SHR_INT_LIT8:
1070 case Instruction::USHR_INT_LIT8:
1075 case Instruction::ADD_FLOAT:
1076 case Instruction::ADD_FLOAT_2ADDR:
1077 case Instruction::ADD_DOUBLE:
1078 case Instruction::ADD_DOUBLE_2ADDR:
1082 case Instruction::SUB_FLOAT:
1083 case Instruction::SUB_FLOAT_2ADDR:
1084 case Instruction::SUB_DOUBLE:
1085 case Instruction::SUB_DOUBLE_2ADDR:
1089 case Instruction::MUL_FLOAT:
1090 case Instruction::MUL_FLOAT_2ADDR:
1091 case Instruction::MUL_DOUBLE:
1092 case Instruction::MUL_DOUBLE_2ADDR:
1096 case Instruction::DIV_FLOAT:
1097 case Instruction::DIV_FLOAT_2ADDR:
1098 case Instruction::DIV_DOUBLE:
1099 case Instruction::DIV_DOUBLE_2ADDR:
1103 case Instruction::REM_FLOAT:
1104 case Instruction::REM_FLOAT_2ADDR:
1105 case Instruction::REM_DOUBLE:
1106 case Instruction::REM_DOUBLE_2ADDR:
1110 case Instruction::INVOKE_STATIC:
1114 case Instruction::INVOKE_STATIC_RANGE:
1119 case Instruction::INVOKE_DIRECT:
1123 case Instruction::INVOKE_DIRECT_RANGE:
1128 case Instruction::INVOKE_VIRTUAL:
1132 case Instruction::INVOKE_VIRTUAL_RANGE:
1137 case Instruction::INVOKE_SUPER:
1141 case Instruction::INVOKE_SUPER_RANGE:
1146 case Instruction::INVOKE_INTERFACE:
1150 case Instruction::INVOKE_INTERFACE_RANGE:
1154 case Instruction::FILLED_NEW_ARRAY:
1158 case Instruction::FILLED_NEW_ARRAY_RANGE:
1163 case Instruction::CONST_STRING:
1164 case Instruction::CONST_STRING_JUMBO:
1169 case Instruction::CONST_CLASS:
1174 case Instruction::CHECK_CAST:
1178 case Instruction::NEW_INSTANCE:
1182 case Instruction::MOVE_EXCEPTION:
1186 case Instruction::THROW:
1201 case Instruction::MOVE_RESULT_WIDE:
1202 case Instruction::MOVE_RESULT:
1203 case Instruction::MOVE_RESULT_OBJECT:
1210 case Instruction::MONITOR_ENTER:
1216 case Instruction::MONITOR_EXIT:
1222 case Instruction::ARRAY_LENGTH:
1226 case Instruction::NEW_ARRAY:
1230 case Instruction::INSTANCE_OF:
1234 case Instruction::AGET:
1244 case Instruction::AGET_OBJECT:
1248 case Instruction::AGET_BOOLEAN:
1253 case Instruction::AGET_BYTE:
1257 case Instruction::AGET_CHAR:
1261 case Instruction::AGET_SHORT:
1265 case Instruction::AGET_WIDE:
1276 case Instruction::APUT:
1286 case Instruction::APUT_OBJECT:
1290 case Instruction::APUT_BOOLEAN:
1295 case Instruction::APUT_BYTE:
1299 case Instruction::APUT_CHAR:
1303 case Instruction::APUT_SHORT:
1307 case Instruction::APUT_WIDE:
1318 case Instruction::IGET:
1327 case Instruction::IGET_OBJECT:
1331 case Instruction::IGET_BOOLEAN:
1335 case Instruction::IGET_BYTE:
1339 case Instruction::IGET_CHAR:
1343 case Instruction::IGET_SHORT:
1347 case Instruction::IGET_WIDE:
1356 case Instruction::IPUT:
1365 case Instruction::IPUT_OBJECT:
1369 case Instruction::IPUT_BOOLEAN:
1373 case Instruction::IPUT_BYTE:
1377 case Instruction::IPUT_CHAR:
1381 case Instruction::IPUT_SHORT:
1385 case Instruction::IPUT_WIDE:
1395 case Instruction::FILL_ARRAY_DATA:
1399 case Instruction::LONG_TO_INT:
1403 case Instruction::INT_TO_LONG:
1407 case Instruction::INT_TO_CHAR:
1411 case Instruction::INT_TO_BYTE:
1415 case Instruction::INT_TO_SHORT:
1420 case Instruction::INT_TO_FLOAT:
1421 case Instruction::LONG_TO_FLOAT:
1425 case Instruction::INT_TO_DOUBLE:
1426 case Instruction::LONG_TO_DOUBLE:
1430 case Instruction::FLOAT_TO_DOUBLE:
1434 case Instruction::DOUBLE_TO_FLOAT:
1438 case Instruction::NEG_LONG:
1439 case Instruction::NEG_INT:
1443 case Instruction::NEG_FLOAT:
1444 case Instruction::NEG_DOUBLE:
1448 case Instruction::NOT_LONG:
1449 case Instruction::NOT_INT:
1453 case Instruction::FLOAT_TO_INT:
1457 case Instruction::DOUBLE_TO_INT:
1461 case Instruction::FLOAT_TO_LONG:
1465 case Instruction::DOUBLE_TO_LONG:
1469 case Instruction::CMPL_FLOAT:
1473 case Instruction::CMPG_FLOAT:
1477 case Instruction::CMPL_DOUBLE:
1481 case Instruction::CMPG_DOUBLE:
1485 case Instruction::CMP_LONG:
1490 case Instruction::PACKED_SWITCH:
1494 case Instruction::SPARSE_SWITCH:
1520 ::llvm::Instruction* inst = irb_->CreateCall(intr);
1710 Instruction::Format dalvik_format =
1711 Instruction::FormatOf(mir->dalvikInsn.opcode);
1714 // Combine check and work halves of throwing instruction.
1722 work_half->dalvikInsn.opcode = static_cast<Instruction::Code>(kMirOpNop);
1755 Instruction::Code dalvik_opcode = static_cast<Instruction::Code>(opcode);
1758 Instruction::Name(dalvik_opcode),
1932 ::llvm::Instruction* inst = ::llvm::dyn_cast< ::llvm::Instruction>(it++);