search for: skeletonpass

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

2019 Apr 02
2
How can I use llvm::LoopInfo in the runOnModule method?
...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 compile did not succeed: [ 50%] Building CXX object src/CMakeFiles/SkeletonPass.dir/Skeleton.cpp.o /home/**/Desktop/skeleton/src/Skeleton.cpp: In member function ‘virtual bool llvm::SkeletonPass::runOnModule(llvm::Module&)’: /home/**/Desktop/skeleton/src/Skeleton.cpp:47:43: error: no matching function for call to ‘llvm::SkeletonPass::getAnalysis(llvm::Function*&)’...
2019 Apr 03
3
How can I use llvm::LoopInfo in the runOnModule method?
...e 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 compile did not succeed: >> >> [ 50%] Building CXX object src/CMakeFiles/SkeletonPass.dir/Skeleton.cpp.o >> /home/**/Desktop/skeleton/src/Skeleton.cpp: In member function ‘virtual bool llvm::SkeletonPass::runOnModule(llvm::Module&)’: >> /home/**/Desktop/skeleton/src/Skeleton.cpp:47:43: error: no matching function for call to ‘llvm::SkeletonPass::getAnalysis(llvm::Fun...
2017 Jul 10
2
Problems with registering of ModulePass (with Dependencies)
...der.h" #include "llvm/IR/LegacyPassManager.h" #include "llvm/IR/Module.h" #include "llvm/Support/Debug.h" #include "llvm/Transforms/IPO/PassManagerBuilder.h" #include "llvm/Analysis/LoopInfo.h" using namespace llvm; namespace { struct SkeletonPass : public ModulePass { static char ID; SkeletonPass() : ModulePass(ID) { } virtual bool runOnModule(Module &M) override { errs() << "In module called: " << M.getName() << "!\n";...
2018 Feb 07
2
Question about using LoopAccessLegacyAnalysis
...{ Loop *loop = *lp; const LoopAccessInfo &lai = lala.getInfo(loop); // need help here // I can’t get any information from the LoopAccessInfo instance. errs()<<lai.getNumLoads(); // return 0 } } // register static RegisterPass<SkeletonPass> X("test", "test for using the existing pass", “false", “false”); I must be missing something important. Any response would be greatly appreciated! Thanks, Kewen Best regards, Kewen
2018 Feb 08
0
Question about using LoopAccessLegacyAnalysis
...lai = lala.getInfo(loop); > > // need help here > // I can’t get any information from the LoopAccessInfo > instance. > errs()<<lai.getNumLoads(); // return 0 > } > } > > > // register > static RegisterPass<SkeletonPass> X("test", "test for using the existing > pass", > “false", > “false”); > > > I must be missing something important. Any response would be greatly > appreciated! > > Thanks...
2018 Feb 07
0
Question about using LoopAccessLegacyAnalysis
...Loop *loop = *lp; const LoopAccessInfo &lai = lala.getInfo(loop); // need help here // I can’t get any information from the LoopAccessInfo instance. errs()<<lai.getNumLoads(); // return 0 } } // register static RegisterPass<SkeletonPass> X("test", "test for using the existing pass", “false", “false”); I must be missing something important. Any response would be greatly appreciated! Thanks, Kewen Best regards, Kewen