[all-commits] [llvm/llvm-project] 38e87e: [mlir][llvm] Improve LLVM IR import error handling.

Tobias Gysi via All-commits all-commits at lists.llvm.org
Fri Dec 9 05:01:21 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 38e87e8af47ac77a0f6079ed3aa76f9bc54f73f3
      https://github.com/llvm/llvm-project/commit/38e87e8af47ac77a0f6079ed3aa76f9bc54f73f3
  Author: Tobias Gysi <tobias.gysi at nextsilicon.com>
  Date:   2022-12-09 (Fri, 09 Dec 2022)

  Changed paths:
    M mlir/include/mlir/Dialect/LLVMIR/LLVMOpBase.td
    M mlir/include/mlir/Dialect/LLVMIR/LLVMOps.td
    M mlir/lib/Target/LLVMIR/ConvertFromLLVMIR.cpp
    A mlir/test/Target/LLVMIR/Import/import-failure.ll
    M mlir/tools/mlir-tblgen/LLVMIRConversionGen.cpp

  Log Message:
  -----------
  [mlir][llvm] Improve LLVM IR import error handling.

Instead of exiting in the middle of the import handle errors more
gracefully by printing an error message and returning failure. The
revision handles and tests the import of unsupported instructions,
values, constants, and intrinsics.

Depends on D139404

Reviewed By: ftynse

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




More information about the All-commits mailing list