Displaying 20 results from an estimated 1000 matches similar to: "[LLVMdev] Use Callgraph"
2015 Jun 17
2
[LLVMdev] metadata in callgraph
Hi All,
It seems that functions in callgraph remove all metadata info, such as dbg.
Can I keep metadata in callgraph?
Best,
Haopeng
2019 Apr 02
2
How can I use llvm::LoopInfo in the runOnModule method?
Hi all,
I tried to have a LoopInfo object in a function pass, and add addRequired
in getAnalysisUsage, and then use getAnalysis in runOnFunction(). It worked
OK.
Now I want to have a module pass to traverse the functions, and similarly,
I want to have to loop information of the functions.
When I did the above in runOnModule, and build the module pass, the
following error popped out, and the
2019 Mar 24
3
call an existing IPO pass
Hi,
I found an existing pass "CalledValuePropagation" that can solve the
problem I raised a few days ago regarding the "callees" metadata (
https://groups.google.com/forum/#!topic/llvm-dev/yjtZVMH_aC4). Now I have
difficulty in calling this pass in my own pass.
In my own pass, I called
"getAnalysis<CalledValuePropagationPass>()"
and in the
2015 Jun 02
2
[LLVMdev] struct type parament
I tried to compare two types. Because of renaming, the comparison result
is not as expected. How to deal with renaming while comparing types?
Best,
Haopeng
On 6/2/15 4:09 PM, Mehdi Amini wrote:
> Hi Haopeng,
>
> One more element, I just noticed you are using LTO, I am not sure how it is implemented but my guess is that there is a shared LLVMContext. If multiple files include this
2015 Jun 02
2
[LLVMdev] struct type parament
Hi Mehdi,
Thanks for your reply.
It seems caused by random rename because I saw
%struct.StructTyName.692.475*, which might be twice renaming.
Does this collision occur because this type is declared more than once?
I encountered this problem when used clang to compile transmission 1.42
(http://download.transmissionbt.com/files/) with configuration:
"./configure --disable-gtk". Then
2019 Apr 03
3
How can I use llvm::LoopInfo in the runOnModule method?
Interesting that we're getting a relative flood of these recently.
See here:
http://lists.llvm.org/pipermail/llvm-dev/2019-March/131346.html
I don't think one can reliably get a Function analysis pass from within
a ModulePass using the legacy pass manager. You have to manually
construct the pass yourself.
-David
Jonathan Smith via llvm-dev <llvm-dev at
2015 Feb 16
2
[LLVMdev] alias result
Oh, got it. Thanks for your explain. I misunderstand what getLocation does.
If I would like to get the result of alias analysis referring to the
stored value, what should I do in llvm?
On 2/16/15 1:42 PM, Hal Finkel wrote:
> ----- Original Message -----
>> From: "Haopeng Liu" <hyliuhp at gmail.com>
>> To: "Hal Finkel" <hfinkel at anl.gov>
>>
2015 Feb 16
2
[LLVMdev] alias result
Yes, in my example, %1 and %2 point to t. %3 points to t2.
But t and t2 point to the same var, is it? That's where I'm confused.
On 2/16/15 12:37 PM, Hal Finkel wrote:
> ----- Original Message -----
>> From: "Haopeng Liu" <hyliuhp at gmail.com>
>> To: "Hal Finkel" <hfinkel at anl.gov>
>> Cc: llvmdev at cs.uiuc.edu
>> Sent:
2015 Jun 02
2
[LLVMdev] struct type parament
Hi All,
I generated the following code with "clang -flto" command.
void test(struct StruTyName *a) {
...
}
Then the type of test function is "void (%struct.StruTyName.100*)" by
calling function::getFunctionType API.
What's the meaning of number 100?
Best,
Haopeng
2015 Feb 20
3
[LLVMdev] basicaa result
Hi,
I'm trying to explore basicaa alias analysis.
test.c:
int main() {
int a;
int *p, *q;
p = &a;
q = p;
...
}
Commands:
clang -emit-llvm -c -g -O0 test.c -o test.bc
opt -basicaa -print-must-aliases test.bc
However, the result shows that p and q are no alias.
Could anyone explain it? Your help is much appreciated!
-Haopeng
2015 Oct 09
2
Get instance of CallGraph of a module in the pass
Hello,
I want an instance of CallGraph in my pass. By looking at -dot-callgraph
source, I've tried something like this:
CallGraphWrapperPass *CGWP = new CallGraphWrapperPass();
PM.add(CGWP);
CallGraph *CG = &CGWP->getCallGraph();
PM.add(new MyPass(CG));
I get the following error:
/home/riyad/installs/llvm-3.7.0/include/llvm/PassSupport.h:95:38: error: no
matching constructor for
2015 Feb 16
2
[LLVMdev] alias result
t and t2 are two pointers defined in .c file.
The definitions in .bc are:
%thd = alloc i64, align 8
%t = alloca i64*, align 8
%t2 = alloca i64*, align 8
.c file likes this:
int thd;
int *t = &thd;
int *t2 = t;
On 2/16/15 12:28 PM, Hal Finkel wrote:
> ----- Original Message -----
>> From: "Haopeng Liu" <hyliuhp at gmail.com>
>> To: llvmdev at cs.uiuc.edu
2006 Jun 01
2
[LLVMdev] Status on llvm-g++ -> llc -> C backend
Does anyone have a patch or fix for the failure:
*assertion "Pass::getClassPassInfo<PassClass>() && "Pass class not
registered!"" failed: file
"/cygdrive/c/llvm/llvm/include/llvm/PassAnalysisSupport.h", line 76
*
-Ash
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 May 24
3
[LLVMdev] Error with llc after using llvm-g++ WIN32
Hello, Ashwin.
You wrote Wednesday, May 24, 2006, 11:25:11 AM:
AC> "Pass::getClassPassInfo<PassClass>() "Pass class not
AC> registered!"" failed: file
AC> "/cygdrive/c/llvm/llvm/include/llvm/PassAnalysisSupport.h", line 76
AC> Aborted
Same for me.
AC> Wihtout the -march specified (using native x86 assembly) it does
AC> convert it into
2006 May 25
3
[LLVMdev] Error with llc after using llvm-g++ WIN32
Hi Anton,
Is the patch going to be uploaded to the CVS source?
Ashwin
On 5/24/06, Evan Cheng <evan.cheng at apple.com> wrote:
>
>
> On May 24, 2006, at 5:03 AM, Anton Korobeynikov wrote:
>
> > Hello, Ashwin.
> >
> > You wrote Wednesday, May 24, 2006, 11:25:11 AM:
> >
> > AC> "Pass::getClassPassInfo<PassClass>() "Pass class
2015 Mar 02
2
[LLVMdev] clang change function name
Got it, thanks. But in my pass, I use function name to locate. Can I
disable mangling in clang?
Best,
Haopeng
On 3/1/15 10:44 PM, John Criswell wrote:
> On 3/1/15 11:38 PM, Haopeng Liu wrote:
>> Hi,
>>
>> I compile a .cpp with cmd:
>> clang++ -emit-llvm -c -g -O0 -w pbzip2.cpp -o pbzip2.bc -lbz2
>> llvm-dis pbzip2.bc
>>
>> One function in .cpp is
2006 Jun 02
0
[LLVMdev] Status on llvm-g++ -> llc -> C backend
On Thu, 1 Jun 2006, Ashwin Chandra wrote:
> Does anyone have a patch or fix for the failure:
> *assertion "Pass::getClassPassInfo<PassClass>() && "Pass class not
> registered!"" failed: file
> "/cygdrive/c/llvm/llvm/include/llvm/PassAnalysisSupport.h", line 76
I don't see that failure. We'll need more info to reproduce the issue.
2006 May 26
2
[LLVMdev] Error with llc after using llvm-g++ WIN32
Hi Evan,
I updated cvs and recompilled llvm. Still getting some unrecognized commas
in the compilation of the assembly file after using llc. I guess this is
still future work...
Ashwin
On 5/25/06, Evan Cheng <evan.cheng at apple.com> wrote:
>
> The patch is now in. Sorry about the delay!
>
> Evan
>
> On May 25, 2006, at 10:20 AM, Ashwin Chandra wrote:
>
> Hi
2006 May 24
0
[LLVMdev] Error with llc after using llvm-g++ WIN32
On May 24, 2006, at 5:03 AM, Anton Korobeynikov wrote:
> Hello, Ashwin.
>
> You wrote Wednesday, May 24, 2006, 11:25:11 AM:
>
> AC> "Pass::getClassPassInfo<PassClass>() "Pass class not
> AC> registered!"" failed: file
> AC> "/cygdrive/c/llvm/llvm/include/llvm/PassAnalysisSupport.h",
> line 76
> AC> Aborted
> Same
2009 May 11
2
[LLVMdev] Pass Manager hangs with CallGraph and LoopSimplify
Hello,
I have discovered a situation in which the pass manager will infinite
loop. The minimal test case is below this message. The required
structure of these passes is;
Before requires CallGraph
After requires LoopSimplify and Before
I can observe this through opt:
opt -load ./libBug.so -after input.bc -o output.bc
I built my copy of llvm from svn revision 68820 using gcc 4.1.2
Any