Displaying 10 results from an estimated 10 matches for "myana".
Did you mean:
ryana
2010 Feb 22
2
[LLVMdev] Regarding a pass in LLVM
Hi,
I am trying to add a pass inn LLVM, and I actually want to add it in
source code, not just directly into object code.
For that I included the lines in my file MyAna.cpp
(llvm-2.6/lib/ana/MyAna.cpp)
char MyAna::ID = 0;
static RegisterPass<MyAna> X("my-aa","My Analysis");
static RegisterAnalysisGroup<AliasAnalysis> Y(X);
ModulePass *llvm::createMyAnaPass() { return new MyAna(); }
I also included createMyAnaPass() in Passes.h...
2010 Feb 23
2
[LLVMdev] Regarding a pass in LLVM
Thanks that helped me out.
But now I am facing one more problem. It says :
‘llvm::ModulePass* llvm::createMyAnaPass()’ should have been declared
inside ‘llvm’
but I can find no place to declare it.
Where should I do it.
John Criswell wrote:
> ambika at cse.iitb.ac.in wrote:
>> Hi,
>>
>> I am trying to add a pass inn LLVM, and I actually want to add it in
>> source code, not jus...
2010 Feb 22
0
[LLVMdev] Regarding a pass in LLVM
ambika at cse.iitb.ac.in wrote:
> Hi,
>
> I am trying to add a pass inn LLVM, and I actually want to add it in
> source code, not just directly into object code.
>
> For that I included the lines in my file MyAna.cpp
> (llvm-2.6/lib/ana/MyAna.cpp)
>
>
> char MyAna::ID = 0;
> static RegisterPass<MyAna> X("my-aa","My Analysis");
> static RegisterAnalysisGroup<AliasAnalysis> Y(X);
>
> ModulePass *llvm::createMyAnaPass() { return new MyAna(); }
>
>
&...
2010 Feb 23
1
[LLVMdev] Regarding a pass in LLVM
I have done that. I have defined createMyAnaPass() in Passes.h and it is
defined in MyAna.cpp and used in LinkAllPasses.h
But still the error :
/home/ambika/llvm/llvm-obj/tools/opt/Release/opt.o: In function `global
constructors keyed to opt.cpp':
opt.cpp:(.text+0x1e89): undefined reference to `llvm::createMyAnaPass()'
I dont un...
2010 Feb 23
0
[LLVMdev] Regarding a pass in LLVM
On Tue, Feb 23, 2010 at 7:17 AM, ambika <ambika at cse.iitb.ac.in> wrote:
> Thanks that helped me out.
> But now I am facing one more problem. It says :
>
> ‘llvm::ModulePass* llvm::createMyAnaPass()’ should have been declared
> inside ‘llvm’
>
> but I can find no place to declare it.
> Where should I do it.
We can do what scalar optimizations do.
All scalar passes are declared in include/llvm/Transforms/Scalar.h and
include/llvm-c/Transforms/Scalar.h,
defined in lib/Transfo...
2010 Mar 19
1
[LLVMdev] Debugging my pass with llvm
Hi,
I have a pass named MyAna in directory /llvm-obj/lib/myana
When i do make it compiles succesfully but when I try to load it I get a
segmentation fault, ie when I run
opt -load ../llvm-obj/Release/lib/MyAna.so -my-ana t.bc
I get segmentation fault.
I used bugpoint as :
bugpoint opt -load ../llvm-obj/Release/lib/MyAna.so...
2010 Feb 26
1
[LLVMdev] Using Profile Information
I have not made a separate pass. I have done it in single pass ie added
ProfileLoaderPass , got information in PI and now I am planning to
perform the analysis here itself.
I was trying to print information using ProfileInfoPrinter pass but was
unable to do it.
namespace {
class MyAna : public ModulePass {
ProfileInfo *PI;
public:
static char ID; // Class identification, replacement for typeinfo
MyAna() : ModulePass(&ID) {}
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
AU.setPreservesAll();
AU.addRequired<ProfileInfo>();
}...
2010 Feb 25
0
[LLVMdev] Using Profile Information
Ah BTW...
On 25.02.2010, at 17:33, ambika wrote:
> ProfileInfo *PI;
> PI = &getAnalysis<ProfileInfo>();
If this _in_ your pass, then you have to register the usage of this in
the getAnalysisUsage() method:
void getAnalysisUsage(AnalysisUsage &AU) const {
AU.addRequired<ProfileInfo>();
}
Also you have to ensure that the pass you are using is executed right
2010 Feb 25
3
[LLVMdev] Using Profile Information
Hi,
How can I use profile information into my pass for performing some analysis.
I tried something like:
PassManager PassMgr = PassManager();
cl::opt<std::string> ProfileDataFile(cl::Positional,
cl::desc("<llvmprof.out file>"),
cl::Optional, cl::init("llvmprof.out"));
PassMgr.add(createProfileLoaderPass(ProfileDataFile));
2011 Aug 22
1
[LLVMdev] Infinite loop when adding a new analysis pass
...following:
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
AU.setPreservesCFG();
AU.addRequired<DominatorTree>();
AU.addRequired<LoopInfo>();
AU.addRequiredID(LoopSimplifyID);
AU.addRequired<AliasAnalysis>();
AU.addRequired<MyAnalysis>(); // Add this
AU.addPreserved<AliasAnalysis>();
AU.addPreserved("scalar-evolution");
AU.addPreservedID(LoopSimplifyID);
}
char LICM::ID = 0;
INITIALIZE_PASS_BEGIN(LICM, "licm", "Loop Invariant Code Motion"...