User defined callback to optimize individual microcode instructions. More...
|virtual int||func (mblock_t *blk, minsn_t *ins)=0|
|Optimize an instruction. More...|
User defined callback to optimize individual microcode instructions.
Optimize an instruction.
|blk||current basic block. maybe NULL, which means that the instruction must be optimized without context|
|ins||instruction to optimize; it is always a top-level instruction. the callback may not delete the instruction but may convert it into nop (see mblock_t::make_nop). to optimize sub-instructions, visit them using minsn_visitor_t. sub-instructions may not be converted int nop but can be converted to "mov x,x". for example: add x,0,x => mov x,x|