[LLVMdev] changing opcode

Cameron McInally cameron.mcinally at nyu.edu
Wed Feb 13 16:12:27 PST 2013


On Wed, Feb 13, 2013 at 7:00 PM, reed kotler <rkotler at mips.com> wrote:

> Is there a simple way to just change the opcode of a machine instruction.
>
> I have a lot of long/short pairs where when I know the offset, i can
> replace the long version with the short version.
>

Hey Reed,


The x86 target does something like this. Check out ReplaceableInstrs
inlib/Target/X86/X86InstrInfo.cpp.


Hope that helps,

Cameron
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130213/09a36415/attachment.html>


More information about the llvm-dev mailing list