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

Add support for unnamed_addr and local_unnamed_addr Functions #362

Open
jfaure opened this issue Sep 2, 2021 · 1 comment
Open

Add support for unnamed_addr and local_unnamed_addr Functions #362

jfaure opened this issue Sep 2, 2021 · 1 comment

Comments

@jfaure
Copy link
Contributor

jfaure commented Sep 2, 2021

How do i mark a function as unnamed_addr ?
It seems this is only possible for GlobalVariable and GlobalAlias
https://hackage.haskell.org/package/llvm-hs-pure-9.0.0/docs/src/LLVM.AST.Global.html#Global

@andrew-wja
Copy link
Member

andrew-wja commented Sep 2, 2021

It seems that you can't! This is a bug. According to the LLVM language reference manual, Functions can be marked unnamed_addr or local_unnamed_addr.

@andrew-wja andrew-wja changed the title Function Global unnamed_addr Add support for unnamed_addr and local_unnamed_addr Functions Sep 2, 2021
@andrew-wja andrew-wja added this to the LLVM 12 Support milestone Sep 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants