[all-commits] [llvm/llvm-project] 7d5b4e: [mlir][LLVM] Stop importing module location for al...

Christian Ulmann via All-commits all-commits at lists.llvm.org
Tue Jul 4 07:04:54 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7d5b4ebb22732535c0f3af926805428686ec71d3
      https://github.com/llvm/llvm-project/commit/7d5b4ebb22732535c0f3af926805428686ec71d3
  Author: Christian Ulmann <christian.ulmann at nextsilicon.com>
  Date:   2023-07-04 (Tue, 04 Jul 2023)

  Changed paths:
    M mlir/lib/Target/LLVMIR/DebugImporter.cpp
    M mlir/lib/Target/LLVMIR/DebugImporter.h
    M mlir/lib/Target/LLVMIR/ModuleImport.cpp
    M mlir/test/Target/LLVMIR/Import/basic.ll
    M mlir/test/Target/LLVMIR/Import/debug-info.ll
    M mlir/test/Target/LLVMIR/Import/import-failure.ll

  Log Message:
  -----------
  [mlir][LLVM] Stop importing module location for all unknown locs

This commit changes the LLVM IR import to use UnkownLoc for missing
debug locations. This change ensures that we do not accidentially
introduce faulty locations that can influence debugging post export.

This behavior change is not applied to locations of global metadata
operations, as their location will not be exported.

Reviewed By: gysit

Differential Revision: https://reviews.llvm.org/D154416




More information about the All-commits mailing list