[all-commits] [llvm/llvm-project] dc553c: [mlir] LLVM import: handle function-typed constants

ftynse via All-commits all-commits at lists.llvm.org
Wed Jan 15 06:02:02 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: dc553ce646cdbab32d72d263d3f289952648b920
      https://github.com/llvm/llvm-project/commit/dc553ce646cdbab32d72d263d3f289952648b920
  Author: Alex Zinenko <zinenko at google.com>
  Date:   2020-01-15 (Wed, 15 Jan 2020)

  Changed paths:
    M mlir/lib/Target/LLVMIR/ConvertFromLLVMIR.cpp
    M mlir/test/Target/import.ll

  Log Message:
  -----------
  [mlir] LLVM import: handle function-typed constants

The current implementation of the LLVM-to-MLIR translation could not handle
functions used as constant values in instructions. The handling is added
trivially as `llvm.mlir.constant` can define constants of function type using
SymbolRef attributes, which works even for functions that have not been
declared yet.




More information about the All-commits mailing list