similar to: [LLVMdev] Quick doubt about IR

Displaying 20 results from an estimated 3000 matches similar to: "[LLVMdev] Quick doubt about IR"

2013 Dec 04
0
[LLVMdev] Quick doubt about IR
Create a new alloca instruction, insert it into the IR right before (or after) the old one, RAUW the value, then delete the old instruction. You should be able to find a variety of examples of this sort of thing in most of the IR level optimization passes. I’d look at InstCombine in particular. -Jim On Dec 4, 2013, at 1:40 PM, Shivam Bhagi <shivam.bhagi at outlook.com> wrote: > Hi,
2012 Nov 26
2
[LLVMdev] How to enable c++11 in a llvm project?
Hi, I'm using the latest LLVM (r168491) built by GCC 4.7.2 (Gentoo masked version). The clang++ runs as expected when I compile a hello program with c++11 enabled. I created a project (copied from sample/) where there are some C++ source files with c++11 features. I configured my project using the following command: $ CXXFLAGS="-std=c++11" ../configure --enable-cxx11 However, I
2012 Nov 27
1
[LLVMdev] How to enable c++11 in a llvm project?
I've added the missing magic to Makefile.llvm.rules in r168685. On Tue, Nov 27, 2012 at 12:05 AM, Mingliang LIU <liuml07 at gmail.com> wrote: > Hi, > > I use the following line to configure, which can enable the c++11 in the > project building. However, I don't think it's an elegant way to do the > trick. > $ CXX="clang++ -std=c++11" ../configure
2012 Dec 05
2
[LLVMdev] How to enable cbe as a supported target?
Hi all, I met an error when I run the llc command to transform a bitcode file to C code (source to source): $ llc -march=c -o foo.c foo.ll However, it said "*llc: error: invalid target 'c'.*" I checked the 'llc --version' only to find that there is no *c* as target. The *cpp* was there, which makes calls against the LLVM C++ API. But that's not what I want. I
2012 Nov 27
0
[LLVMdev] How to enable c++11 in a llvm project?
Hi, I use the following line to configure, which can enable the c++11 in the project building. However, I don't think it's an elegant way to do the trick. $ CXX="clang++ -std=c++11" ../configure I don't know why "-enable-cxx11" doesn't work as expected when I configure the project. Regards. On Mon, Nov 26, 2012 at 7:34 PM, Mingliang LIU <liuml07 at
2013 Sep 11
2
[LLVMdev] Dynamic Analysis
Dear John, Now, I want to do dynamic analysis by dynamic slicing based on LLVM. I just see that you have implemented dynamic slicing for LLVM. I also check the Giri project, and I don't find the code. I hope I can learn something from your code. I am very appreciated if you can tell me how to get the code or send me one copy. Thank you very much! Pengfei -- View this message in context:
2013 Mar 17
2
[LLVMdev] How to slice the source code?
Hi all, I'm doing the program slicing [1] in LLVM. Now I implemented the Weiser's algorithm [2] in a simple way by writing a plugin to analyze the IR. My final goal is to slice the source code, thus I recorded all the lines of source code to be sliced. The last step is to delete the lines which are not in the program slice. However, I met a problem when deleting the source code directly:
2013 Apr 12
3
[LLVMdev] The line number range of a function in source code level
Hi all, I need to know the line number range of a function. The start of the function line number can be found by the definition point, which is stored at the subprogram metadata: DISubprogram::getLineNumber(). However, there is no API (or the metadata in the first place) to know the end of the function. I have to visit all the instructions of the function and maintain the *max*line number of
2012 Dec 19
2
[LLVMdev] Can't compile Dragonegg
Hi, I suggest add the id attribute for each <h2> tag in www/index.html. Thus we can refer to the "Getting it" section in the dragonegg homepage page (the only web page) by simply the given URL: http://dragonegg.llvm.org#GettingIt Regards. On Wed, Dec 19, 2012 at 6:32 AM, Dmitry Mikushin <dmitry at kernelgen.org>wrote: > Hi Tom, > > DragonEgg depends on GCC's
2012 Dec 05
0
[LLVMdev] How to enable cbe as a supported target?
The C Backend was remove in 3.1 (http://llvm.org/releases/3.1/docs/ReleaseNotes.html): "Major Changes and Removed Features ... The C backend has been removed. It had numerous problems, to the point of not being able to compile any nontrivial program." On Wed, Dec 5, 2012 at 10:00 AM, Mingliang LIU <liuml07 at gmail.com> wrote: > Hi all, > > I met an error when I run the
2012 Dec 19
0
[LLVMdev] Can't compile Dragonegg
Hi Mingliang LIU, > I suggest add the id attribute for each <h2> tag in www/index.html. Thus we can > refer to the "Getting it" section in the dragonegg homepage page (the only web > page) by simply the given URL: > http://dragonegg.llvm.org#GettingIt this already works: http://dragonegg.llvm.org/#gettingrelease But maybe could be done better or more consistently?
2013 Mar 26
0
[LLVMdev] How to slice the source code?
Hi, maybe you can have a look at the CReduce project: http://embed.cs.utah.edu/creduce/ This project implements many source-to-source transformations of C programs, e.g. removing functions, changing variable names, deleting branches in if-statements, etc. Some of these are purely based on the source code, other use the Clang frontend. Hope this helps, Jonas On Sun, Mar 17, 2013 at 7:25 PM,
2013 Apr 12
0
[LLVMdev] The line number range of a function in source code level
On 4/12/13 4:31 AM, Mingliang LIU wrote: > Hi all, > > I need to know the line number range of a function. The start of the > function line number can be found by the definition point, which is > stored at the subprogram metadata: DISubprogram::getLineNumber(). > > However, there is no API (or the metadata in the first place) to know > the end of the function. > >
2012 Nov 17
2
[LLVMdev] Interprocedural slicing using LLVM
Hi, 1. How can I report a bug or commit a patch to the giri progject? I doubt this central commit list is the right place. 2. Are you still maintaining the giri project any more? Thank you. L On Thu, Jun 28, 2012 at 12:49 AM, John Criswell <criswell at illinois.edu>wrote: > On 6/26/12 5:07 PM, amruth.rd wrote: > > Hello, > > > > I am curious to know if
2012 Dec 06
1
[LLVMdev] How to enable cbe as a supported target?
Hi Arnold, On 06/12/12 08:50, 陳韋任 (Wei-Ren Chen) wrote: > On Thu, Dec 06, 2012 at 10:05:03AM +0800, Mingliang LIU wrote: >> Hi Arnold, >> >> Thank you. I googled but missed the release notes. >> >> Regards. > > Someone else out there tried to bring cbe back. You can search the ML > archieve and reach them out. > That would be me. > Regards,
2013 Apr 27
1
[LLVMdev] GSoC Proposal: Inter-Procedure Program Slicing in LLVM
Hi all, This is a GSoC 2013 proposal for LLVM project. Please see the formatted version at here: http://pacman.cs.tsinghua.edu.cn/~liuml07/files/gsoc2013-proposal-program-slicing.pdf Program slicing has been used in many applications, the criteria of which is a pair of statement and variables. I would like to write an inter-procedural program slicing pass in LLVM, which is able to calculate C
2013 Dec 11
2
[LLVMdev] -ltinfo and -lz causing problems
On a particular system I am trying to link my application to the LLVM library and it can't find -ltinfo and -lz. The former is part of ncurses (build with term- info). Building ncurses for this system in user space turns out to be not straight-forward (haven't succeeded so far). In LLVM, is there a way to turn the need for -ltinfo and -lz off? Frank
2014 Apr 24
3
[LLVMdev] getMetadata(“dbg”) returns NULL
Hi, getMetadata(“dbg”) returns NULL for such a small program as follows: int main(){ char a[10], b[2]; if(a[0] != 0 && a[1] != 0){ strcpy(a, b); } return 0; } The compiling command is: llvm-gcc --emit-llvm -g -c ./src.c I also tried the solutions I found through Google: http://stackoverflow.com/questions/14943447/llvm-line-number-of-an-instruction
2012 Jun 27
0
[LLVMdev] Interprocedural slicing using LLVM
On 6/26/12 5:07 PM, amruth.rd wrote: > Hello, > > I am curious to know if LLVM offers any passes to do interprocedural slicing, I need to eliminate most of the computations(possibly all, if they don't influence the control flow), but the control flow of the program should be maintained at all cost. I did see an optimization pass to print the CFG of a function without its body to a
2012 Jun 26
2
[LLVMdev] Interprocedural slicing using LLVM
Hello, I am curious to know if LLVM offers any passes to do interprocedural slicing, I need to eliminate most of the computations(possibly all, if they don't influence the control flow), but the control flow of the program should be maintained at all cost. I did see an optimization pass to print the CFG of a function without its body to a dot file, but I am interested in generating the