search for: initializeanalysis

Displaying 6 results from an estimated 6 matches for "initializeanalysis".

2011 Dec 06
0
[LLVMdev] Assertion `PI && "Expected required passes to be initialized"' failed for AliasAnalysis.
...edulePass(llvm::Pass*): Assertion `PI && "Expected required passes to be initialized"' failed. The solution was to add: PassRegistry &Registry = *PassRegistry::getPassRegistry(); initializeCore(Registry); initializeScalarOpts(Registry); initializeIPO(Registry); initializeAnalysis(Registry); initializeIPA(Registry); initializeTransformUtils(Registry); initializeInstCombine(Registry); initializeInstrumentation(Registry); initializeTarget(Registry); before creating passes. Maybe it could help you to track down the issue. - D. 2011/12/6 Alexander Potapenko <glid...
2011 Dec 06
2
[LLVMdev] Assertion `PI && "Expected required passes to be initialized"' failed for AliasAnalysis.
Dear lazydev, I'm writing an instrumentation pass that depends on AliasAnalysis. My getAnalysisUsage() looks as follows: 2453 void ThreadSanitizer::getAnalysisUsage(AnalysisUsage &AU) const { 2454 AU.addRequired<TargetData>(); 2455 AU.addRequired<AliasAnalysis>(); 2456 } and the pass initialization: 2668 char ThreadSanitizer::ID = 0; 2669
2012 Sep 26
0
[LLVMdev] Error while loading profile information
...%s:%d",__FILE__,__LINE__); fflush(stdout); MachineFunctionPass::getAnalysisUsage(AU); }; }; } //} char ARMInstrStats::ID = 0; namespace llvm { FunctionPass *createARMInstrStatsPass(ProfileInfoLoader &PIL) { PassRegistry &Registry=*PassRegistry::getPassRegistry(); initializeAnalysis(Registry); initializeInstrumentation(Registry); initializeCodeGen(Registry); initializeTarget(Registry); printf("\n%s:%d",__FILE__,__LINE__); fflush(stdout); return new ARMInstrStats(PIL); } } The following changes have been made to the file ARM...
2014 Apr 29
4
[LLVMdev] writing an alias analysis pass?
Hi Matthew, Did you add your alias analysis pass initializeEverythingMustAliasPass() into llvm::initializeAnalysis(PassRegistry &Registry) {} ? This will initialize it linked into the Analysis library. thanks, chen On Apr 28, 2014, at 8:43 PM, Jingyue Wu <jingyue at google.com> wrote: > > > > On Thu, Apr 24, 2014 at 4:38 PM, Matthew O'Connor <thegreendragon at gmail.com> w...
2014 Apr 24
4
[LLVMdev] writing an alias analysis pass?
Hi, I'm attempting to do some alias analysis & other memory inspection. I've written a pointless AliasAnalysis pass (that says everything must alias) to attempt to verify that my pass is getting picked up & run by opt. I run opt with: opt -load ~/Applications/llvm/lib/MustAA.so -must-aa -aa-eval -debug < trace0.ll I see my pass being initialized, but never being called (I see
2011 Apr 05
3
[LLVMdev] Building LLVM on Solaris/Sparc
...-objects/tools/opt/Debug+Asserts/opt.o llvm::createEdgeProfilerPass() /n/fs/scratch/tpondich/ParallelAssert/llvm-objects/tools/opt/Debug+Asserts/opt.o llvm::Module::Module(llvm::StringRef, llvm::LLVMContext&)/n/fs/scratch/tpondich/ParallelAssert/llvm-objects/tools/opt/Debug+Asserts/opt.o llvm::initializeAnalysis(llvm::PassRegistry&) /n/fs/scratch/tpondich/ParallelAssert/llvm-objects/tools/opt/Debug+Asserts/opt.o llvm::CallGraphSCCPass::createPrinterPass(llvm::raw_ostream&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const/n/fs/scratch/tpondi...