gllvm | Whole Program LLVM: wllvm ported to go | Compiler library
kandi X-RAY | gllvm Summary
kandi X-RAY | gllvm Summary
Whole Program LLVM: wllvm ported to go
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of gllvm
gllvm Key Features
gllvm Examples and Code Snippets
Community Discussions
Trending Discussions on gllvm
QUESTION
I'm working on parsing large llvm-ir code using haskell & llvm-hs for some research work.
I used gllvm (comment on this post - Getting LLVM IR for a clang/clang++ project) to convert openssl (libssl) to .bc files and then to .ll using llvm-dis and parsing the .ll file using haskell & llvm-hs.
During this I'm facing this issue - https://github.com/llvm-hs/llvm-hs/issues/282#issue-511780377 -- Missing Function Attribute "NoFree" #282 & unhandled function attribute enum value: FunctionAttributeKind 26 which are basically edge cases not handled by llvm-hs in it's release but fixed in this commit - https://github.com/llvm-hs/llvm-hs/pull/284
initially I had installed llvm-hs using cabal install --lib llvm-hs
what I need help with is I'm not sure how to build it from source.
I cloned the llvm-hs repo and checked out to the commit with fix (or latest commit) of branch llvm-9 and added the path of this repo to the $PATH, how do i use cabal to build this from source ? I am working on a small project so it doesn't have a project file or a .cabal file
Please help!
...ANSWER
Answered 2022-Apr-15 at 13:37Create a cabal project that depends one llvm-hs and use https://cabal.readthedocs.io/en/3.6/cabal-project.html#specifying-packages-from-remote-version-control-locations to specify the commit.
Note that since that PR is pulling from a fork, you will use the URL of the fork repository, not the main repository.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install gllvm
To install, simply do (making sure to include those ...). This should install five binaries: gclang, gclang++, gflang, get-bc, and gsanity-check in the $GOPATH/bin directory.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page