-
Notifications
You must be signed in to change notification settings - Fork 114
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 Function Attribute "NoFree" #282
Comments
Hi, sorry for the lack of response. This should be fixed by #284 |
@cocreature @ogerlach Hello! I am facing this issue while parsing a .ll file generated using gllvm, and I want to build llvm-hs from source, are there any steps for this using Cabal ? My project isn't a big project so it doesn't have a project file, I've done all the installation manually. I have cloned the llvm-hs repo, checked out to the llvm-9 branch (which has this fix - #284) but not sure what to do after this, if someone could help me with the steps, it would be great |
I encountered a problem when reading in an LLVM IR and raising it to Haskell AST with moduleAST. After upgrading to llvm-hs 9.0.1 from llvm-hs-8.0.0 I get the following error:
I could not figure out exactly what FunctionAttributeKind 26 is, but looking at the IR generated by clang, the only new attribute is
nofree
. This attribute is present in LLVM language reference for version 9 but not for version 8. As far as I can tell, this attribute is not handled inLLVM/Internal/Attribute.hs
. Therefore, I assume thatnofree
causes the error. I hope this information helps for people with more knowledege of LLVM internals than I have.The text was updated successfully, but these errors were encountered: