llvm2cranelift
llvm2cranelift copied to clipboard
LLVM IR to Cranelift IR translator
Before this change we but everything into namespace 0 (so is_function() always returned true). `cranelift-simplejit/src/backend.rs::get_definition:` calls `namespace.is_function(name)` to figure out if it has to lookup a function or data definition....
when encountering the example below we rewrote the intrinsics name to e.g. `memcpy` but because this string was likely not yet in string table `get_extname()` asserted. Instead of manually creating...
I'm a complete novice when it comes to relocations. Working with `test.ll`: ``` define void @foo(i32 %arg, i32 %arg1) { bb: %tmp = icmp ult i32 %arg, 4 %tmp2 =...