search for: getpassargument

Displaying 12 results from an estimated 12 matches for "getpassargument".

2010 Mar 14
3
[LLVMdev] [PATCH] Before/After IR Dumps
...est the entire function, use an early return like this: if (PrintBeforeAll) return true; + for (unsigned i = 0; i < PrintBefore.size(); ++i) { Don't evaluate PrintBefore.size() every time through the loop. + if (PassInf && P->getPassInfo()) + if (PassInf->getPassArgument() == + P->getPassInfo()->getPassArgument()) { + PrintBeforeThis = true; + break; + } + } + return PrintBeforeThis; +} Instead of using break with a variable, just "return true;" out of the loop. Please merge and factor PrintBeforePass/Print...
2007 Aug 10
3
[LLVMdev] Choosing Alias Analysis
...gt; > > // PassList(cl::desc("LLVM optimizations available:")); // // Only the -anders_aa and -dse options will be available to the user. // template<const char *Args> class PassArgFilter { public: bool operator()(const PassInfo &P) const { return std::strstr(Args, P.getPassArgument()) != 0; } };
2010 Mar 12
0
[LLVMdev] [PATCH] Before/After IR Dumps
On Friday 12 March 2010 08:13:05 Kalle Raiskila wrote: > David Greene wrote: > > Here's a rework using PassManager as Chris suggested. Comments? > > Tried this second patch with the svn version 97812 (the one the patch is > made against), but it doesn't compile: > "llvm/include/llvm/Pass.h:127: Error: expected unqualified-id before "&" >
2010 Mar 12
2
[LLVMdev] [PATCH] Before/After IR Dumps
David Greene wrote: > Here's a rework using PassManager as Chris suggested. Comments? Tried this second patch with the svn version 97812 (the one the patch is made against), but it doesn't compile: "llvm/include/llvm/Pass.h:127: Error: expected unqualified-id before "&" token" Seems raw_ostream is forward declared but not defined (adding a missing #include
2010 Mar 15
0
[LLVMdev] [PATCH] Before/After IR Dumps
...an early return like this: Ok. > + for (unsigned i = 0; i < PrintBefore.size(); ++i) { > Don't evaluate PrintBefore.size() every time through the loop. Ok, but that's a bit nitpicky... :) > + if (PassInf && P->getPassInfo()) > + if (PassInf->getPassArgument() == > + P->getPassInfo()->getPassArgument()) { > + PrintBeforeThis = true; > + break; > + } > + } > + return PrintBeforeThis; > +} > > Instead of using break with a variable, just "return true;" out of the > loop...
2007 Aug 10
0
[LLVMdev] Choosing Alias Analysis
On Friday 10 August 2007 15:12, David Greene wrote: > Perhaps an easier way is to just expose the -simple-register-coalescing > and -conservative-register-coalescing options to the user, but I don't know > how to do that on an individual pass bases. opt just jams then all in with > PassNameParser. PassNameParser.h makes reference to a > FilteredPassNameParser that sounds
2006 Aug 18
2
[LLVMdev] Weird behavior of llvm-ld
...} else { // Normal pass. Print argument information... // Print out arguments for registered passes that are _optimizations_ if (const PassInfo *PI = P->getPassInfo()) if (PI->getPassType() & PassInfo::Optimization) std::cerr << " -" << PI->getPassArgument(); } } While I could verify (using GDB/DDD) that my passes were loaded perfectly in load_weaver_pass, once they got on the line marked with ERROR the pointer to their vtable suddenly was inaccessible. This made dynamic_cast crash. The hardcoded passes, loaded in before mine by llvm-ld, had n...
2006 Aug 16
0
[LLVMdev] Weird behavior of llvm-ld
Hi Bram, On Wed, 2006-08-16 at 22:41 +0200, Bram Adams wrote: > Op 16-aug-06, om 18:59 heeft Reid Spencer het volgende geschreven: > Are there any workarounds (using other LLVM-tools) to link a native > library with LLVM-bytecode? Yes. The general approach is to use llvm-as, llvm-dis, opt and llvm-link to work with the bytecode. You can also use gccld and gccas to run some canned
2006 Aug 16
2
[LLVMdev] Weird behavior of llvm-ld
Hi, Op 16-aug-06, om 18:59 heeft Reid Spencer het volgende geschreven: >> llvm-ld: warning: Supposed library 'SOME_OTHER_LIB' isn't a library. > > The -l option is used to link libraries into the resulting executable. > I'm hoping "SOME_OTHER_LIB" is not the actual name and you're just > paraphrasing the actual command line. Note that native
2006 Aug 20
0
[LLVMdev] Weird behavior of llvm-ld
...Print argument information... > // Print out arguments for registered passes that are > _optimizations_ > if (const PassInfo *PI = P->getPassInfo()) > if (PI->getPassType() & PassInfo::Optimization) > std::cerr << " -" << PI->getPassArgument(); > } > } > > While I could verify (using GDB/DDD) that my passes were loaded > perfectly in load_weaver_pass, once they got on the line marked with > ERROR the pointer to their vtable suddenly was inaccessible. This made > dynamic_cast crash. The hardcoded passes, loaded i...
2007 Aug 10
2
[LLVMdev] Choosing Alias Analysis
On Friday 10 August 2007 13:54, Devang Patel wrote: > > Or is it sufficient than an Andersen's object is constructed and > > that that > > constitutes "availability?" > > What do you mean by "available" ? You are using quotes :) "Available" as referenced by PassSupport.h: /// RegisterAnalysisGroup - Register a Pass as a member of an
2015 Feb 24
2
[LLVMdev] Removing contention in PassRegistry accesses to speed up compiles
...PassRegistryImpl::MapType::iterator I = Impl->PassInfoMap.find(PI.getTypeInfo()); assert(I != Impl->PassInfoMap.end() && "Pass registered but not in map!"); - + // Remove pass from the map. Impl->PassInfoMap.erase(I); Impl->PassInfoStringMap.erase(PI.getPassArgument()); } void PassRegistry::enumerateWith(PassRegistrationListener *L) { - sys::SmartScopedLock<true> Guard(*Lock); PassRegistryImpl *Impl = static_cast<PassRegistryImpl*>(getImpl()); for (PassRegistryImpl::MapType::const_iterator I = Impl->PassInfoMap.begin(), E = Im...