similar to: [LLVMdev] Convert .ll file to .c file

Displaying 20 results from an estimated 2000 matches similar to: "[LLVMdev] Convert .ll file to .c file"

2012 Jan 24
1
[LLVMdev] Convert .ll file to .c file
Hi Nick, I need the module.ll file. Now how can i configure LLVM to enable "c" target? Is it that i need to build from the scratch? Is there any way to enable 'c' target also? On Tue, Jan 24, 2012 at 12:10 PM, Nick Lewycky <nicholas at mxc.ca> wrote: > Sarath Chandra wrote: > >> Hi, >> >> I wanted to convert .ll file to .c file (for the
2012 Jan 24
4
[LLVMdev] How to enable C as a target
Hi, How to enable C as a target while configuring LLVM... Can i do ' --enable-targets = x86,c ' to make it work? ´ Sarath!!! `·.¸.·´ -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120124/b782e413/attachment.html>
2012 Jan 24
0
[LLVMdev] Convert .ll file to .c file
Sarath Chandra wrote: > Hi, > > I wanted to convert .ll file to .c file (for the sake of debugging > the c file). I used the command "llc" with "-march=c" option. But i'm > getting the below error. > > * llc: error: invalid target 'c' * > * > * > My script file code for converting it is: > > llvm-as -f module.ll > opt
2011 Sep 22
1
[LLVMdev] Need help in converting int to double
Yeah, that's the fault...got the answer...... Thanks James for the help... Struggling with this for so many days....... On Thu, Sep 22, 2011 at 4:02 PM, James Molloy <James.Molloy at arm.com> wrote: > Hi Sarath,**** > > ** ** > > It would have really helped if you had removed the commented out code and > inlined the calls to your homemade helper functions before
2011 Sep 22
2
[LLVMdev] Need help in converting int to double
On Thu, Sep 22, 2011 at 3:46 PM, sarath chandra <sarathcse19 at gmail.com>wrote: > Hi James, > > First i converted the void * to int* and then did FPToSI...then did SHL...( > because CreateShl only accepts integers... i pointer casted it to int64 type > first)... Below is the code snippet.... > > > lhs = mBuilder.CreateStructGEP(firstArg, 0); > lhs =
2011 Sep 22
0
[LLVMdev] Need help in converting int to double
Hi Sarath, It would have really helped if you had removed the commented out code and inlined the calls to your homemade helper functions before sending it... You are doing this, in LLVM IR: %0 = getelementptr %Value* %firstArg, i32 0 ; i8** %1 = load i8** %0 ; i8* %2 = bitcast i8* %1 to i64* %3 = getelementptr %Value* %secondArg, i32 0 ; i8** %4 = load i8** %3; i8* %5 = bitcast i8* %4 to i64*
2012 Jan 24
0
[LLVMdev] How to enable C as a target
On Tue, Jan 24, 2012 at 3:42 AM, Sarath Chandra <sarathcse19 at gmail.com> wrote: > Hi, > >     How to enable C as a target while configuring LLVM... > > Can i do ' --enable-targets = x86,c ' to make it work? use --enable-targets=x86,cbe (C BackEnd if I remember correctly) -- Eitan Adler
2011 Sep 22
3
[LLVMdev] Need help in converting int to double
Hi, I'm pursuing M.Tech course. As a part of the project work i'm using LLVM as back-end. My project area is "Enhancing the performance of V8 javascript engine using LLVM as a back-end". Now i'm writing code for shift left(SHL) operator. I had my own Value Structure .. it's like this Struct Value { void *val ; char type; } The "char type" holds
2011 Sep 22
0
[LLVMdev] FW: Need help in converting int to double
Re-cc'ing list. Please direct all responses to the mailing list, so others can see it! Cheers, James -----Original Message----- From: James Molloy Sent: 22 September 2011 11:11 To: 'sarath chandra' Subject: RE: [LLVMdev] Need help in converting int to double Hi Sarath, Your example will break. If the values are held internally as doubles casted to void* (which incidentally will
2012 Mar 02
4
[LLVMdev] How to use 'opt' command?
Hi all, How to print the analysis results using 'opt' command? I tried using the below command for my *module.ll* file *opt -analyze -memdep module.ll* * * But it's printing Printing analysis 'Memory Dependence Analysis' for function 'main': Pass::print not implemented for pass: 'Memory Dependence Analysis'! Printing analysis 'Memory Dependence
2009 Dec 08
4
[LLVMdev] A question about 'llc -march=c'
Hello friends working on LLVM, I am a beginner to LLVM. I tried to get C code from LLVM bitcode using 'llc -march=c'. But it seems to me that it doesn't work if the source program is a C++ program. Am I right? I have attatched the source program and the result of compiling the C code of it with GCC4.3.3. By the way, has LLVM's C code backend been tested on benchmarks like spec?
2011 Sep 23
0
[LLVMdev] Need help in converting int to double
Good to know, thanks. The docs are slightly hazy on that - they do mention type-to-type if same size, but the examples are only between pointers and integers, not floats. Would it be worthwhile my updating the documentation to explicitly state that or is it just me? Cheers, James -----Original Message----- From: John McCall [mailto:rjmccall at apple.com] Sent: 23 September 2011 00:06 To: James
2011 Jul 22
2
Extracting components from a 'boot' class output in R
Dear R user, I used the following to do a bootstrap. >bootObj<-boot(data=DAT, statistic=Lp.est, R=1000,x0=3) I have the following output from the above bootstrap. How can I extract  components of the output. For example, how can I extract the std.error? > bootObj   ORDINARY NONPARAMETRIC BOOTSTRAP   Call: boot(data = DAT, statistic = Lp.est, R = 1000, x0 = 3)   Bootstrap Statistics
2011 Sep 23
1
[LLVMdev] Need help in converting int to double
Hi James, > The docs are slightly hazy on that - they do mention type-to-type if same size, but the examples are only between pointers and integers, not floats. you can't use bitcast to convert a pointer to an integer or vice-versa. You must use ptrtoint/inttoptr. Ciao, Duncan. Would it be worthwhile my updating the documentation to explicitly state that or is it just me? > >
2008 Apr 04
2
[LLVMdev] PATCH: Use size reduction -- wave1
heisenbug wrote: > On Apr 3, 10:53 pm, Gabor Greif <ga... at mac.com> wrote: > ... > > >>> 3) Make sure that make check and some reasonable subset of llvm-test >>> passes with this patch :) >>> >> I have never run llvm-test in the past. Is it just checking it out and >> following a readme? >> > > > After
2012 Jan 18
2
Cloud Init
I want to start an instance using libvirt API. I want to provide ssh access for the user of the vm. Anyone know how to embed an ssh key into the instance. I came across cloud-init . but couldn't get a tutorial . Thanks in advance. -- Thank You Sarath P R | cell +91.999.502.4287 -------------- next part -------------- An HTML attachment was scrubbed... URL:
2009 Dec 17
8
how to import data from excel to R
Hi, I am using R and I want to know how data can be transferred from Excel Spread sheet to R for analyzing. I have done like this mydata<-read.table("C:\Documents and Settings\admin\Desktop\data.txt"); but its not working how can i do it regards Sarath Sankar V
2011 Sep 22
2
[LLVMdev] Need help in converting int to double
On Sep 22, 2011, at 3:32 AM, James Molloy wrote: > It’s in trouble by this point because it needs to do a fptosi on a double operand, but you’ve got an i64 operand and you can’t reinterpret-cast ints to floats in LLVM IR (AFAIK) You can bitcast ints to floats and vice-versa if they're the same size — for example, i32 to float and i64 to double. John.
2013 Jan 12
2
[LLVMdev] generating executable file from .ll files
Hi, I'm writing a front-end for llvm with java. my front-end produces .ll files. Then I use the following commands to convert these files to an executable file: !. for each .ll file I use 'llvm-as file.ll' to create a bitcode file 2. use 'llvm-ld -o executable my-bitcode-files -L/usr/lib/i386-linux-gnu -lstdc++' to generate an executable file then when I run the executable
2008 Apr 04
0
[LLVMdev] PATCH: Use size reduction -- wave1
On Apr 4, 7:51 pm, Török Edwin <edwinto... at gmail.com> wrote: > heisenbug wrote: > > On Apr 3, 10:53 pm, Gabor Greif <ga... at mac.com> wrote: > > ... > > >>> 3) Make sure that make check and some reasonable subset of llvm-test > >>> passes with this patch :) > > >> I have never run llvm-test in the past. Is it just checking it