summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/ConstantFolding.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-09-10 23:07:18 +0000
committerDan Gohman <gohman@apple.com>2009-09-10 23:07:18 +0000
commit91d598de5c518b822910007e17e63af0dffba15e (patch)
tree0746d955f51fa30872556e75a5920292b35b3031 /llvm/lib/Analysis/ConstantFolding.cpp
parent8c10ff8f1354543201b96d8246d403d66fbef934 (diff)
downloadbcm5719-llvm-91d598de5c518b822910007e17e63af0dffba15e.tar.gz
bcm5719-llvm-91d598de5c518b822910007e17e63af0dffba15e.zip
Give these files top-level comments that describe the current code.
llvm-svn: 81473
Diffstat (limited to 'llvm/lib/Analysis/ConstantFolding.cpp')
-rw-r--r--llvm/lib/Analysis/ConstantFolding.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/llvm/lib/Analysis/ConstantFolding.cpp b/llvm/lib/Analysis/ConstantFolding.cpp
index 109eaad4584..f07d03aa0f3 100644
--- a/llvm/lib/Analysis/ConstantFolding.cpp
+++ b/llvm/lib/Analysis/ConstantFolding.cpp
@@ -1,4 +1,4 @@
-//===-- ConstantFolding.cpp - Analyze constant folding possibilities ------===//
+//===-- ConstantFolding.cpp - Fold instructions into constants ------------===//
//
// The LLVM Compiler Infrastructure
//
@@ -7,8 +7,12 @@
//
//===----------------------------------------------------------------------===//
//
-// This family of functions determines the possibility of performing constant
-// folding.
+// This file defines routines for folding instructions into constants.
+//
+// Also, to supplement the basic VMCore ConstantExpr simplifications,
+// this file defines some additional folding routines that can make use of
+// TargetData information. These functions cannot go in VMCore due to library
+// dependency issues.
//
//===----------------------------------------------------------------------===//
OpenPOWER on IntegriCloud