summaryrefslogtreecommitdiff
path: root/lib/Transforms
diff options
context:
space:
mode:
authorGordon Henriksen <gordonhenriksen@mac.com>2007-11-04 16:15:04 +0000
committerGordon Henriksen <gordonhenriksen@mac.com>2007-11-04 16:15:04 +0000
commitc86b67742a3298c0a5a715b57a64f11107b8a3f2 (patch)
tree016039c25c32162e4a55beda22cdced04819ab2f /lib/Transforms
parent5544e64765c33afe15b9f427c355f6876ee4299f (diff)
downloadllvm-c86b67742a3298c0a5a715b57a64f11107b8a3f2.tar.gz
llvm-c86b67742a3298c0a5a715b57a64f11107b8a3f2.tar.bz2
llvm-c86b67742a3298c0a5a715b57a64f11107b8a3f2.tar.xz
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/Transforms')
-rw-r--r--lib/Transforms/IPO/StripSymbols.cpp20
-rw-r--r--lib/Transforms/Scalar/LowerPacked.cpp4
-rw-r--r--lib/Transforms/Scalar/SimplifyCFG.cpp10
-rw-r--r--lib/Transforms/Utils/LowerSwitch.cpp6
-rw-r--r--lib/Transforms/Utils/PromoteMemoryToRegister.cpp2
5 files changed, 20 insertions, 22 deletions
diff --git a/lib/Transforms/IPO/StripSymbols.cpp b/lib/Transforms/IPO/StripSymbols.cpp
index aaecc2f252..ee60ba2913 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 5e4d9eb89a..c91852b9e5 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 6b47ef7aae..5f0ab19b5e 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 3c08edf0c6..dbf3f65d92 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 c32457d670..c84da505c2 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.