search for: getpassnam

Displaying 20 results from an estimated 92 matches for "getpassnam".

Did you mean: getpassname
2011 Dec 14
0
[LLVMdev] Adding dependency on MemoryDependenceAnalysis pass to LICM causes opt to get stuck in addPass
...or > I = IndirectPassManagers.begin(), > E = IndirectPassManagers.end(); I != E; ++I) > if (Pass *P = (*I)->findAnalysisPass(AID, false)) > return P; > Do you see a repeated pattern of pass sequence the pass manager is trying to handle ? P->getPassName() is handy. - Devang > This old post on the list : > http://old.nabble.com/Array-Dependence-Analysis-td16073995.html says > that "Loop passes can use function passes, but not visaversa." > so as far as I can tell this should be OK. > > Am I doing something wrong? (pe...
2011 Dec 14
2
[LLVMdev] Adding dependency on MemoryDependenceAnalysis pass to LICM causes opt to get stuck in addPass
I'm attempting to add some support for hoisting/sinking of memory-using intrinsics in loops, and so I want to use MemoryDependenceAnalysis in LICM, but when I modify getAnalysisUsge to include this : virtual void getAnalysisUsage(AnalysisUsage &AU) const { AU.setPreservesCFG(); AU.addRequired<DominatorTree>(); AU.addRequired<LoopInfo>();
2013 Jun 14
2
[LLVMdev] Pass Schedule Error
I've been puzzling over this for a day: Unable to schedule 'Unnamed pass: implement Pass::getPassName()' required by '<some pass>' Unable to schedule pass UNREACHABLE executed at llvm/lib/VMCore/PassManager.cpp:1213! First, why can't getPassName find the name? I have provided one in the usual way. Second, why is it unable to schedule the pass? -debug-pass=Details doesn...
2019 Jan 31
4
Confusing ERROR with LoopAccessLegacyAnalysis: Pass 'Unnamed pass: implement Pass::getPassName()' is not initialized.
...arEvolutionWrapperPass>(); AU.addRequired<LoopAccessLegacyAnalysis>(); AU.setPreservesAll(); } ===================================================================== I can make the project with GNU make successfully but get the error "Pass 'Unnamed pass: implement Pass::getPassName()' is not initialized." during runtime. When I remove the line "AU.addRequired<LoopAccessLegacyAnalysis>();" and make the project again, I run the program successfully. Detailed error report is shown below: -------------------------------------------------------------...
2013 Jun 14
0
[LLVMdev] Pass Schedule Error
On Jun 14, 2013, at 1:12 PM, dag at cray.com wrote: > I've been puzzling over this for a day: > > Unable to schedule 'Unnamed pass: implement Pass::getPassName()' > required by '<some pass>' > Unable to schedule pass > UNREACHABLE executed at llvm/lib/VMCore/PassManager.cpp:1213! > > First, why can't getPassName find the name? I have provided one in the > usual way. Second, why is it unable to schedule the pass?...
2012 Oct 19
2
[LLVMdev] Choosing an alias analyzer
...iasAnalysis wins if they disagree. This is intended to help // support "obvious" type-punning idioms. PM.add(createTypeBasedAliasAnalysisPass()); PM.add(createBasicAliasAnalysisPass()); } ------ My goal is to use ScalarEvolutionAliasAnalysis in MemoryDependenceAnalysis. When I do, getPassName in MemoryDependenceAnalysis (by stepping into getAnalysisUsage), I get $39 = 0x399f778 "Basic Alias Analysis (stateless AA impl)" To switch to ScalarEvolutionAnalysis, I changed lib/Transforms/IPO/PassManagerBuilder.cpp: addInitialAliasAnalysisPasses to call createScalarEvolutionAliasA...
2015 May 11
2
[LLVMdev] about MemoryDependenceAnalysis usage
...guments: -no-aa -assumption-cache-tracker -targetlibinfo -basicaa > No Alias Analysis (always returns 'may' alias) > Assumption Cache Tracker > Target Library Information > Basic Alias Analysis (stateless AA impl) > ModulePass Manager > Unnamed pass: implement Pass::getPassName() > Unnamed pass: implement Pass::getPassName() > Pass Arguments: -assumption-cache-tracker -no-aa -memdep > Assumption Cache Tracker > No Alias Analysis (always returns 'may' alias) > FunctionPass Manager > Memory Dependence Analysis > function fct > f...
2019 Jun 28
2
Conflicts with custom passes
...=gcc -fdiagnostics-show-option -fcolor-diagnostics -load ../../trace-extractor/build/TracePass.so -o time-1.7.ll -x c /home/khheo/project/all/time-1.7.c -faddrsig 1. <eof> parser at end of file 2. Per-module optimization passes 3. Running pass 'Unnamed pass: implement Pass::getPassName()' on module '/home/khheo/project/all/time-1.7.c'. … What does "Running pass 'Unnamed pass: implement Pass::getPassName()' on module” mean? - Kihong > On Jun 28, 2019, at 4:48 PM, Tim Northover <t.p.northover at gmail.com> wrote: > > On Fri, 28 Jun 2019...
2007 Dec 18
0
[LLVMdev] Another Pass Manager Assertion
...ot;llvm/Module.h" > #include "llvm/PassManager.h" > #include "llvm/Type.h" > > using namespace llvm; > > struct Pass1 : public FunctionPass { > public : > static char ID; > Pass1 () : FunctionPass ((intptr_t) &ID) {} > const char *getPassName() const { return "Pass 1"; } > virtual bool runOnFunction(Function &F) { > return false; > } > virtual void getAnalysisUsage(AnalysisUsage &AU) const { > return; > } > }; > > struct BottomPass : public ModulePass { > public : &...
2016 Jan 22
3
LLVM - getAnalysisUsage()
I have added -debug-pass=Structure, and found the following: ModulePass Manager X Analysis Unnamed pass: implement Pass::getPassName() FunctionPass Manager Module Verifier Bitcode Writer Pass Arguments: -x -y -z FunctionPass Manager X Analysis Y Construction Z Construction Even for getAnalysis<Y>(*F) and getAnalysis<Z>(&F), all the passes X, Y, Z are executed again. In total there a...
2007 Dec 18
2
[LLVMdev] Another Pass Manager Assertion
Dear All, The attached code (which is a contrived test case) hits the following assertion: test: /home/vadve/criswell/src/llvm22/include/llvm/PassAnalysisSupport.h:226: AnalysisType& llvm::Pass::getAnalysisID(const llvm::PassInfo*, llvm::Function&) [with AnalysisType = Pass1]: Assertion `ResultPass && "getAnalysis*() called on an analysis that was not "
2018 Apr 12
2
Error: Verify if there is a pass dependency cycle
...natorTree>(); AU.setPreservesAll(); } Then I get PDT through the next statement: PostDominatorTree *PDT = &getAnalysis<PostDominatorTree>(); My code can be successfully compiled. However, I encounter the next error when I ran the code: *Pass 'Unnamed pass: implement Pass::getPassName()' is not initialized.* *Verify if there is a pass dependency cycle.* *Required Passes:* I used llvm-3.4. Any comments are welcome. Thanks! Best regards, Qiuping Yi Institute Of Software Chinese Academy of Sciences -------------- next part -------------- An HTML attachment was scrubbed......
2015 May 09
2
[LLVMdev] about MemoryDependenceAnalysis usage
Hi, I try to use MemoryDependenceAnalysis in a pass to analyse a simple function: void fct (int *restrict*restrict M, int *restrict*restrict L) { S1: M[1][1] = 1; S2: L[2][2] = 2; } When I iterate over MemoryDependenceAnalysis on the S2 statement, I get the load instruction for the first depth of the array, that’s ok. But I get also the load and store for the S1 statement. I assume the
2012 Oct 31
2
[LLVMdev] problem trying to write an LLVM register-allocation pass
...sions that I've tried). The first problem is that including this line: AU.addRequiredID(TwoAddressInstructionPassID); in method getAnalysisUsage causes a runtime error: Unable to schedule 'Eliminate PHI nodes for register allocation' required by 'Unnamed pass: implement Pass::getPassName()' Unable to schedule pass UNREACHABLE executed at ... I'm invoking the pass like this (given input file foo.c): clang -emit-llvm -O0 -c foo.c -o foo.bc opt -mem2reg foo.bc > foo.ssa mv foo.ssa foo.bc llc -load Debug/lib/P4.so -regalloc=gc foo.bc I've attached my entire file (it...
2003 Aug 13
1
[LLVMdev] Running a pass
...to be empty: // Create a list of all the registered passses static cl::list<const PassInfo*, bool, PassNameParser> PassList(cl::desc("Passes available:"), cl::ZeroOrMore); mem2reg_pass = NULL; for(It i = PassList.begin(); i != PassList.end(); i++) { std::cout << (*i)->getPassName() << endl; if(string("mem2reg") == (*i)->getPassName()) { mem2reg_pass = *i; break; } } assert(mem2reg_pass); assert(mem2reg_pass->getNormalCtor()); The first assert always fails, and none of the pass names appear on the output. So how can I obtain a point...
2017 Jun 08
4
DICompileUnit duplication in LLVM 4.0.0?
...ing.h" #include <vector> using namespace llvm; struct FunctionDuplication; namespace llvm { void initializeFunctionDuplicationPass(PassRegistry &); } struct FunctionDuplication : public ModulePass { static char ID; FunctionDuplication() : ModulePass(ID) {} virtual StringRef getPassName() const override { return "Duplicate every function"; } virtual void getAnalysisUsage(AnalysisUsage &) const override; virtual bool runOnModule(Module &) override; Function *duplicate(Module &, Function &Old, FunctionType *NewTy) const; }; void FunctionDup...
2012 Oct 20
0
[LLVMdev] Choosing an alias analyzer
...intended to help > // support "obvious" type-punning idioms. > PM.add(createTypeBasedAliasAnalysisPass()); > PM.add(createBasicAliasAnalysisPass()); > } > ------ > > My goal is to use ScalarEvolutionAliasAnalysis in MemoryDependenceAnalysis. > When I do, getPassName in MemoryDependenceAnalysis (by stepping into > getAnalysisUsage), I get > $39 = 0x399f778 "Basic Alias Analysis (stateless AA impl)" > > To switch to ScalarEvolutionAnalysis, I changed > lib/Transforms/IPO/PassManagerBuilder.cpp: addInitialAliasAnalysisPasses to > call...
2003 Dec 17
0
[LLVMdev] pass position
...r question and Chris recommended that I edit the addPassesToEmitAssembly method. Quoting him: " Basically, if you want to work on the code generator, this is what you should do: Add your pass to the addPassesToEmitAssembly method for the target of your choice, and in your pass implement the getPassName() method to provide a nice user-friendly name. " You can explicitly specify where (w.r.t other passes) your pass will execute in the addPassesToEmitAssembly method. -Anshu
2012 Mar 06
1
[LLVMdev] problem with llvm pass for call graph & CFG
...pt-2.7 0x0000000000415df3 main + 2035 7 libc.so.6 0x00007f4a89b79d8e __libc_start_main + 254 8 opt-2.7 0x0000000000409569 Stack dump: 0. Program arguments: opt-2.7 -load ../../../Release/lib/_CG_CFGGen.so -CG_CFGGen 1. Running pass 'Unnamed pass: implement Pass::getPassName()' on module '<stdin>'. Segmentation fault buse at buse-VB:~/Desktop/llvm-2.7/lib/Transforms/CG_CFG$ I couldn't diagnose the problem. Any ideas? -- Buse -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-...
2018 Apr 14
0
Error: Verify if there is a pass dependency cycle
...gt; } > > Then I get PDT through the next statement: > > PostDominatorTree *PDT = &getAnalysis<PostDominatorTree>(); > > My code can be successfully compiled. However, I encounter the next error > when I ran the code: > > *Pass 'Unnamed pass: implement Pass::getPassName()' is not initialized.* > *Verify if there is a pass dependency cycle.* > *Required Passes:* > > I used llvm-3.4. Any comments are welcome. Thanks! > > > Best regards, > > Qiuping Yi > Institute Of Software > Chinese Academy of Sciences > > ______________...