Displaying 3 results from an estimated 3 matches for "warkari".
2008 Nov 30
3
[LLVMdev] Error when using getAnalysis
...getAnalysisUsage(AnalysisUsage &AU) const {
AU.addRequired<LoopInfo>();
AU.setPreservesAll();
}
virtual bool runOnModule(Module &M) {
LoopInfo &LI = getAnalysis<LoopInfo>();
}
I get following error when I try to run my pass :
opt:
/net/hc295/nwarkari/llvm/llvm-2.3/include/llvm/PassAnalysisSupport.h:193:
AnalysisType& llvm::Pass::getAnalysisID(const llvm::PassInfo*) const [with
AnalysisType = llvm::LoopInfo]: Assertion `ResultPass && "getAnalysis*()
called on an analysis that was not " "'required' by pass!"...
2008 Dec 01
0
[LLVMdev] Error when using getAnalysis
nitisha warkari wrote:
> Hi,
>
> I'm trying to use the function getAnalysis. This is the code I'm using :
>
> void getAnalysisUsage(AnalysisUsage &AU) const {
> AU.addRequired<LoopInfo>();
> AU.setPreservesAll();
> }
>
> virtual bool runOnModule(Mod...
2008 Dec 02
2
[LLVMdev] Error when using getAnalysis
...(llvm::Pass*, const
llvm::PassInfo*, llvm::Function&): Assertion `FPP && "Unable to find on the
fly pass"' failed.
What else needs to be added to make the code run?
Jeff
On Mon, 1 Dec 2008 09:38:26 -0600, John Criswell <criswell at cs.uiuc.edu>
wrote:
> nitisha warkari wrote:
>> Hi,
>>
>> I'm trying to use the function getAnalysis. This is the code I'm using :
>>
>> void getAnalysisUsage(AnalysisUsage &AU) const {
>> AU.addRequired<LoopInfo>();
>> AU.setPreservesAll();
>> }
>>...