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.