Displaying 5 results from an estimated 5 matches for "initializememdepprinterpass".
2013 Mar 15
2
[LLVMdev] write a simple MachineFunctionPass
...It just gives me segfault. Hence I reduced the
pass to the following form :
using namespace llvm;
namespace {
class CFGexplorator : public MachineFunctionPass {
public:
static char ID; // Pass identification, replacement for typeid
CFGexplorator() : MachineFunctionPass(ID) {
//initializeMemDepPrinterPass(*PassRegistry::getPassRegistry());
}
private:
virtual bool runOnMachineFunction(MachineFunction &MF);
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
MachineFunctionPass::getAnalysisUsage(AU);
}
};
} // end anonymous namespace
char CFGexplorator::ID = 0...
2013 Jan 24
1
[LLVMdev] llvm pass INITIALIZE
...ss template. I
have encountered a segfault in my pass.
Assertion `AA && "AA didn't call InitializeAliasAnalysis in its run
method!"' failed.
Then, I tried to use INITIALIZE_PASS_XXXX or INITIALIZE_AG_PASS template,
together with `*llvm::createMyMemDepPrinter()` and
`initializeMemDepPrinterPass(*PassRegistry::getPassRegistry())` methods.
Therefore, I got two compilation errors:
MyMemDepPrinter.cpp:101:1: error: ‘void
llvm::initializeMyMemDepPrinterPass(llvm::PassRegistry&)’ should have been
declared inside ‘llvm’
MyMemDepPrinter.cpp:104:43: error: ‘llvm::FunctionPass*
llvm::c...
2013 Mar 15
0
[LLVMdev] write a simple MachineFunctionPass
...pass to the following form :
>
>
> using namespace llvm;
>
> namespace {
> class CFGexplorator : public MachineFunctionPass {
> public:
> static char ID; // Pass identification, replacement for typeid
> CFGexplorator() : MachineFunctionPass(ID) {
> //initializeMemDepPrinterPass(*PassRegistry::getPassRegistry());
> }
>
> private:
> virtual bool runOnMachineFunction(MachineFunction &MF);
>
> virtual void getAnalysisUsage(AnalysisUsage &AU) const {
> MachineFunctionPass::getAnalysisUsage(AU);
> }
> };
> } // end...
2013 Feb 08
0
[LLVMdev] llvm metadata transformation pass
...Test2.bc (transformation applied) are the same. I
just have
using namespace llvm;
namespace {
struct metadata : public FunctionPass {
const Function *F;
static char ID; // Pass identifcation, replacement for typeid
metadata() : FunctionPass(ID) {
//initializeMemDepPrinterPass(*PassRegistry::getPassRegistry());
}
virtual bool runOnFunction(Function &F);
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
AU.setPreservesAll();
}
// virtual void releaseMemory() {
// F = 0;
// }
};
}...
2013 Feb 13
0
[LLVMdev] write a transformation pass
...lass.ThreeDimension, align 4 ").
Can you tell me how can I make the transformations persistent?
I have :
namespace {
struct metadata : public FunctionPass {
const Function *F;
static char ID; // Pass identifcation, replacement for typeid
metadata() : FunctionPass(ID) {
//initializeMemDepPrinterPass(*PassRegistry::getPassRegistry());
}
virtual bool runOnFunction(Function &F);
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
AU.setPreservesAll();
}
// virtual void releaseMemory() {
// F = 0;
// }
};
}
char metadata::ID = 0;
static RegisterPa...