search for: initializenvptxtestpass

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

2013 Jun 24
0
[LLVMdev] About writing a modulePass in addPreEmitPass() for NVPTX
...y to use INITIALIZE_PASS instead of RegisterPass<> to register my pass, though I don't understand what's their difference and how it works because its documents doesn't exist. But it still doesn't work. Parts of my codes is as follows: in NVPTXTest.h namespace llvm { void initializeNVPTXTestPass(PassRegistry &r); class NVPTXTest : public ModulePass { public: NVPTXTest() : ModulePass(ID){ initializeNVPTXTestPass(*PassRegistry::getPassRegistry()); } void getAnalysisUsage(AnalysisUsage &AU) const { AU.setPreservesAll(); ModulePass::getAnalysisUsag...
2013 Jun 22
2
[LLVMdev] About writing a modulePass in addPreEmitPass() for NVPTX
I write my pass in a mix way of NVPTXAllocaHoisting, NVPTXSplitBBatBar and transforms/Hello. The following is part of the codes: in NVPTXTargetMachine.cpp bool NVPTXPassConfig::addPreEmitPass() { addPass(createTest()); return false; } in NVPTXTest.h namespace llvm{
2013 Jun 24
2
[LLVMdev] About writing a modulePass in addPreEmitPass() for NVPTX
...ss<> to register my pass, > though I don't understand what's their difference and how it works because > its documents doesn't exist. But it still doesn't work. > > Parts of my codes is as follows: > > in NVPTXTest.h > > namespace llvm { > > void initializeNVPTXTestPass(PassRegistry &r); > > class NVPTXTest : public ModulePass > { > public: > > NVPTXTest() : ModulePass(ID){ > initializeNVPTXTestPass(*PassRegistry::getPassRegistry()); > } > void getAnalysisUsage(AnalysisUsage &AU) const { > AU.setPre...