similar to: [LLVMdev] Compiling glibc with LLVM

Displaying 20 results from an estimated 10000 matches similar to: "[LLVMdev] Compiling glibc with LLVM"

2012 Jan 26
1
[LLVMdev] Compiling glibc with LLVM
Hi James, I will look into the RedHat newlib library, however, we def are looking for a solution for glibc, but maybe newlib would be a good way to go to test our complete workflow before putting an effort to generate control flow graphs for glibc. btw. I did have another question, hopefully you would be able to answer, what we are looking to do is to get the control flow graph including some
2012 Jan 26
0
[LLVMdev] Compiling glibc with LLVM
Hi Nipun, As you say, glibc is rather GCC -oriented. I certainly haven't tried this myself, but have you thought of using an alternate C library such as RedHat newlib? That can certainly be compiled by clang (we do it every night). Cheers, James From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] On Behalf Of Nipun Arora Sent: 26 January 2012 15:54 To:
2012 Jan 26
3
[LLVMdev] Compiling glibc with LLVM
Hi, I read on the gentoo website http://en.gentoo-wiki.com/wiki/Llvm that glibc cannot be compiled using llvm because of some GNU extensions which LLVM does not support. Has there been any success in compiling glibc using LLVM so as to get the bytecode? We are looking to do whole program analysis to look at control flows including those in libc... we were hoping that we could get the control
2012 Jan 26
0
[LLVMdev] Compiling glibc with llvm
Hi, I read on the gentoo website http://en.gentoo-wiki.com/wiki/Llvm that glibc cannot be compiled using llvm because of some GNU extensions which LLVM does not support. Has there been any success in compiling glibc using LLVM so as to get the bytecode? We are looking to do whole program analysis to look at control flows including those in libc... we were hoping that we could get the control
2011 Apr 01
1
[LLVMdev] compiling bitccode to executable binary/LLI
The easiest way is just to invoke clang on the .bc file, since it understands it. clang file.bc -o file llc will get you native assembly, which you can assemble and link with gcc. llc file.bc -o file.s && gcc file.s -o file I couldn't find a way to convince llc to use MC to generate an object file. In any case, you'll need to invoke the system linker to produce the executable.
2011 Apr 01
0
[LLVMdev] compiling bitccode to executable binary/LLI
Hi, I was able to figure out this one, by checking out profile.pl. However, I am still interested in getting to know if there is anyway to compile from bitcode to a normal executable? Maybe I am missing something obvious... :P ? Thanks Nipun On Fri, Apr 1, 2011 at 1:34 PM, Nipun Arora <nipun2512 at gmail.com> wrote: > Hi, > > Could anyone tell me how exactly can one convert a
2008 Nov 02
0
[LLVMdev] No of Datastructures
How do you define a data structure for this purpose? Do you mean individual data types like structs or arrays? Or higher-level "logical" structures like lists, trees, or hash tables? The former is obviously easier but even the latter is possible, in some cases. --Vikram Associate Professor, Computer Science University of Illinois at Urbana-Champaign http://llvm.org/~vadve On
2008 Nov 03
1
[LLVMdev] No of Datastructures
Right now I am writing passes just to look for arrays & structs I am trying to identify the array by parsing the memory description(use regex's) ex./ { [20 x i8], i32 } *- for a struct. is a structure with a character array of size 20 and an integer. I'm not sure if llvm provides an easier way to do this? The type id for most arrays comes out to be a pointer rather than an array, its
2011 Mar 31
1
[LLVMdev] Memory Dependence Analysis
Hi Tobi, Thanks for the response, could you point me to the source files of the memory dependence pass? Thanks Nipun On Mon, Mar 28, 2011 at 2:46 PM, Tobias Grosser <grosser at fim.uni-passau.de>wrote: > On 03/28/2011 12:15 PM, Nipun Arora wrote: > > Hi, > > > > I have been trying to run the memdep analysis using opt with the > > following command: opt -analyze
2008 Nov 05
1
[LLVMdev] No of Datastructures
Hi I was having just one more problem. I would like to find these datastructures/ primitive types etc inside a block, however the valuesymbol table is available only at a functional level. What can I do so as to get the number + type of datastructs(eg. arrays etc) inside a single block? Thanks Nipun On Fri, Oct 31, 2008 at 12:05 PM, Devang Patel <dpatel at apple.com> wrote: > Hi
2008 Nov 02
2
[LLVMdev] No of Datastructures
Hey Devang, Thanks for the assist, I'm trying to extract a signature which uniquely identifies a block of code.... this is required for a project I am doing. The no of data structures is one of the identifying features of this signature. Thanks Nipun On Fri, Oct 31, 2008 at 1:05 PM, Devang Patel <dpatel at apple.com> wrote: > Hi Nipun, > On Oct 30, 2008, at 9:31 PM, Nipun
2008 Oct 31
0
[LLVMdev] No of Datastructures
Hi Nipun, On Oct 30, 2008, at 9:31 PM, Nipun Arora wrote: > Hi > > I am trying to count the no of datastructures and the type, say for > example the number of arrays in a given code. Which pass would give > me this info? And what do I need to use in it? What are you trying to achieve here with this information ? You can iterate over types to collect the info you need. For
2009 Feb 11
0
[LLVMdev] Operand, instruction
Nipun Arora wrote: > Hi, > > How can one extract the operand of an instruction in an LLVM pass? > Like I can get the opcode bt I'd like to get the operands as well > Use the getOperand() method of class Instruction (which I think is inherited from Value or User or some other LLVM class). It takes a single parameter that is an index specifying which operand to return. The
2009 Feb 05
1
[LLVMdev] Creating AST
Hi Mike, Thanks for the response, doesn't Clang only support C and not C++? Thanks Nipun On Wed, Feb 4, 2009 at 6:29 PM, Mike Stump <mrs at apple.com> wrote: > On Feb 4, 2009, at 1:55 PM, Nipun Arora wrote: > > Does LLVM provide any way to parse and extract the AST from C++ > > source files? > > Yes, see clang.llvm.org. If you want to do source to source, see the
2009 Mar 11
2
[LLVMdev] Wiki?
If we get the blessing of one of the old-timers who is willing to spend a little time reviewing postings, we can deal with the 'misleading information' issue. In addition, it might be _useful_ to understand why people were misled. On Wed, Mar 11, 2009 at 5:16 PM, Nipun Arora <nipun2512 at gmail.com> wrote: > I agree. Being a newbie myself, I can relate to what problems someone
2009 Feb 01
1
[LLVMdev] Optimized code analysis problems
Hi Eli, Well I think a way to hack it might be better for my purposes, can you suggest any ways of getting started on that and where. Essentially I'm developing an IDE and need to extract the dependency graphs while retaining the actual function names rather than them being converted to llvm.* names. If I go for the other option you suggested. I'd have to do a one-to one mapping of all
2009 Jan 31
2
[LLVMdev] Optimized code analysis problems
Hii, Thanks for the response, yes I couldn't find any way to extract the names through any of the passes. Where could I potentially insert a hack so that any function call to intrinsic functions or library functions can be retrieved? Could you gimme any ideas for the start? -Nipun On Fri, Jan 30, 2009 at 10:39 PM, Eli Friedman <eli.friedman at gmail.com>wrote: > On Fri, Jan 30,
2011 Dec 09
1
[LLVMdev] LLVM instrumentation overhead
Hi John, Thanks for the detailed answer, this gives me a good starting point to look into. I was also wondering if you could give an idea (in terms of %ge) the overhead one can expect with such an instrumentation. I want something really lightweight and simple which can possible be applied to production systems, so overhead is a concern. Thanks Nipun On 12/09/2011 02:21 PM, John Criswell
2011 Dec 09
0
[LLVMdev] LLVM instrumentation overhead
On 12/7/11 4:51 PM, Nipun Arora wrote: > Hi, > > I need to write a transform pass which instruments the target program to > output the name of each function executed, and the rdtsc counter along > with it. Doing this in LLVM is really straightforward. You simply iterate through all the functions in a module and add instructions to their entry basic blocks to do whatever it is
2008 Dec 04
2
[LLVMdev] Data Dependency graph
Hi, I need to generate a data dependancy graph. Is there any functionality available in LLVM which can help me? Or if anyone can point to the correct place? Thanks Nipun Arora Graduate Research Assistant Dept of Computer Science Columbia University -------------- next part -------------- An HTML attachment was scrubbed... URL: