You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following cir.func is valid and can be either a function with private linkage or a function with private symbol visibility.
cir.func private @func() -> ()
Both linkage and visibility tags are optional. In the example, only one is specified, however, it is impossible to know if private refers to linkage or symbol visibility since the keyword private is a valid value for both of these attributes.
I fixed this Friday by changing the linkage one to always be cir_private, so it's not ambiguous anymore. I found it while trying to full circle on a emitted test case (which is a good practice when doing CIRGen).
In the future I would like to get rid of the MLIR one somehow and implement our own CIR symbol rules based on linkage instead.
The following
cir.func
is valid and can be either a function with private linkage or a function with private symbol visibility.Both
linkage
andvisibility
tags are optional. In the example, only one is specified, however, it is impossible to know ifprivate
refers to linkage or symbol visibility since the keywordprivate
is a valid value for both of these attributes.clangir/clang/lib/CIR/Dialect/IR/CIRDialect.cpp
Lines 1305 to 1317 in 855f623
The text was updated successfully, but these errors were encountered: