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
Backport fix for importing of global ctors/dtors and llvm.mlir.alias op linkage fix (#42)
* [MLIR][LLVMIR] Add support for the full form of global_{ctor,dtor} (llvm#133176)
Currently only ctor/dtor list and their priorities are supported. This
PR adds support for the missing data field.
Few implementation notes:
- The assembly printer has a fixed form because previous `attr_dict`
will sort the dict by key name, making global_dtor and global_ctor
differ in the order of printed arguments.
- LLVM's `ptr null` is being converted to `#llvm.zero` otherwise we'd
have to create a region to use the default operation conversion from
`ptr null`, which is silly given that the field only support null or a
symbol.
* [MLIR][LLVM] Add weak_odr to allowed linkage for alias (llvm#132840)
I missed this when originally introduced the feature (note the verifier
message already contains it), this fixes a small bug.
---------
Co-authored-by: Bruno Cardoso Lopes <[email protected]>
0 commit comments