[llvm-commits] [patch] ARM/MC/ELF add new stub for movt/movw in ARMFixupKinds
Jim Grosbach
grosbach at apple.com
Fri Nov 12 08:03:35 PST 2010
Sorta. getBinaryCodeForInst() is auto-generated by tablegen, so shouldn't be modified directly. The target can register hooks for instruction operands for any special encoding needs, including registering fixups, using the EncoderMethod string. For an example, have a look at the LDRi12 instruction and how it registers a fixup for the addrmode_imm12 operand when it needs one.
On Nov 11, 2010, at 7:06 PM, Jason Kim wrote:
> Is getBinaryCodeForInst the best place to place the case for
> supporting movt/movw fixup emission?
> The call stack seems to be:
>
> #0 ARMMCCodeEmitter::getBinaryCodeForInstr
> #1 ARMMCCodeEmitter::EncodeInstruction
> #2 MCELFStreamer::EmitInstToData
> #3 MCObjectStreamer::EmitInstruction
> #4 ARMAsmPrinter::EmitInstruction
> <arm-mc-elf-s08.patch>_______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
More information about the llvm-commits
mailing list