Displaying 20 results from an estimated 3000 matches similar to: "bug report on mem2reg"
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 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 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 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?
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
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 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 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:
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
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.
>
>
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 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,
2007 May 21
4
How to compare linear models with intercept and those without intercept using minimizing adjs R^2 strategy
Dear R-list,
I apologize for my many emails but I think I know how to desctribe my
problem differently and more clearly.
My question is how to compare linear models with intercept and those without
intercept using maximizing adjusted R^2 strategy.
Now I do it like the following:
> library(leaps)
> n=20
> x=matrix(rnorm(n*3),ncol=3)
> b=c(1,2,0)
> intercept=1
>
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 Apr 12
2
[LLVMdev] How to compile a linux module into .bc file using clang or llvm command?
Yeah, but I tried that command and error message was generated:
hellomodule.c:1:10: fatal error: 'linux/init.h' file not found
#include <linux/init.h>
^
1 error generated.
how to solve this problem??
Thanks!
--
祝好!
甄凯
------------------------------------------------------------------------------------------------------
2012-04-12
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
2015 Mar 15
4
[LLVMdev] [GSoC] Applying for GSoC 2015
Hello Daniel,
Thank you for your comments and sorry for my mistakes, I'll revise them.
And I'll for sure read the paper you mentioned and survey the recent
researches before deciding the implementation technique.
To George:
May I know the exact plan of your attempt for making cfl-aa interprocedural?
I do think that this is the most valuable part of my proposal, but that
makes no sense to
2012 Apr 10
4
[LLVMdev] How to explain this weird phenomenon????????
My friends,
I ran a function pass on a .bc file, intending to insert a CallInst to my self-made check function.
The compilation is successful. BUT after I ran that pass on the .bc file, the size of the file didn't get any bigger!!
Does this mean my instrumentation work failed??
BTW the opt command I use is "opt -load ../../../Debug+Asserts/lib/Hello.so -hello <hello.bc> -o
2012 Apr 11
2
[LLVMdev] How to compile a linux module into .bc file using clang or llvm command?
It's actually is .c file.
I just want firstly to compile helloworldmodule.c into helloworldmodule.bc.
Then I run a LLVM pass on it to do some optimization, and then I compile the modified .bc file into .ko file.
So, could you tell me how to compile helloworldmodule.c into helloworldmodule.bc? I think it's not the same command "clang -O3 -emit-llvm hello.c -c -o hello.bc".
2012 Apr 12
2
[LLVMdev] HELP: Clang options needed in command to compile device driver into linux module.
Hi, Nick
I think that's the question. I just don't know what's the command line that can tell clang to find the linux head file like a makefile will do. Please help me!
--
祝好!
甄凯
------------------------------------------------------------------------------------------------------
2012-04-12