[PATCH] D78929: [AIX][XCOFF]emit extern linkage for the llvm intrinsic symbol

Jason Liu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 1 09:43:17 PDT 2020


jasonliu added inline comments.


================
Comment at: llvm/lib/Target/PowerPC/PPCISelLowering.cpp:5244
+    return cast<MCSymbolXCOFF>(
+        Context.getOrCreateSymbol(Twine(".") + Twine(SymName)));
+  };
----------------
DiggerLin wrote:
> jasonliu wrote:
> > hubert.reinterpretcast wrote:
> > > Should the name be adjusted to match that of the function introduced by https://reviews.llvm.org/D80402? @jasonliu?
> > Yeah, I think matching them would be useful for grepping.
> I do not think we can use MCSymbol *getFunctionEntryPointSymbol(const Function *F,const TargetMachine &TM) function ,  for the .memset or memcpy, we do not have Function object for it.
I don't think you can actually call that function, as the function is in TLOF and you do not have access to that from here.
Hubert and I are talking about matching the name.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D78929/new/

https://reviews.llvm.org/D78929





More information about the llvm-commits mailing list