[all-commits] [llvm/llvm-project] a902ca: [MLIR][LLVM] Infer export location scope from loca...
Christian Ulmann via All-commits
all-commits at lists.llvm.org
Mon Oct 30 02:42:18 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: a902ca66428164b4f11dedf1c551393add511271
https://github.com/llvm/llvm-project/commit/a902ca66428164b4f11dedf1c551393add511271
Author: Christian Ulmann <christian.ulmann at nextsilicon.com>
Date: 2023-10-30 (Mon, 30 Oct 2023)
Changed paths:
M mlir/lib/Target/LLVMIR/DebugTranslation.cpp
M mlir/test/Target/LLVMIR/llvmir-debug.mlir
Log Message:
-----------
[MLIR][LLVM] Infer export location scope from location, if possible (#70465)
This commit changes the debug location exporter to try to infer the
locations scope from the MLIR location, if possible. This is necessary
when the function containing the operation does not have a DISubprogram
attached to it.
We observed a roundtrip crash with a case where the the subprogram was
missing on a function, but a debug intrinsic referenced a subprogram
non-the-less. This lead to a successful import, but the export silently
dropped the location, which results in invalid IR.
More information about the All-commits
mailing list