main.ll:7:2: error: instruction expected to be numbered '%1'
advancedwebdeveloper opened this issue · 0 comments
Hi.
Can't build it using LLVM 11.0.0 release.
$ make
go run . > main.ll
go: downloading github.com/llir/llvm v0.3.0-pre7
go: downloading golang.org/x/tools v0.0.0-20190226205152-f727befe758c
go: downloading github.com/rickypai/natsort v0.0.0-20180124032556-f194e6bd5b0c
go: downloading github.com/pkg/errors v0.8.0
clang -Wno-override-module main.ll
main.ll:7:2: error: instruction expected to be numbered '%1'
%0 = add i64 30, 12
^
1 error generated.
make: *** [Makefile:3: all] Error 1
Nevertheless
~/go2ll-talk/hello-world$ go run main.go
Hello world %lld
42
$ go version && clang --version
go version go1.15.2 gollvm LLVM 12.0.0git linux/amd64
clang version 11.0.0 (https://github.com/llvm/llvm-project.git 0160ad802e899c2922bc9b29564080c22eb0908c)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/bin