This is an archive of the discontinued LLVM Phabricator instance.

[mlir] LLVM dialect: support globals without linkage keyword, assuming 'external'
ClosedPublic

Authored by ftynse on Apr 14 2020, 4:02 AM.

Details

Summary

Similarly to actual LLVM IR, and to llvm.mlir.func, allow the custom syntax
of llvm.mlir.global to omit the linkage keyword. If omitted, the linkage is
assumed to be external. This makes the modeling of globals in the LLVM dialect
more consistent, both within the dialect and with LLVM IR.

Diff Detail

Event Timeline

ftynse created this revision.Apr 14 2020, 4:02 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 14 2020, 4:02 AM
mehdi_amini accepted this revision.Apr 14 2020, 10:04 PM
mehdi_amini added inline comments.
mlir/docs/Dialects/LLVM.md
110

Typo attribute

This revision is now accepted and ready to land.Apr 14 2020, 10:04 PM
ftynse accepted this revision.Apr 15 2020, 1:57 AM
ftynse marked an inline comment as done.

Hmm, apparently I can accept my own revision...

This revision was automatically updated to reflect the committed changes.