DirectXShaderCompiler/tools
Steve Urquhart 74e3256484
[SPIRV] Always provide original source to debug (#6085)
This PR improves the experience for debugging tools that consume SPIR-V
produced by passing in-memory strings to dxcompiler.dll. When dxc.exe is
used, OpSource and OpDebugSource are populated by reading original
source from the filesystem. dxcompiler.dll users instead find their
input string is preprocessed, which is confusing behavior.
Contrary to the leading comment in the code this change modifies,
debugging tools do not want preprocessed source. Such tools show and
allow editing of include files. If everything is pasted into a single
source string, finding what to edit is difficult. Editing the
preprocessed source has the additional complication that a user would
have to edit also the #line markers, which is hard to get right
manually. In the preprocessed source, all comments are lost, which makes
it hard to read the code. Finally in preprocessed source, all macros and
code under conditional compilation are lost. That will make it
impossible to modify those parts in an edit.

Co-authored-by: Steve Urquhart <stevur01@ntd.nintendo.com>
2024-02-02 10:19:49 -05:00
..
clang [SPIRV] Always provide original source to debug (#6085) 2024-02-02 10:19:49 -05:00
dsymutil
dxexp [ClangCL] Cleanup rest clang-cl warnings (#5847) 2023-10-16 19:40:51 +00:00
llc
lli
llvm-as
llvm-bcanalyzer
llvm-c-test
llvm-config
llvm-cov
llvm-cxxdump
llvm-diff
llvm-dis
llvm-dwarfdump
llvm-extract
llvm-link
llvm-lto
llvm-mc
llvm-mcmarkup
llvm-nm
llvm-objdump
llvm-pdbdump
llvm-profdata
llvm-readobj
llvm-rtdyld
llvm-shlib
llvm-size
llvm-stress
llvm-symbolizer
lto
macho-dump
msbuild
obj2yaml
opt
verify-uselistorder
yaml2obj
CMakeLists.txt
LLVMBuild.txt