[all-commits] [llvm/llvm-project] 9b76a3: [mlir][llvm] Support importing magic globals

Christian Ulmann via All-commits all-commits at lists.llvm.org
Wed Jan 4 02:26:57 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9b76a3020e9594ade61068f8091661d4142702f2
      https://github.com/llvm/llvm-project/commit/9b76a3020e9594ade61068f8091661d4142702f2
  Author: Christian Ulmann <christian.ulmann at nextsilicon.com>
  Date:   2023-01-04 (Wed, 04 Jan 2023)

  Changed paths:
    M mlir/include/mlir/Target/LLVMIR/ModuleImport.h
    M mlir/lib/Target/LLVMIR/ModuleImport.cpp
    M mlir/test/Target/LLVMIR/Import/global-variables.ll
    M mlir/test/Target/LLVMIR/Import/import-failure.ll

  Log Message:
  -----------
  [mlir][llvm] Support importing magic globals

This commit adds support for importing the magic globals "global_ctors"
and "global_dtors" from LLVM IR to the LLVM IR dialect. The import
fails when these globals have a non-null data pointer, as this can
currently not be represented in the corresponding MLIR operations.

Reviewed By: gysit

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




More information about the All-commits mailing list