Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing alias support in mlir::LLVM::GlobalOp #115390

Open
bcardosolopes opened this issue Nov 7, 2024 · 2 comments
Open

Missing alias support in mlir::LLVM::GlobalOp #115390

bcardosolopes opened this issue Nov 7, 2024 · 2 comments

Comments

@bcardosolopes
Copy link
Member

While working on ClangIR to LLVM lowering, we want to generate this kind of LLVM IR code:

@_ZN1BD1Ev = dso_local unnamed_addr alias void (ptr), ptr @_ZN1BD2Ev
@_ZN1CD2Ev = dso_local unnamed_addr alias void (ptr), ptr @_ZN1BD2Ev
@_ZN1CD1Ev = dso_local unnamed_addr alias void (ptr), ptr @_ZN1BD2Ev
 
define dso_local void @_ZN1BD2Ev(ptr noundef nonnull align 8 dereferenceable(9) %this) unnamed_addr #0 {

One of the reasons it's not possible it's because there's no support for alias (the other one will be filed in another issue)

@llvmbot
Copy link
Member

llvmbot commented Nov 7, 2024

@llvm/issue-subscribers-mlir-llvm

Author: Bruno Cardoso Lopes (bcardosolopes)

While working on ClangIR to LLVM lowering, we want to generate this kind of LLVM IR code:
@<!-- -->_ZN1BD1Ev = dso_local unnamed_addr alias void (ptr), ptr @<!-- -->_ZN1BD2Ev
@<!-- -->_ZN1CD2Ev = dso_local unnamed_addr alias void (ptr), ptr @<!-- -->_ZN1BD2Ev
@<!-- -->_ZN1CD1Ev = dso_local unnamed_addr alias void (ptr), ptr @<!-- -->_ZN1BD2Ev
 
define dso_local void @<!-- -->_ZN1BD2Ev(ptr noundef nonnull align 8 dereferenceable(9) %this) unnamed_addr #<!-- -->0 {

One of the reasons it's not possible it's because there's no support for alias (the other one will be filed in another issue)

@bcardosolopes
Copy link
Member Author

More ClangIR specific details in: llvm/clangir#1065

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants