[Mlir-commits] [mlir] [MLIR][LLVM] Extend DIScopeForLLVMFuncOp to handle cross-file operatio… (PR #167844)
Zichen Lu
llvmlistbot at llvm.org
Mon Nov 17 01:15:40 PST 2025
================
@@ -110,7 +110,9 @@ static Location getNestedLoc(Operation *op, LLVM::DIScopeAttr scopeAttr,
}
static void setLexicalBlockFileAttr(Operation *op) {
- if (auto callSiteLoc = dyn_cast<CallSiteLoc>(op->getLoc())) {
+ Location opLoc = op->getLoc();
----------------
MikaOvO wrote:
If this change is accepted, I plan to add a simple MLIR file generated from merging multiple source files and check whether the location information in the results includes multiple files.
https://github.com/llvm/llvm-project/pull/167844
More information about the Mlir-commits
mailing list