[llvm] [SPIRV] Emitting DebugSource, DebugCompileUnit (PR #97558)
Vyacheslav Levytskyy via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 4 03:10:22 PDT 2024
================
@@ -199,6 +199,7 @@ void SPIRVPassConfig::addPreLegalizeMachineIR() {
bool SPIRVPassConfig::addLegalizeMachineIR() {
addPass(new Legalizer());
addPass(createSPIRVPostLegalizerPass());
+ addPass(createSPIRVEmitNonSemanticDIPass(&getTM<SPIRVTargetMachine>()));
----------------
VyacheslavLevytskyy wrote:
@bwlodarcz In prior discussions you've mentioned that the pass should be placed closer to the end of Backend's passes sequence. In this case you insert it between Post-Legalizer and Instruction Selection. I wonder if you intentionally is going to emit Debug Info before the Instruction Selection step, just in case.
@michalpaszkowski May I also ask your opinion about the proper place of this pass?
https://github.com/llvm/llvm-project/pull/97558
More information about the llvm-commits
mailing list