search for: machineprofileinfo

Displaying 3 results from an estimated 3 matches for "machineprofileinfo".

2012 Sep 17
0
[LLVMdev] Regarding llvm
Hi, I am trying to run a profiling pass for each Machine Basic Block so that I can get execution count for them, but I am getting assertion error when I run it through clang. I have used MachineProfileInfo and Profile estimator as dependent passes over my pass. I am sending you the code for my pass. the error says: void llvm::PMTopLevelManager::schedulePass(llvm::Pass*): Assertion `PI && "Expected required passes to be initialized"' failed. I am attaching the code. Can you help...
2012 Sep 17
0
[LLVMdev] Profile Info with Machine Function Pass Fails
Hi, I am trying to run a profiling pass for each Machine Basic Block so that I can get execution count for them, but I am getting assertion error when I run it through clang. I have used MachineProfileInfo and Profile estimator as dependent passes over my pass. I am sending you the code for my pass. the error says: void llvm::PMTopLevelManager::schedulePass(llvm::Pass*): Assertion `PI && "Expected required passes to be initialized"' failed. In *ARMTargetMachine.cpp, function bo...
2012 Sep 26
0
[LLVMdev] Error while loading profile information
...etExecutionCount(BB); printf("\nBlock No=%d,ExecCnt=%f",blckno,execcnt); if(blckno!=-1) { oMsProfI[cnt].blockno=blckno; oMsProfI[cnt].execcnt=execcnt; cnt++; } } bool runOnMachineFunction(MachineFunction &MF) { //MPI=&getAnalysis<MachineProfileInfo>(); cnt=0; printf("\n%s:%d",__FILE__,__LINE__); fflush(stdout); for (MachineFunction::const_iterator I = MF.begin(), E = MF.end(); I != E; ++I) processMBB(*I); printf("\n%s:%d",__FILE__,__LINE__); fflush(stdout); return false...