[LLVMdev] MCInsrAnalysis extansion

Andrew Stanford-Jason andrew at xmos.com
Thu Mar 8 08:35:20 PST 2012


Hello, I'm using the MCInsrAnalysis and would like to extend it to have 
methods like:

* bool mayWritePC(MCInstr * Instr);
         returns true if Inst might write to the PC, i.e. might change 
the program flow

* uint64_t evaluateLoadAddress(MCInstr * Instr, uint64_t Addr, uint64_t 
Size);
         returns the address that Instr will load from if can be calculated

Does anyone have any thoughts or mind me doing this? Thanks



More information about the llvm-dev mailing list