diff options
author | Gordon Henriksen <gordonhenriksen@mac.com> | 2007-11-04 16:15:04 +0000 |
---|---|---|
committer | Gordon Henriksen <gordonhenriksen@mac.com> | 2007-11-04 16:15:04 +0000 |
commit | 79ed5875918f9d8d2780f84b532f3b89ef2b4a6a (patch) | |
tree | 016039c25c32162e4a55beda22cdced04819ab2f /lib | |
parent | 474ee02e13f56e77c0e311253752fac7c675552c (diff) | |
download | external_llvm-79ed5875918f9d8d2780f84b532f3b89ef2b4a6a.zip external_llvm-79ed5875918f9d8d2780f84b532f3b89ef2b4a6a.tar.gz external_llvm-79ed5875918f9d8d2780f84b532f3b89ef2b4a6a.tar.bz2 |
Finishing initial docs for all transformations in Passes.html.
Also cleaned up some comments in source files.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43674 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Transforms/IPO/StripSymbols.cpp | 20 | ||||
-rw-r--r-- | lib/Transforms/Scalar/LowerPacked.cpp | 4 | ||||
-rw-r--r-- | lib/Transforms/Scalar/SimplifyCFG.cpp | 10 | ||||
-rw-r--r-- | lib/Transforms/Utils/LowerSwitch.cpp | 6 | ||||
-rw-r--r-- | lib/Transforms/Utils/PromoteMemoryToRegister.cpp | 2 |
5 files changed, 20 insertions, 22 deletions
diff --git a/lib/Transforms/IPO/StripSymbols.cpp b/lib/Transforms/IPO/StripSymbols.cpp index aaecc2f..ee60ba2 100644 --- a/lib/Transforms/IPO/StripSymbols.cpp +++ b/lib/Transforms/IPO/StripSymbols.cpp @@ -7,18 +7,16 @@ // //===----------------------------------------------------------------------===// // -// This file implements stripping symbols out of symbol tables. +// The StripSymbols transformation implements code stripping. Specifically, it +// can delete: +// +// * names for virtual registers +// * symbols for internal globals and functions +// * debug information // -// Specifically, this allows you to strip all of the symbols out of: -// * All functions in a module -// * All non-essential symbols in a module (all function symbols + all module -// scope symbols) -// * Debug information. -// -// Notice that: -// * This pass makes code much less readable, so it should only be used in -// situations where the 'strip' utility would be used (such as reducing -// code size, and making it harder to reverse engineer code). +// Note that this transformation makes code much less readable, so it should +// only be used in situations where the 'strip' utility would be used, such as +// reducing code size or making it harder to reverse engineer code. // //===----------------------------------------------------------------------===// diff --git a/lib/Transforms/Scalar/LowerPacked.cpp b/lib/Transforms/Scalar/LowerPacked.cpp index 5e4d9eb..c91852b 100644 --- a/lib/Transforms/Scalar/LowerPacked.cpp +++ b/lib/Transforms/Scalar/LowerPacked.cpp @@ -7,8 +7,8 @@ // //===----------------------------------------------------------------------===// // -// This file implements lowering Packed datatypes into more primitive -// Packed datatypes, and finally to scalar operations. +// This file implements lowering vector datatypes into more primitive +// vector datatypes, and finally to scalar operations. // //===----------------------------------------------------------------------===// diff --git a/lib/Transforms/Scalar/SimplifyCFG.cpp b/lib/Transforms/Scalar/SimplifyCFG.cpp index 6b47ef7..5f0ab19 100644 --- a/lib/Transforms/Scalar/SimplifyCFG.cpp +++ b/lib/Transforms/Scalar/SimplifyCFG.cpp @@ -8,13 +8,13 @@ //===----------------------------------------------------------------------===// // // This file implements dead code elimination and basic block merging. +// Specifically: // -// Specifically, this: -// * removes basic blocks with no predecessors -// * merges a basic block into its predecessor if there is only one and the +// * Removes basic blocks with no predecessors. +// * Merges a basic block into its predecessor if there is only one and the // predecessor only has one successor. -// * Eliminates PHI nodes for basic blocks with a single predecessor -// * Eliminates a basic block that only contains an unconditional branch +// * Eliminates PHI nodes for basic blocks with a single predecessor. +// * Eliminates a basic block that only contains an unconditional branch. // //===----------------------------------------------------------------------===// diff --git a/lib/Transforms/Utils/LowerSwitch.cpp b/lib/Transforms/Utils/LowerSwitch.cpp index 3c08edf..dbf3f65 100644 --- a/lib/Transforms/Utils/LowerSwitch.cpp +++ b/lib/Transforms/Utils/LowerSwitch.cpp @@ -7,9 +7,9 @@ // //===----------------------------------------------------------------------===// // -// The LowerSwitch transformation rewrites switch statements with a sequence of -// branches, which allows targets to get away with not implementing the switch -// statement until it is convenient. +// The LowerSwitch transformation rewrites switch instructions with a sequence +// of branches, which allows targets to get away with not implementing the +// switch instruction until it is convenient. // //===----------------------------------------------------------------------===// diff --git a/lib/Transforms/Utils/PromoteMemoryToRegister.cpp b/lib/Transforms/Utils/PromoteMemoryToRegister.cpp index c32457d..c84da50 100644 --- a/lib/Transforms/Utils/PromoteMemoryToRegister.cpp +++ b/lib/Transforms/Utils/PromoteMemoryToRegister.cpp @@ -7,7 +7,7 @@ // //===----------------------------------------------------------------------===// // -// This file promote memory references to be register references. It promotes +// This file promotes memory references to be register references. It promotes // alloca instructions which only have loads and stores as uses. An alloca is // transformed by using dominator frontiers to place PHI nodes, then traversing // the function in depth-first order to rewrite loads and stores as appropriate. |