When emission of the lineinfo is requested for the NVPTX, render the
LLVM -no-cuda-debug option to disable emission of the debug option
in the .target directive. Required for the correct work of the ptxas
tool, which does not allow emission of the optimized code in presence of
the debug option.
Details
Details
Diff Detail
Diff Detail
- Repository
- rC Clang
- Build Status
Buildable 17181 Build 17181: arc lint + arc unit
Event Timeline
Comment Actions
So, I'd really prefer not to set options via the backend option path. From here I think we should aim to take all of the options we added and having the asm printer in the backend know how to set them depending on the target. We could also add things to the IR metadata if necessary, but I'd like to avoid that if possible.
Thoughts?
Comment Actions
This patch is outdated a bit, I have a patch https://reviews.llvm.org/D46061 that does it in a different way, via MCOptionю This is only a backend patch. I planned to update this patch after D46061 is accepted.