Displaying 3 results from an estimated 3 matches for "nvptxmcasminfo".
2012 Nov 27
1
[LLVMdev] Purpose of -debug-compile in NVPTX backend
...- the backend defines in the XXXMCAsmInfo class if debug information is
supported (e.g. SupportsDebugInformation = true / false)
- if I don't want to output debug information then I can use the
(hidden) command line option -disable-debug-info-print (defined in
DwarfDebug.cpp).
However, in NVPTXMCAsmInfo.cpp I found:
- a new command line option:
bool CompileForDebugging;
static cl::opt<bool, true>
Debug("debug-compile", cl::desc("Compile for debugging"), cl::Hidden,
cl::location(CompileForDebugging),
cl::init(false));
- and the assignment
SupportsDebug...
2012 Jun 13
0
[LLVMdev] [NVPTX] For linkonce_odr NVPTX generates .weak, but even newest PTXAS can't handle it
...: 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 with the PTX assemble...
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