similar to: [LLVMdev] Compile a project into LLVM Bitcode

Displaying 20 results from an estimated 50000 matches similar to: "[LLVMdev] Compile a project into LLVM Bitcode"

2011 May 20
1
[LLVMdev] Compile a project into LLVM Bitcode
> You can use Clang to compile source to bitcode: > > clang -c hello.c -emit-llvm -o hello.bc > Yes. My problem is to automatically create .bc files with ./configure && make. Ideally, when compiling a project like "grep", I'd like to obtain a single .bc file containing all the project's functions, instead of the grep binary executable. I already tried
2011 May 20
0
[LLVMdev] Compile a project into LLVM Bitcode
You can use Clang to compile source to bitcode: clang -c hello.c -emit-llvm -o hello.bc Hope that helps, Philip -----Original Message----- From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] On Behalf Of Julien Henry Sent: Friday, May 20, 2011 10:42 AM To: LLVM Developers Mailing List Subject: [LLVMdev] Compile a project into LLVM Bitcode Hi all, I'm trying to
2011 Oct 21
4
[LLVMdev] inline functions
Hi all, I have an LLVM bitcode file, with several functions in it. I'm trying to inline these functions as much as possible, so that I can obtain a big single function. There is opt -inline, but it is not sufficient. Any idea ? -- Julien Henry http://www-verimag.imag.fr/~jhenry/
2011 Oct 21
0
[LLVMdev] inline functions
On 10/21/11 7:18 AM, Julien Henry wrote: > Hi all, > > I have an LLVM bitcode file, with several functions in it. > I'm trying to inline these functions as much as possible, so that I can > obtain a big single function. > There is opt -inline, but it is not sufficient. There an option in opt to change the inlining threshold. Do opt --help-hidden to find it. It might help.
2011 May 20
1
[LLVMdev] LLVMdev Digest, Vol 83, Issue 33
I have a few pass managers, but only one of them has been initialized with addPassesToEmitCode, how do I find how many passes are added to a function pass manager ? Thank you, Xin On Fri, May 20, 2011 at 1:00 PM, <llvmdev-request at cs.uiuc.edu> wrote: > Send LLVMdev mailing list submissions to > llvmdev at cs.uiuc.edu > > To subscribe or unsubscribe via the World Wide
2013 Jan 17
4
[LLVMdev] Migrate Project Build system to LLVM BitCode
Hi All, I am migrating a build system of an existing project from 'Object files' based executable generation to 'LLVM Bitcode' files based exe generation and applying OPT pass to LLVM Bitcode. I found out the following 4 step procedure. Please let me know if this is the right procedure or is there any other easy way of doing it. I need to modify 'Makefile' accordingly. I
2013 Jan 17
0
[LLVMdev] Migrate Project Build system to LLVM BitCode
Hi Ahmad, If the Makefile contains only this command, then it is not worth spending time on GoldPlugin. If you are building a large project, then it will be simpler to use GoldPlugin. The steps you are using seem right. You can possibly combine the last two steps (3&4) using only 1 clang command. clang -g -O2 -o .libs/mergedexe .libs/mergedbc.bc -pthread -Wl,--export-dynamic
2015 Oct 05
2
Swift to IR, generates wrong IR
Hi, 2015-10-05 11:49 GMT+02:00 Rinaldini Julien via llvm-dev <llvm-dev at lists.llvm.org>: > Sorry, the error is (the previous one was from Appleā€™s lli): > > Documents/strong.codes/code/build/obfuscator-llvm/bin/opt: test.ll:57:203: error: expected comma after getelementptr's type > @_METACLASS_DATA__TtC4test13TipCalculator = private constant { i32, i32, i32, i32, i8*, i8*,
2013 Jun 01
2
[LLVMdev] Compile Linux Kernel module into LLVM bitcode
Greetings, I am trying to compile a linux kernel module (currently a small part of the gpu driver) into the bitcode ".bc" format so that I can run a pass on it using the "opt" command. This pass will count the number of times copy_to/from_user() is invoked. Compiling the gnu driver kernel modules works with clang as a front end. However, I am unable to get the
2013 Jun 01
0
[LLVMdev] Compile Linux Kernel module into LLVM bitcode
Hi Kevin, On 01/06/13 09:59, Kevin Boos wrote: > Greetings, > > I am trying to compile a linux kernel module (currently a small part of the gpu driver) into the bitcode ".bc" format so that I can run a pass on it using the "opt" command. This pass will count the number of times copy_to/from_user() is invoked. > > Compiling the gnu driver kernel modules works
2013 Jun 08
1
[LLVMdev] Compile Linux Kernel module into LLVM bitcode
Greatings, I am encountering the same issue with Kevin. Does anyone know how to compile the linux kernel to .bc file? Is there any oneline guide for this? Thanks!~ Bests,Ping > Date: Sat, 1 Jun 2013 20:15:56 +0200 > From: baldrick at free.fr > To: llvmdev at cs.uiuc.edu > Subject: Re: [LLVMdev] Compile Linux Kernel module into LLVM bitcode > > Hi Kevin, >
2010 Jun 04
2
[LLVMdev] Inserting a function call into bitcode
Hi Eli, Thanks for that. Rookie mistake on my side. It solves the linking issue. However, it was not the main problem. The problem is when I execute the linked file ( modified bitcode + file containing the function), I get an assertion error - Assertion `Addr && "Code generation didn't add function to GlobalAddress table!"' failed. So my main concern - is that a
2010 Jun 04
2
[LLVMdev] Inserting a function call into bitcode
On Thu, Jun 3, 2010 at 10:45 PM, Nehal Gandhi <nbg2k7 at gmail.com> wrote: >> Hi Eli, >> >> Thanks for that. Rookie mistake on my side. It solves the linking issue. >> However, it was not the main problem. The problem is when I execute the >> linked file ( modified bitcode + file containing the function), I get an >> assertion error - Assertion `Addr
2010 Jun 04
0
[LLVMdev] Inserting a function call into bitcode
On Thu, Jun 3, 2010 at 10:45 PM, Nehal Gandhi <nbg2k7 at gmail.com> wrote: > Hi Eli, > > > > Thanks for that. Rookie mistake on my side. It solves the linking issue. > However, it was not the main problem. The problem is when I execute the > linked file ( modified bitcode + file containing the function), I get an > assertion error - Assertion `Addr &&
2010 Jun 04
0
[LLVMdev] Inserting a function call into bitcode
On Fri, Jun 4, 2010 at 12:09 AM, Nehal Gandhi <nbg2k7 at gmail.com> wrote: > On Thu, Jun 3, 2010 at 10:45 PM, Nehal Gandhi <nbg2k7 at gmail.com> wrote: >>> Hi Eli, >>> >>> Thanks for that. Rookie mistake on my side. It solves the linking issue. >>> However, it was not the main problem. The problem is when I execute the >>> linked file (
2010 Jun 04
2
[LLVMdev] Inserting a function call into bitcode
Hi Eli, I have attached a tar file containing Pass (ConditionPass.cpp), External function (PrintRes.cpp) and test program (try.c). I use command chain as describe in previous mail. Thanks, Nehal. -----Original Message----- From: Eli Friedman [mailto:eli.friedman at gmail.com] Sent: Friday, June 04, 2010 3:39 AM To: Nehal Gandhi Cc: llvmdev at cs.uiuc.edu Subject: Re: [LLVMdev] Inserting a
2014 Sep 14
2
[LLVMdev] How to translate library functions into LLVM IR bitcode?
Hello, I run into a situation where I need to provide the library functions, such as sqrt() from <math.h> and rand() from <stdlib.h>, in the format of LLVM IR bitcode files. Then I can try to link the bitcode of my program against these library bitcode files to formulate a holistic bitcode file. However, these library functions are only available in object format. And the source
2011 Mar 30
4
[LLVMdev] signed/unsigned integers ?
>> The compiler remembers for debugging purpose that x is defined as >> unsigned, and y as signed, no ? I'm not familiar with LLVM debug info, >> but maybe I can find this info there ? > > probably it can be extracted from debug info, but what if there is no debug > info? Can you please explain what you intend to do with this information - > then maybe we can
2008 Jun 04
1
[LLVMdev] Standard output binary mode on windows
Hello, On windows, the standard output is not set to binary mode by default so all '\n' characters are replaced with '\r\n'. This is a pain for any command using stdout, like "llvm-as < input.ll > out.bc", because out.bc is then most likely corrupted. This is an old story, fixed a while ago: http://llvm.org/bugs/show_bug.cgi?id=787 And here is the thread on
2013 Mar 18
2
[LLVMdev] [vmkit]Errors when compiling vmkit
Hi, I see that now vmkit2 contains the last revisions of the project, so I follow these instructions to compile vmkit : http://vmkit2.gforge.inria.fr/start.php I download and compile LLVM without errors. I have tested with and without optimizations but this is the same for the errors. My configuration for LLVM is just : ./configure; make Apparently we can build vmkit with OpenJDK instead of GNU