[all-commits] [llvm/llvm-project] 21d43d: [MLIR] Primitive linkage lowering of FuncOp

William Moses via All-commits all-commits at lists.llvm.org
Fri Sep 3 17:42:01 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 21d43daf8f4ae2e701329d149e379d057e83d401
      https://github.com/llvm/llvm-project/commit/21d43daf8f4ae2e701329d149e379d057e83d401
  Author: William S. Moses <gh at wsmoses.com>
  Date:   2021-09-03 (Fri, 03 Sep 2021)

  Changed paths:
    M mlir/lib/Conversion/StandardToLLVM/StandardToLLVM.cpp
    M mlir/test/Conversion/StandardToLLVM/convert-funcs.mlir

  Log Message:
  -----------
  [MLIR] Primitive linkage lowering of FuncOp

FuncOp always lowers to an LLVM external linkage presently. This makes it impossible to define functions in mlir which are local to the current module. Until MLIR FuncOps have a more formal linkage specification, this commit allows funcop's to have an optionally specified llvm.linkage attribute, whose value will be used as the linkage of the llvm funcop when lowered.

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

Support LLVM linkage




More information about the All-commits mailing list