Displaying 3 results from an estimated 3 matches for "weakdefdirective".
2013 Aug 16
0
[LLVMdev] How do I set WeakDefDirective for a target?
Hi,
I'm a little confused over the use of WeakDefDirective & getWeakDefDirective()
as it seems to be used differently to WeakRefDirective & getWeakRefDirective().
WeakDefDirective seems to be a boolean, used by AsmPrinter::EmitLinkage(), to decide if special stuff needs to be done.
As I just want "weak", I should leave WeakDefDirective a...
2012 Jun 13
0
[LLVMdev] [NVPTX] For linkonce_odr NVPTX generates .weak, but even newest PTXAS can't handle it
...rror
> ptxas fatal : Ptx assembly aborted due to errors
>
Thanks for the report. Unfortunately, this does not appear to have a
trivial fix. As you mentioned, it is not the NVPTX back-end itself that is
emitting the ".weak", but the default MCAsmStreamer implementation.
Setting WeakDefDirective in the NVPTXMCAsmInfo class seems to trigger an
emission of ".weak_directive", which doesn't help things. Setting
LinkOnceDirective helps the ".weak" case, but there is code in LLVM that
causes a special label to be produced when LinkOnceDirective is set, which
again messes...
2012 Jun 12
2
[LLVMdev] [NVPTX] For linkonce_odr NVPTX generates .weak, but even newest PTXAS can't handle it
Dear LLVM NVPTX maintainers,
Just to have the issue recorded, I don't know how important it is:
clang generates linkonce_odr out of __inline__, and NVPTX generates .weak
out of linkonce_odr (how it happens - a big question, btw, because I can't
find anything related in NVPTX asm printer - does it chain to some other
printer?), and finally ptxas (both 4.2 and 5) fails to compile it to