Hi everyone,
I generated an llvm-IR for a simple go program consisting of channels.
When I saw the IR, it was containing only declarations for functions like makechan()
chan_big_send() and not definitions which I found in llgo's code in the libgo's runtime directory.
Is it possible that I can generate LLVM IR for the go program which consists of the definitions of these functions too?
Is it possible to generate the IR which contains all the definitions of the functions declared in itself
If this feature (or any form) is already available it would be very helpful for my project.
Thanks in advance!
Any help would be really appreciated.
Regards
Arpit
--
You received this message because you are subscribed to the Google Groups "llgo-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to llgo-dev+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
On Fri, 30 Jun 2017 at 03:11 Arpit Aggarwal <arpit9...@gmail.com> wrote:Hi everyone,
I generated an llvm-IR for a simple go program consisting of channels.
When I saw the IR, it was containing only declarations for functions like makechan()
chan_big_send() and not definitions which I found in llgo's code in the libgo's runtime directory.
Is it possible that I can generate LLVM IR for the go program which consists of the definitions of these functions too?
Is it possible to generate the IR which contains all the definitions of the functions declared in itselfIt's *feasible* to compile the runtime and merge it all into a single bitcode module, but it is not something that the llgo build system supports now, nor is it likely to in the future. What's the use case?
Hi Andrew,
When I tried to generate IR for proc.c using clang, I got an error for config.h not found.
Can you please help in this matter.
Also, I had a question about this approach of generating a bitcode for runtime. Using this way I have to feed runtime bitcode to the tool I am creating independent of whether the Go program contains channels or not. So it would be better if this was implemented somehow through llgo to generate bitcode for only that part which was required/used in Go program.
If you can guide me, I would like to help to add this feature to llgo.
Hi Andrew,
I am unable to compile libgo inorder to generate the IR for runtime.
Is there any documentaion available or any other things to find out what all parameters have to be set to compile the runtime.
I found about how to modify makefiles to generate bitcode but I always get stuck at an error while running the configure.
./../../config-ml.in: No such file or directory
Can you please tell me what all flags need to be set.
I also read all the previous conversations in this group but I am unable to compile it still
Thanks a lot in advance.
Thanks,
Arpit
On Thursday, June 29, 2017 at 10:41:32 PM UTC+5:30, Arpit Aggarwal wrote:Hi everyone,
I generated an llvm-IR for a simple go program consisting of channels.
When I saw the IR, it was containing only declarations for functions like makechan()
chan_big_send() and not definitions which I found in llgo's code in the libgo's runtime directory.
Is it possible that I can generate LLVM IR for the go program which consists of the definitions of these functions too?
Is it possible to generate the IR which contains all the definitions of the functions declared in itself
If this feature (or any form) is already available it would be very helpful for my project.
Thanks in advance!
Any help would be really appreciated.
Regards
Arpit
--