search for: initializemypasspass

Displaying 5 results from an estimated 5 matches for "initializemypasspass".

2012 Jun 05
2
[LLVMdev] Function Pass Manager
...an example. It's a pass which does > nothing but throw the 'Unable to schedule' error. > > namespace { > struct MyPass : public FunctionPass { > static char ID; // Pass identification, replacement for typeid > MyPass() : FunctionPass(ID) { > initializeMyPassPass(*PassRegistry::getPassRegistry()); > } > virtual void getAnalysisUsage(AnalysisUsage&AU) const { > AU.addRequiredID(LoopSimplifyID); > AU.addPreservedID(LoopSimplifyID); > } > virtual bool runOnFunction(Function&F); > }; >...
2012 Apr 12
0
[LLVMdev] Function Pass Manager
...gain, I come back to this issue with an example. It's a pass which does nothing but throw the 'Unable to schedule' error. namespace { struct MyPass : public FunctionPass { static char ID; // Pass identification, replacement for typeid MyPass() : FunctionPass(ID) { initializeMyPassPass(*PassRegistry::getPassRegistry()); } virtual void getAnalysisUsage(AnalysisUsage &AU) const { AU.addRequiredID(LoopSimplifyID); AU.addPreservedID(LoopSimplifyID); } virtual bool runOnFunction(Function &F); }; } char MyPass::ID = 0; INITIALIZE_PASS_BEGIN...
2012 Mar 23
3
[LLVMdev] Function Pass Manager
Hi, I'm writing a function pass which is dynamically loaded by opt and I need some analysis and passes to be run before my pass: virtual void getAnalysisUsage(AnalysisUsage &AU) const { AU.addRequired<LoopInfo>(); AU.addPreserved<LoopInfo>(); AU.addRequiredID(LoopSimplifyID); AU.addPreservedID(LoopSimplifyID);
2012 Jun 05
2
[LLVMdev] Function Pass Manager
...but throw the 'Unable to schedule' error. >>> >>> namespace { >>> struct MyPass : public FunctionPass { >>> static char ID; // Pass identification, replacement for typeid >>> MyPass() : FunctionPass(ID) { >>> initializeMyPassPass(*PassRegistry::getPassRegistry()); >>> } >>> virtual void getAnalysisUsage(AnalysisUsage&AU) const { >>> AU.addRequiredID(LoopSimplifyID); >>> AU.addPreservedID(LoopSimplifyID); >>> } >>> virtual...
2012 Jun 05
0
[LLVMdev] Function Pass Manager
...ch does >> nothing but throw the 'Unable to schedule' error. >> >> namespace { >> struct MyPass : public FunctionPass { >> static char ID; // Pass identification, replacement for typeid >> MyPass() : FunctionPass(ID) { >> initializeMyPassPass(*PassRegistry::getPassRegistry()); >> } >> virtual void getAnalysisUsage(AnalysisUsage&AU) const { >> AU.addRequiredID(LoopSimplifyID); >> AU.addPreservedID(LoopSimplifyID); >> } >> virtual bool runOnFunction(Func...