Displaying 1 result from an estimated 1 matches for "shouldprintstub".
2009 Jun 21
4
[LLVMdev] proposal to simplify isel/asmprinter interaction with globals
...;s GOT entry instead of to the global itself).
The thing that is really frustrating to me is that the asmprinters
need to reverse engineer what isel *meant* in order to output the
right thing. For example, to determine whether to emit $non_lazy_ptr,
it uses a logic tree like this:
if (shouldPrintStub(TM, Subtarget)) {
// Link-once, declaration, or Weakly-linked global variables need
// non-lazily-resolved stubs
if (GV->isDeclaration() || GV->isWeakForLinker()) {
// Dynamically-resolved functions need a stub for the function.
if (GV->hasHiddenVisib...