libredex/InstructionLowering.cpp
/*
 * Returns an array of move opcodes of the appropriate type, sorted by
 * increasing size.
 */
Returns an array of move opcodes of the appropriate type, sorted by
increasing size.
Returns an array of move opcodes of the appropriate type sorted by increasing size .
static std::array<DexOpcode, 3> move_opcode_tuple(IROpcode op) {
  switch (op) {
  case OPCODE_MOVE:
    return {{DOPCODE_MOVE, DOPCODE_MOVE_FROM16, DOPCODE_MOVE_16}};
  case OPCODE_MOVE_WIDE:
    return {
        {DOPCODE_MOVE_WIDE, DOPCODE_MOVE_WIDE_FROM16, DOPCODE_MOVE_WIDE_16}};
  case OPCODE_MOVE_OBJECT:
    return {{DOPCODE_MOVE_OBJECT, DOPCODE_MOVE_OBJECT_FROM16,
             DOPCODE_MOVE_OBJECT_16}};
  default:
    not_reached();
  }
}
static std :: array < DexOpcode , 3 > move_opcode_tuple ( IROpcode op ) { switch ( op ) { case OPCODE_MOVE : return { { DOPCODE_MOVE , DOPCODE_MOVE_FROM16 , DOPCODE_MOVE_16 } } ; case OPCODE_MOVE_WIDE : return { { DOPCODE_MOVE_WIDE , DOPCODE_MOVE_WIDE_FROM16 , DOPCODE_MOVE_WIDE_16 } } ; case OPCODE_MOVE_OBJECT : return { { DOPCODE_MOVE_OBJECT , DOPCODE_MOVE_OBJECT_FROM16 , DOPCODE_MOVE_OBJECT_16 } } ; default : not_reached ( ) ; } }
Returns an array of move opcodes of the appropriate type, sorted by
 increasing size.
Returns an array of move opcodes of the appropriate type sorted by increasing size .