llvm_build_utils 0.3.0

Ever wanted to build “native” assembly stuff in your cargo build scripts… something gcc crate cannot quite handle yet? Welcome to llvm_build_utils which provides a convenient API to pack your .ll or .bc files into a ready to use archive full of machine code! It doesn’t even need an installation of LLVM*!
1
2
3
4
5
6
define i128 @test(i64 %a, i64 %b) {
    %x = zext i64 %a to i128
    %y = zext i64 %b to i128
    %r = mul nuw i128 %x, %y
    ret i128 %r
}