[LLVMdev] @plt problem in variable declaration

Tim Northover t.p.northover at gmail.com
Thu Jan 8 07:31:45 PST 2015


Hi Vikram,

On 5 January 2015 at 02:20, Vikram Singh <vsp1729 at gmail.com> wrote:
> Where should we do it and how to distinguish in between them?

There are some changes all along the line for this. Usually
XYZISelLowering.cpp decides which method should be used attaches a
special modifier to the global operand while lowering globals, then
when creating an MCInst this gets propagated to a slightly different
modifier for printing & emission.

ARM does something very similar, the key things to grep for are MO_PLT
(the one created early in ISelLowering) and VK_PLT (LLVM's generic
"use @PLT for this" tag) in lib/Target/ARM.

Cheers.

Tim.



More information about the llvm-dev mailing list