Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Get rid of static constructors for pass registration. Instead, every pass ↵ | Owen Anderson | 2010-10-19 | 1 | -0/+2 |
| | | | | | | | | | | | | | | | | | exposes an initializeMyPassFunction(), which must be called in the pass's constructor. This function uses static dependency declarations to recursively initialize the pass's dependencies. Clients that only create passes through the createFooPass() APIs will require no changes. Clients that want to use the CommandLine options for passes will need to manually call the appropriate initialization functions in PassInitialization.h before parsing commandline arguments. I have tested this with all standard configurations of clang and llvm-gcc on Darwin. It is possible that there are problems with the static dependencies that will only be visible with non-standard options. If you encounter any crash in pass registration/creation, please send the testcase to me directly. llvm-svn: 116820 | ||||
* | Now with fewer extraneous semicolons! | Owen Anderson | 2010-10-07 | 1 | -1/+1 |
| | | | | llvm-svn: 115996 | ||||
* | Reapply r110396, with fixes to appease the Linux buildbot gods. | Owen Anderson | 2010-08-06 | 1 | -2/+2 |
| | | | | llvm-svn: 110460 | ||||
* | Revert r110396 to fix buildbots. | Owen Anderson | 2010-08-06 | 1 | -2/+2 |
| | | | | llvm-svn: 110410 | ||||
* | Don't use PassInfo* as a type identifier for passes. Instead, use the ↵ | Owen Anderson | 2010-08-05 | 1 | -2/+2 |
| | | | | | | | | address of the static ID member as the sole unique type identifier. Clean up APIs related to this change. llvm-svn: 110396 | ||||
* | Fix batch of converting RegisterPass<> to INTIALIZE_PASS(). | Owen Anderson | 2010-07-21 | 1 | -2/+2 |
| | | | | llvm-svn: 109045 | ||||
* | don't internalize available_externally functions, they are | Chris Lattner | 2010-04-03 | 1 | -0/+4 |
| | | | | | | really just declarations. This is related to PR6524 llvm-svn: 100269 | ||||
* | Change errs() to dbgs(). | David Greene | 2010-01-05 | 1 | -3/+3 |
| | | | | llvm-svn: 92631 | ||||
* | Remove includes of Support/Compiler.h that are no longer needed after the | Nick Lewycky | 2009-10-25 | 1 | -1/+0 |
| | | | | | | VISIBILITY_HIDDEN removal. llvm-svn: 85043 | ||||
* | Remove VISIBILITY_HIDDEN from class/struct found inside anonymous namespaces. | Nick Lewycky | 2009-10-25 | 1 | -1/+1 |
| | | | | | | | Chris claims we should never have visibility_hidden inside any .cpp file but that's still not true even after this commit. llvm-svn: 85042 | ||||
* | eliminate uses of cerr() | Chris Lattner | 2009-08-23 | 1 | -1/+1 |
| | | | | llvm-svn: 79834 | ||||
* | More migration to raw_ostream, the water has dried up around the iostream hole. | Daniel Dunbar | 2009-07-25 | 1 | -3/+4 |
| | | | | | | | | | | - Some clients which used DOUT have moved to DEBUG. We are deprecating the "magic" DOUT behavior which avoided calling printing functions when the statement was disabled. In addition to being unnecessary magic, it had the downside of leaving code in -Asserts builds, and of hiding potentially unnecessary computations. llvm-svn: 77019 | ||||
* | Get rid of the Pass+Context magic. | Owen Anderson | 2009-07-22 | 1 | -2/+0 |
| | | | | llvm-svn: 76702 | ||||
* | implement a new magic global "llvm.compiler.used" which is like llvm.used, but | Chris Lattner | 2009-07-20 | 1 | -0/+2 |
| | | | | | | doesn't cause ".no_dead_strip" to be emitted on darwin. llvm-svn: 76399 | ||||
* | Move the ConstantInt uniquing table into LLVMContextImpl. This exposed a ↵ | Owen Anderson | 2009-07-16 | 1 | -0/+2 |
| | | | | | | | | number of issues in our current context-passing stuff, which is also fixed here llvm-svn: 76089 | ||||
* | Rename getAnalysisToUpdate to getAnalysisIfAvailable. | Duncan Sands | 2009-01-28 | 1 | -1/+1 |
| | | | | llvm-svn: 63198 | ||||
* | Add the private linkage. | Rafael Espindola | 2009-01-15 | 1 | -2/+4 |
| | | | | llvm-svn: 62279 | ||||
* | Teach the internalize pass to also internalize | Duncan Sands | 2009-01-05 | 1 | -0/+12 |
| | | | | | | global aliases. llvm-svn: 61754 | ||||
* | Remove trailing spaces. | Duncan Sands | 2009-01-05 | 1 | -10/+10 |
| | | | | llvm-svn: 61743 | ||||
* | Teach internalize to preserve the callgraph. | Duncan Sands | 2008-10-03 | 1 | -0/+7 |
| | | | | | | Why? Because it was there! llvm-svn: 56996 | ||||
* | revert the addition of Preverves(CallGraph), per Duncan's comments | Nuno Lopes | 2008-10-01 | 1 | -2/+0 |
| | | | | llvm-svn: 56917 | ||||
* | add preserversCFG() + preservers(CallGraph) | Nuno Lopes | 2008-09-30 | 1 | -0/+6 |
| | | | | llvm-svn: 56887 | ||||
* | Tidy up several unbeseeming casts from pointer to intptr_t. | Dan Gohman | 2008-09-04 | 1 | -2/+2 |
| | | | | llvm-svn: 55779 | ||||
* | Rename a few variables to be more consistent. | Matthijs Kooijman | 2008-06-24 | 1 | -3/+3 |
| | | | | llvm-svn: 52672 | ||||
* | Simplify internalize pass. Add test case. | Devang Patel | 2008-05-14 | 1 | -19/+21 |
| | | | | | | Patch by Matthijs Kooijman! llvm-svn: 51114 | ||||
* | Clean up the use of static and anonymous namespaces. This turned up | Dan Gohman | 2008-05-13 | 1 | -14/+15 |
| | | | | | | | several things that were neither in an anonymous namespace nor static but not intended to be global. llvm-svn: 51017 | ||||
* | Make several variable declarations static. | Dan Gohman | 2008-05-06 | 1 | -2/+2 |
| | | | | llvm-svn: 50696 | ||||
* | Remove attribution from file headers, per discussion on llvmdev. | Chris Lattner | 2007-12-29 | 1 | -2/+2 |
| | | | | llvm-svn: 45418 | ||||
* | Fix PR1719, by not marking llvm.global.annotations internal. | Tanya Lattner | 2007-10-03 | 1 | -0/+1 |
| | | | | llvm-svn: 42578 | ||||
* | Fix PR1719, by not marking llvm.noinline internal. | Chris Lattner | 2007-10-03 | 1 | -0/+1 |
| | | | | llvm-svn: 42565 | ||||
* | More explicit keywords. | Dan Gohman | 2007-08-01 | 1 | -2/+2 |
| | | | | llvm-svn: 40673 | ||||
* | simplify this code and fix PR1493, now that llvm-gcc3 is dead. | Chris Lattner | 2007-06-06 | 1 | -17/+2 |
| | | | | llvm-svn: 37478 | ||||
* | Fix typo in comment. | Nick Lewycky | 2007-05-06 | 1 | -1/+1 |
| | | | | llvm-svn: 36873 | ||||
* | Drop 'const' | Devang Patel | 2007-05-03 | 1 | -2/+2 |
| | | | | llvm-svn: 36662 | ||||
* | Use 'static const char' instead of 'static const int'. | Devang Patel | 2007-05-02 | 1 | -2/+2 |
| | | | | | | | Due to darwin gcc bug, one version of darwin linker coalesces static const int, which defauts PassID based pass identification. llvm-svn: 36652 | ||||
* | Do not use typeinfo to identify pass in pass manager. | Devang Patel | 2007-05-01 | 1 | -2/+4 |
| | | | | llvm-svn: 36632 | ||||
* | Removed tabs everywhere except autogenerated & external files. Add make | Anton Korobeynikov | 2007-04-16 | 1 | -1/+1 |
| | | | | | | target for tabs checking. llvm-svn: 36146 | ||||
* | Apply the VISIBILITY_HIDDEN field to the remaining anonymous classes in | Reid Spencer | 2007-02-05 | 1 | -1/+2 |
| | | | | | | | the Transforms library. This reduces debug library size by 132 KB, debug binary size by 376 KB, and reduces link time for llvm tools slightly. llvm-svn: 33939 | ||||
* | For PR411: | Reid Spencer | 2007-02-05 | 1 | -1/+1 |
| | | | | | | | | Adjust to changes in Module interface: getMainFunction() -> getFunction("main") getNamedFunction(X) -> getFunction(X) llvm-svn: 33922 | ||||
* | For PR1136: Rename GlobalVariable::isExternal as isDeclaration to avoid | Reid Spencer | 2007-01-30 | 1 | -3/+3 |
| | | | | | | confusion with external linkage types. llvm-svn: 33663 | ||||
* | Change the MachineDebugInfo to MachineModuleInfo to better reflect usage | Jim Laskey | 2007-01-26 | 1 | -2/+2 |
| | | | | | | for debugging and exception handling. llvm-svn: 33550 | ||||
* | Eliminate static ctors due to Statistic objects | Chris Lattner | 2006-12-19 | 1 | -2/+4 |
| | | | | llvm-svn: 32693 | ||||
* | Changed llvm_ostream et all to OStream. llvm_cerr, llvm_cout, llvm_null, are | Bill Wendling | 2006-12-07 | 1 | -2/+1 |
| | | | | | | now cerr, cout, and NullStream resp. llvm-svn: 32298 | ||||
* | Detemplatize the Statistic class. The only type it is instantiated with | Chris Lattner | 2006-12-06 | 1 | -2/+2 |
| | | | | | | is 'unsigned'. llvm-svn: 32279 | ||||
* | Replace #include <iostream> with llvm_* streams. | Bill Wendling | 2006-11-26 | 1 | -5/+4 |
| | | | | llvm-svn: 31924 | ||||
* | Initialize DontInternalize. | Devang Patel | 2006-09-13 | 1 | -1/+2 |
| | | | | llvm-svn: 30281 | ||||
* | eliminate RegisterOpt. It does the same thing as RegisterPass. | Chris Lattner | 2006-08-27 | 1 | -1/+1 |
| | | | | llvm-svn: 29925 | ||||
* | Make it fit into 80 cols. | Devang Patel | 2006-07-20 | 1 | -2/+2 |
| | | | | llvm-svn: 29223 | ||||
* | Add new constructor to accept vector of exported names while creating | Devang Patel | 2006-07-20 | 1 | -0/+12 |
| | | | | | | InternalizePass. llvm-svn: 29222 | ||||
* | Switch to using a numeric id for anchors. | Jim Laskey | 2006-03-07 | 1 | -3/+4 |
| | | | | llvm-svn: 26598 |