search for: createskeletonpass

Displaying 2 results from an estimated 2 matches for "createskeletonpass".

2019 Apr 02
2
How can I use llvm::LoopInfo in the runOnModule method?
...) const override { return "Skeleton"; } virtual void getAnalysisUsage(AnalysisUsage &AU) const override { errs() << "get analysis usage method.\n"; AU.addRequired<LoopInfo>(); } }; Pass *createSkeletonPass() { return new SkeletonPass(); } char SkeletonPass::ID = 0; Pass *createSkeletonPass(); void initializeSkeletonPass(PassRegistry &Registry); } // namespace llvm using namespace llvm; using namespace std; bool SkeletonPass::runOnModule(llvm::Module &M){...
2019 Apr 03
3
How can I use llvm::LoopInfo in the runOnModule method?
...;> } >> virtual void getAnalysisUsage(AnalysisUsage &AU) const override { >> errs() << "get analysis usage method.\n"; >> AU.addRequired<LoopInfo>(); >> } >> }; >> >> Pass *createSkeletonPass() >> { >> return new SkeletonPass(); >> } >> >> char SkeletonPass::ID = 0; >> Pass *createSkeletonPass(); >> void initializeSkeletonPass(PassRegistry &Registry); >> >> >> } // namespace llvm >> >&gt...