Skip to content

mukeshtiwari/HsLlvm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HsLlvm -- Haskell implementation of LLVM

Goal:

  • Port all LLVM optimizations
  • Provide functionalities to generate and maniuplate LLVM code

Build:

From HsLlvm toplevel directory

cabal configure

cabal build

The test driver 'llvm-test' is generated at dist/build/llvm-test

Test:

test LLVM assembly parser

dist/build/llvm-test/llvm-test parser test/test1.ll

test mem2reg pass

dist/build/llvm-test/llvm-test pass -s=mem2reg -f=10000 test/test1.ll

test dce pass

dist/build/llvm-test/llvm-test pass -s=dce -f=10000 test/test1.ll

test mem2reg and dce passes

dist/build/llvm-test/llvm-test pass -s=mem2reg -s=dce -f=1000 test/test1.ll

About

Haskell Implementation of LLVM opt

Resources

License

Stars

Watchers

Forks

Packages

No packages published