[LLVMdev] [Fwd: Re: [Fwd: Regarding alias analysis pass]]
netra at cse.iitb.ac.in
netra at cse.iitb.ac.in
Fri Apr 15 20:10:15 PDT 2011
---------------------------- Original Message ----------------------------
Subject: [Fwd: Re: [Fwd: Regarding alias analysis pass]]
From: netra at cse.iitb.ac.in
Date: Sat, April 16, 2011 8:38 am
To:
--------------------------------------------------------------------------
Hi,
Actually i wanted to study the kind of aliases recognized by basicaa pass.
aa-eval only gives the # of aliases recognized.
I wanted to print the alias pairs too.
So,i tried modifying basic-aa for this by inserting some errs()
statements.
However the changes did not get reflected.
To see where exactly im going wrong,i just added only a simple
errs() << "hello";
statement inside runOnFunction of basicaa pass.
Susequently i did
make
followed by
make install
in the llvm-obj/lib/Analysis directory.
but while using opt this hello was not printed.
I replicated the code of aa-eval as a dynamic plugin(shared object .so
instead of .a,(similar to hello pass),
modified the source(alias...evaluator.cpp) and included a errs() <<
"hello"; in it.
and then the "hello" stmt got printed.
This is the reason i asked about how to make changes to the source of
llvm.
KIndly let me know where im going wrong.
Regards,
Netra
>>
>> Hi,
>> I wanted to make a critical evaluation of the kind of aliases recognized
>> by basicaa (Basic Alias Analysis Pass).
>> aa-eval pass just gives the number of aliases discovered but not the
>> actual variables aliased.
>> i tried adding some print statements to BasicAliasAnalysis.cpp to get
>> the
>> above effect.
>> However,my changes are not being reflected in the output.I did make and
>> make install. But even after,the output remained unchanged.
>>
>> Kindly help me on this.
>> Kindly tell me how to make changes to the source files.
>>
>> Regards,
>> Netra
>>
>>
>> Regards,
>> Netra
>>
Regards,
Netra
Regards,
Netra
More information about the llvm-dev
mailing list