[all-commits] [llvm/llvm-project] 48f8d9: [MLIR][DebugInfo] Set debug info format in MLIR->I...

Stephen Tozer via All-commits all-commits at lists.llvm.org
Thu Jun 13 08:27:37 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 48f8d95f337a9c97c5d00eb15eb43fdaa9b23235
      https://github.com/llvm/llvm-project/commit/48f8d95f337a9c97c5d00eb15eb43fdaa9b23235
  Author: Stephen Tozer <stephen.tozer at sony.com>
  Date:   2024-06-13 (Thu, 13 Jun 2024)

  Changed paths:
    M mlir/lib/Target/LLVMIR/ConvertToLLVMIR.cpp
    M mlir/lib/Target/LLVMIR/ModuleTranslation.cpp
    M mlir/test/Target/LLVMIR/llvmir-debug.mlir
    M mlir/test/lib/Dialect/Test/TestToLLVMIRTranslation.cpp

  Log Message:
  -----------
  [MLIR][DebugInfo] Set debug info format in MLIR->IR translation (#95329)

MLIR's LLVM dialect does not internally support debug records, only
converting to/from debug intrinsics. To smooth the transition from
intrinsics to records, there is a step prior to IR->MLIR translation
that switches the IR module to intrinsic-form; this patch adds the
equivalent conversion to record-form at MLIR->IR translation.

This is a partial reapply of
https://github.com/llvm/llvm-project/pull/95098 which can be landed once
the flang frontend has been updated by
https://github.com/llvm/llvm-project/pull/95306. This is the counterpart
to the earlier patch https://github.com/llvm/llvm-project/pull/89735
which handled the IR->MLIR conversion.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list