| 17 | #define MCINST_CACHE (ARR_SIZE(mcInst->Operands) - 1) |
| 18 | |
| 19 | void MCInst_Init(MCInst *inst) |
| 20 | { |
| 21 | // unnecessary to initialize in loop . its expensive and inst->size shuold be honored |
| 22 | inst->Operands[0].Kind = kInvalid; |
| 23 | inst->Operands[0].ImmVal = 0; |
| 24 | |
| 25 | inst->Opcode = 0; |
| 26 | inst->OpcodePub = 0; |
| 27 | inst->size = 0; |
| 28 | inst->has_imm = false; |
| 29 | inst->op1_size = 0; |
| 30 | inst->writeback = false; |
| 31 | inst->ac_idx = 0; |
| 32 | inst->popcode_adjust = 0; |
| 33 | inst->assembly[0] = '\0'; |
| 34 | inst->wasm_data.type = WASM_OP_INVALID; |
| 35 | inst->xAcquireRelease = 0; |
| 36 | for (int i = 0; i < MAX_MC_OPS; ++i) |
| 37 | inst->tied_op_idx[i] = -1; |
| 38 | } |
| 39 | |
| 40 | void MCInst_clear(MCInst *inst) |
| 41 | { |
no outgoing calls
no test coverage detected
searching dependent graphs…