[llvm] [DirectX] Lower DbgAssign to DbgValue (PR #200267)
Harald van Dijk via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 8 06:27:49 PDT 2026
================
@@ -68,14 +70,103 @@ DXILDebugInfoMap DXILDebugInfoPass::run(Module &M) {
DebugInfoFinder DIF;
DIF.processModule(M);
- for (auto &F : M) {
- for (auto &BB : F) {
- for (auto &I : make_early_inc_range(reverse(BB))) {
+ Function *DVDecl = nullptr;
+
+ for (Function &F : M) {
+ bool IsEntryBlock = true;
+ for (BasicBlock &BB : F) {
+ DenseMap<DILocalVariable *, std::pair<Instruction *, DbgValueInst *>>
+ DbgValues;
+ DenseMap<std::pair<DILocalVariable *, DIExpression *>,
+ std::pair<Instruction *, DbgValueInst *>>
+ DbgValueFragments;
----------------
hvdijk wrote:
Done (minus one small correction, `.clear()` instead of `.reset()`), thanks.
https://github.com/llvm/llvm-project/pull/200267
More information about the llvm-commits
mailing list