HomePhabricator

[MLIR] Primitive linkage lowering of FuncOp

Authored by wsmoses on Aug 22 2021, 1:44 PM.

Description

[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

Details

Committed
wsmosesSep 3 2021, 5:41 PM
Differential Revision
D108524: [MLIR] Primitive linkage lowering of FuncOp
Parents
rG775ab780fd2a: Support linking against OpenMP runtime on OpenBSD.
Branches
Unknown
Tags
Unknown