[mlir:LLVM] Rewrite the LLVMIR export to use the debug info attributes
authorRiver Riddle <riddleriver@gmail.com>
Sat, 22 Oct 2022 23:28:32 +0000 (16:28 -0700)
committerRiver Riddle <riddleriver@gmail.com>
Tue, 25 Oct 2022 05:31:41 +0000 (22:31 -0700)
commit9af92ed8a0da2c35773708dc7a23cd8e56557e2d
tree29298a87ff22315620ccbd4dabbe4279bfecdf2b
parentb0fc18da5bd9f6c6da5f8af775f75a7af9c27af1
[mlir:LLVM] Rewrite the LLVMIR export to use the debug info attributes

This has been a long standing TODO, and actually enables users to generate
debug information for LLVM using the LLVM dialect; as opposed to our
dummy placeholder that generated just enough for line table information.

Differential Revision: https://reviews.llvm.org/D136543
17 files changed:
flang/test/Driver/emit-asm-aarch64.f90
flang/test/Driver/emit-asm-x86.f90
flang/test/Fir/embox.fir
flang/test/Fir/ignore-missing-type-descriptor.fir
flang/test/Lower/OpenMP/omp-ordered-threads.f90
mlir/docs/Dialects/LLVM.md
mlir/include/mlir/Dialect/LLVMIR/LLVMIntrinsicOps.td
mlir/include/mlir/IR/Location.h
mlir/include/mlir/Target/LLVMIR/ModuleTranslation.h
mlir/lib/IR/Diagnostics.cpp
mlir/lib/Target/LLVMIR/DebugTranslation.cpp
mlir/lib/Target/LLVMIR/DebugTranslation.h
mlir/lib/Target/LLVMIR/ModuleTranslation.cpp
mlir/test/Target/LLVMIR/llvmir-debug.mlir
mlir/test/Target/LLVMIR/llvmir.mlir
mlir/test/Target/LLVMIR/openmp-llvm.mlir
mlir/test/Target/LLVMIR/openmp-nested.mlir