Displaying 8 results from an estimated 8 matches for "relrecovery".
2012 Jan 30
0
[LLVMdev] initializeNAMEPass(llvm::PassRegistry&) should have been declared inside 'llvm'
Hey all,
So I've been working to fix a problem I had wherein I could not properly
initialize AliasAnalysis profiling information. In order to fix it, I've
had to rewrite how my pass operates, such that it contains this in the
FunctionPass declaration;
RelRecovery() : FunctionPass(ID) {
llvm::initializeRelRecoveryPass(*PassRegistry::getPassRegistry());
}
and contains these macros
INITIALIZE_PASS_BEGIN(RelRecovery, "relRecovery", "...", false, false)
INITIALIZE_AG_DEPENDENCY(AliasAnalysis)
INITIALIZE_PASS_END(RelRecovery, "...
2012 Jan 25
1
[LLVMdev] PLEASE help with Alias Analysis initialization assertion at the end of my pass
Yes, it is a pass.
Here is a very general overview of the file structure as far as the AA is
concerned. LLVM is not my strong-suit, I do hardware simulators, not
compilers.
using namespace llvm;
char RelRecovery::ID = 0;
static RegisterPass<RelRecovery> X("relRecovery",
"Reliability transformation for lightweight recovery");
void RelRecovery::getAnalysisUsage(AnalysisUsage &AU) const { STUFF }
bool RelRecovery::doInitialization(Module &M) { STUFF }
bool RelRecovery:...
2012 Jan 25
0
[LLVMdev] PLEASE help with Alias Analysis initialization assertion at the end of my pass
...vial thing, but
> I've ground to a halt, and REALLY need some guidance. Please see below for
> the context of my problem. I'm not trying to be a waste of time, but I'm
> desperate here.
>
> I have a getAnalysisUsage method which does the following (excerpted):
> void RelRecovery::getAnalysisUsage(AnalysisUsage&AU) const {
> AU.addRequired<AliasAnalysis> (); }
>
> and then a runOnFunction method which does this:
>
> bool RelRecovery::runOnFunction(Function&F) { AA =
> &getAnalysis<AliasAnalysis> (); }
>
> This is the same se...
2012 Jan 25
2
[LLVMdev] PLEASE help with Alias Analysis initialization assertion at the end of my pass
...nderstand this must be a trivial thing, but
I've ground to a halt, and REALLY need some guidance. Please see below for
the context of my problem. I'm not trying to be a waste of time, but I'm
desperate here.
I have a getAnalysisUsage method which does the following (excerpted):
void RelRecovery::getAnalysisUsage(AnalysisUsage &AU) const {
AU.addRequired<AliasAnalysis> (); }
and then a runOnFunction method which does this:
bool RelRecovery::runOnFunction(Function &F) { AA =
&getAnalysis<AliasAnalysis> (); }
This is the same setup as with a bunch of other analy...
2012 Jan 12
3
[LLVMdev] 'opt' Aborted "While deleting: void %"
...le::~Module() + 50
21 opt 0x08081e36 std::auto_ptr<llvm::Module>::~auto_ptr() + 36
22 opt 0x0807d5a4 main + 5045
23 libc.so.6 0xf57bdbd6 __libc_start_main + 230
24 opt 0x0806de41
Stack dump:
0. Program arguments: opt -debug -load
/x/grwright/llvm/llvm-sfi/RelRecovery/Debug+Asserts/lib/relRecovery.so
-profile-loader -profile-info-file=164.gzip/llvmprof.out -relRecovery
-rr-analysis-only -rr-use-exec-prof=true -rr-bench=164.gzip
164.gzip/164.gzip.link.bc -o 164.gzip/164.gzip.rel.bc
Aborted
2012 Jan 12
0
[LLVMdev] 'opt' Aborted "While deleting: void %"
...0x08081e36 std::auto_ptr<llvm::Module>::~auto_ptr() + 36
> 22 opt 0x0807d5a4 main + 5045
> 23 libc.so.6 0xf57bdbd6 __libc_start_main + 230
> 24 opt 0x0806de41
> Stack dump:
> 0. Program arguments: opt -debug -load
> /x/grwright/llvm/llvm-sfi/RelRecovery/Debug+Asserts/lib/relRecovery.so
> -profile-loader -profile-info-file=164.gzip/llvmprof.out -relRecovery
> -rr-analysis-only -rr-use-exec-prof=true -rr-bench=164.gzip
> 164.gzip/164.gzip.link.bc -o 164.gzip/164.gzip.rel.bc
> Aborted
>
> ____________________________________________...
2012 Jan 13
1
[LLVMdev] 'opt' Aborted "While deleting: void %"
...t;llvm::Module>::~auto_ptr() +
>> 36
>> 22 opt 0x0807d5a4 main + 5045
>> 23 libc.so.6 0xf57bdbd6 __libc_start_main + 230
>> 24 opt 0x0806de41
>> Stack dump:
>> 0. Program arguments: opt -debug -load
>> /x/grwright/llvm/llvm-sfi/RelRecovery/Debug+Asserts/lib/relRecovery.so
>> -profile-loader -profile-info-file=164.gzip/llvmprof.out -relRecovery
>> -rr-analysis-only -rr-use-exec-prof=true -rr-bench=164.gzip
>> 164.gzip/164.gzip.link.bc -o 164.gzip/164.gzip.rel.bc
>> Aborted
>>
>> ____________________...
2012 Jan 23
1
[LLVMdev] Assertion `AA && "AA didn't call InitializeAliasAnalysis in its run method!"' failed.
...__in_chrg=<value optimized
out>) at /usr/include/c++/4.4/backward/auto_ptr.h:168
#24 0x0807d5a4 in main (argc=13, argv=0xffffd814) at
/x/grwright/llvm/llvm-2.9/tools/opt/opt.cpp:695
--------------------------------
I have a getAnalysisUsage method which does the following (excerpted):
void RelRecovery::getAnalysisUsage(AnalysisUsage &AU) const {
AU.addRequired<AliasAnalysis> ();
}
and then a runOnFunction method which does this:
bool RelRecovery::runOnFunction(Function &F) {
AA = &getAnalysis<AliasAnalysis> ();
}
This is the same setup as with a bunch of other an...