search for: printbefore

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

2010 Mar 14
3
[LLVMdev] [PATCH] Before/After IR Dumps
...on't need this #include. +// Register a pass and add options to dump the IR before and after it +// is run +typedef llvm::cl::list<const llvm::PassInfo *, bool, PassNameParser> +PassOptionList; This comment is out of date. +// Print IR out before/after specified passes +PassOptionList +PrintBefore("print-before", + llvm::cl::desc("Print IR before specified passes")); Please properly punctuate your comment. +namespace { +/// This is a utility to check whether a pass shoulkd have IR dumped +/// before it. +bool PrintBeforePass(Pass *P) { Please just mark stan...
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 "&" >
2017 Apr 07
2
llvm-pdbdump proposal
I came across a PDB that caused llvm-pdbdump to crash. I tracked it down to a missing overload for a data type in the variable printer. When I tried to provide an implementation, I discovered that there were some bugs in the existing overloads and it was easy to come up with combinations of types that weren't being dumped right. I created some test cases and tried to fix these problems but
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
...to dump the IR before and after it > +// is run > +typedef llvm::cl::list<const llvm::PassInfo *, bool, PassNameParser> > +PassOptionList; > > This comment is out of date. Not sure, I'll check. > +// Print IR out before/after specified passes > +PassOptionList > +PrintBefore("print-before", > + llvm::cl::desc("Print IR before specified passes")); > > Please properly punctuate your comment. ... > +namespace { > +/// This is a utility to check whether a pass shoulkd have IR dumped > +/// before it. > +bool PrintBefore...
2013 Dec 10
2
[LLVMdev] Switching to the new MingW ABI
.../AST/TypePrinter.cpp @@ -399,10 +399,16 @@ void TypePrinter::printMemberPointerBefore(const MemberPointerType *T, raw_ostream &OS) { IncludeStrongLifetimeRAII Strong(Policy); SaveAndRestore<bool> NonEmptyPH(HasEmptyPlaceHolder, false); - printBefore(T->getPointeeType(), OS); + + // Suppress the printing of implied calling conventions. + QualType Pointee = T->getPointeeType(); + if (const AdjustedType *AT = dyn_cast<AdjustedType>(Pointee)) + Pointee = AT->getOriginalType(); + + printBefore(Pointee, OS); // Handle things...
2010 Mar 26
0
[LLVMdev] [PATCH] Before/After IR Dumps
...nt()); + delete Printer; + return false; + } This can just call print on the function, no need to create the pass. It would be even better to just print the blocks in the loop or print "not implemented yet" though. +// Print IR out before/after specified passes. +PassOptionList +PrintBefore("print-before", + llvm::cl::desc("Print IR before specified passes")); + +PassOptionList +PrintAfter("print-after", + llvm::cl::desc("Print IR after specified passes")); + +cl::opt<bool> +PrintBeforeAll("print-before-all",...
2013 Dec 10
0
[LLVMdev] Switching to the new MingW ABI
On Mon, Dec 9, 2013 at 5:18 PM, Rafael EspĂ­ndola <rafael.espindola at gmail.com> wrote: > Mingw switched abis with the release of gcc 4.7 > (http://gcc.gnu.org/gcc-4.7/changes.html). The main change is that now > mingw (like msvc) given thiscall calling convention to methods by > default. > > I think the last bug blocking us to support the new abi has just been > fixed.
2010 Mar 17
4
[LLVMdev] [PATCH] Before/After IR Dumps
On Monday 15 March 2010 13:45:14 David Greene wrote: > On Sunday 14 March 2010 18:32:35 Chris Lattner wrote: > > This is much better than the first iteration but still has many issues. I believe I've addressed all your points with this patch except I didn't use StringRef. It doesn't appear to be useful since createPrinterPass will be sent a const std::string & and will
2010 Mar 29
2
[LLVMdev] [PATCH] Before/After IR Dumps
...e; > + } > > This can just call print on the function, no need to create the pass. It > would be even better to just print the blocks in the loop or print "not > implemented yet" though. Ok. > +// Print IR out before/after specified passes. > +PassOptionList > +PrintBefore("print-before", > + llvm::cl::desc("Print IR before specified passes")); > + > +PassOptionList > +PrintAfter("print-after", > + llvm::cl::desc("Print IR after specified passes")); > + > +cl::opt<bool> > +Prin...
2013 Dec 10
10
[LLVMdev] Switching to the new MingW ABI
Mingw switched abis with the release of gcc 4.7 (http://gcc.gnu.org/gcc-4.7/changes.html). The main change is that now mingw (like msvc) given thiscall calling convention to methods by default. I think the last bug blocking us to support the new abi has just been fixed. The question now is how to switch. The attached patches simply switch llvm and clang to the new ABI. This is similar to what
2017 Jun 21
6
RFC: Cleaning up the Itanium demangler
...uot;GCLock"}, {"_ZL7GCNames", "GCNames"}, {"_ZL10GCNamePool", "GCNamePool"}, {"_ZL13GlobalContext", "GlobalContext"}, {"_ZN4llvmL13PassDebuggingE", "llvm::PassDebugging"}, {"_ZN4llvmL11PrintBeforeE", "llvm::PrintBefore"}, {"_ZN4llvmL10PrintAfterE", "llvm::PrintAfter"}, {"_ZN4llvmL14PrintBeforeAllE", "llvm::PrintBeforeAll"}, {"_ZN4llvmL13PrintAfterAllE", "llvm::PrintAfterAll"}, {"_ZN12_GLOBAL__...