[all-commits] [llvm/llvm-project] d4fbba: [mlir] translate types between MLIR LLVM dialect a...

ftynse via All-commits all-commits at lists.llvm.org
Tue Aug 4 04:43:13 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: d4fbbab2e494a59480096a257136ed2b75d07e87
      https://github.com/llvm/llvm-project/commit/d4fbbab2e494a59480096a257136ed2b75d07e87
  Author: Alex Zinenko <zinenko at google.com>
  Date:   2020-08-04 (Tue, 04 Aug 2020)

  Changed paths:
    A mlir/include/mlir/Target/LLVMIR/TypeTranslation.h
    M mlir/lib/Target/CMakeLists.txt
    A mlir/lib/Target/LLVMIR/TypeTranslation.cpp
    A mlir/test/Target/llvmir-types.mlir
    M mlir/test/lib/CMakeLists.txt
    A mlir/test/lib/Target/CMakeLists.txt
    A mlir/test/lib/Target/TestLLVMTypeTranslation.cpp
    M mlir/tools/mlir-translate/CMakeLists.txt
    M mlir/tools/mlir-translate/mlir-translate.cpp

  Log Message:
  -----------
  [mlir] translate types between MLIR LLVM dialect and LLVM IR

With new LLVM dialect type modeling, the dialect types no longer wrap LLVM IR
types. Therefore, they need to be translated to and from LLVM IR during export
and import. Introduce the relevant functionality for translating types. It is
currently exercised by an ad-hoc type translation roundtripping test that will
be subsumed by the actual translation test when the type system transition is
complete.

Depends On D84339

Reviewed By: herhut

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




More information about the All-commits mailing list