[all-commits] [llvm/llvm-project] 3e9607: [MLIR][LLVM] Avoid exporting broken debug intrinsi...

Christian Ulmann via All-commits all-commits at lists.llvm.org
Mon Oct 30 04:49:29 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3e96070b2d25954925bf904dc8841067280ffa27
      https://github.com/llvm/llvm-project/commit/3e96070b2d25954925bf904dc8841067280ffa27
  Author: Christian Ulmann <christian.ulmann at nextsilicon.com>
  Date:   2023-10-30 (Mon, 30 Oct 2023)

  Changed paths:
    M mlir/include/mlir/Dialect/LLVMIR/LLVMIntrinsicOps.td
    M mlir/test/Target/LLVMIR/llvmir-debug.mlir

  Log Message:
  -----------
  [MLIR][LLVM] Avoid exporting broken debug intrinsics without a location (#70643)

LLVM IR does not allow debug intrinsics without a debug attachment. The
location export can fail the export of a location due to multiple
reasons. To deal with this, this commit adds a check to the debug
intrinsic's LLVM builders, that skips them, if the location is
`nullptr`.

Fixes #60222




More information about the All-commits mailing list