[all-commits] [llvm/llvm-project] 0a2762: [NVPTX] Disable DWARF .file directory for PTX
Andrew Savonichev via All-commits
all-commits at lists.llvm.org
Tue Apr 26 11:44:03 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 0a27622a1d625f179a17f3a22a547d50b042b76e
https://github.com/llvm/llvm-project/commit/0a27622a1d625f179a17f3a22a547d50b042b76e
Author: Andrew Savonichev <andrew.savonichev at gmail.com>
Date: 2022-04-26 (Tue, 26 Apr 2022)
Changed paths:
M clang/lib/CodeGen/BackendUtil.cpp
M llvm/include/llvm/MC/MCAsmInfo.h
M llvm/include/llvm/MC/MCTargetOptions.h
M llvm/lib/CodeGen/LLVMTargetMachine.cpp
M llvm/lib/MC/MCTargetOptions.cpp
M llvm/lib/Target/NVPTX/MCTargetDesc/NVPTXMCAsmInfo.cpp
M llvm/test/DebugInfo/NVPTX/dbg-declare-alloca.ll
M llvm/test/DebugInfo/NVPTX/debug-file-loc-only.ll
M llvm/test/DebugInfo/NVPTX/debug-file-loc.ll
M llvm/test/DebugInfo/NVPTX/debug-loc-offset.ll
A llvm/test/DebugInfo/NVPTX/dwarf-file-dir.ll
M llvm/tools/llc/llc.cpp
Log Message:
-----------
[NVPTX] Disable DWARF .file directory for PTX
Default behavior for .file directory was changed in D105856, but
ptxas (CUDA 11.5 release) refuses to parse it:
$ llc -march=nvptx64 llvm/test/DebugInfo/NVPTX/debug-file-loc.ll
$ ptxas debug-file-loc.s
ptxas debug-file-loc.s, line 42; fatal : Parsing error near
'"foo.h"': syntax error
Added a new field to MCAsmInfo to control default value of
UseDwarfDirectory. This value is used if -dwarf-directory command line
option is not specified.
Differential Revision: https://reviews.llvm.org/D121299
More information about the All-commits
mailing list