[llvm-commits] CVS: llvm/include/llvm/Support/AIXDataTypesFix.h Annotation.h CFG.h CallSite.h Casting.h CommandLine.h Compressor.h ConstantRange.h DOTGraphTraits.h Debug.h DynamicLinker.h ELF.h FileUtilities.h GetElementPtrTypeIterator.h GraphWriter.h InstIterator.h InstVisitor.h LeakDetector.h Mangler.h MathExtras.h PassNameParser.h PatternMatch.h PluginLoader.h SlowOperationInformer.h StableBasicBlockNumbering.h SystemUtils.h ThreadSupport-NoSupport.h ThreadSupport-PThreads.h Timer.h ToolRunner.h TypeInfo.h type_traits.h
Misha Brukman
brukman at cs.uiuc.edu
Thu Apr 21 13:45:10 PDT 2005
Changes in directory llvm/include/llvm/Support:
AIXDataTypesFix.h updated: 1.2 -> 1.3
Annotation.h updated: 1.17 -> 1.18
CFG.h updated: 1.23 -> 1.24
CallSite.h updated: 1.17 -> 1.18
Casting.h updated: 1.13 -> 1.14
CommandLine.h updated: 1.41 -> 1.42
Compressor.h updated: 1.5 -> 1.6
ConstantRange.h updated: 1.8 -> 1.9
DOTGraphTraits.h updated: 1.12 -> 1.13
Debug.h updated: 1.5 -> 1.6
DynamicLinker.h updated: 1.4 -> 1.5
ELF.h updated: 1.5 -> 1.6
FileUtilities.h updated: 1.30 -> 1.31
GetElementPtrTypeIterator.h updated: 1.8 -> 1.9
GraphWriter.h updated: 1.22 -> 1.23
InstIterator.h updated: 1.10 -> 1.11
InstVisitor.h updated: 1.34 -> 1.35
LeakDetector.h updated: 1.5 -> 1.6
Mangler.h updated: 1.12 -> 1.13
MathExtras.h updated: 1.15 -> 1.16
PassNameParser.h updated: 1.10 -> 1.11
PatternMatch.h updated: 1.4 -> 1.5
PluginLoader.h updated: 1.2 -> 1.3
SlowOperationInformer.h updated: 1.4 -> 1.5
StableBasicBlockNumbering.h updated: 1.1 -> 1.2
SystemUtils.h updated: 1.20 -> 1.21
ThreadSupport-NoSupport.h updated: 1.2 -> 1.3
ThreadSupport-PThreads.h updated: 1.4 -> 1.5
Timer.h updated: 1.17 -> 1.18
ToolRunner.h updated: 1.18 -> 1.19
TypeInfo.h updated: 1.7 -> 1.8
type_traits.h updated: 1.2 -> 1.3
---
Log message:
Remove trailing whitespace
---
Diffs of the changes: (+216 -216)
AIXDataTypesFix.h | 4 +-
Annotation.h | 12 ++++----
CFG.h | 64 ++++++++++++++++++++++----------------------
CallSite.h | 4 +-
Casting.h | 14 ++++-----
CommandLine.h | 46 +++++++++++++++----------------
Compressor.h | 42 ++++++++++++++--------------
ConstantRange.h | 16 +++++------
DOTGraphTraits.h | 4 +-
Debug.h | 4 +-
DynamicLinker.h | 6 ++--
ELF.h | 18 ++++++------
FileUtilities.h | 6 ++--
GetElementPtrTypeIterator.h | 14 ++++-----
GraphWriter.h | 24 ++++++++--------
InstIterator.h | 38 +++++++++++++-------------
InstVisitor.h | 4 +-
LeakDetector.h | 6 ++--
Mangler.h | 6 ++--
MathExtras.h | 4 +-
PassNameParser.h | 8 ++---
PatternMatch.h | 12 ++++----
PluginLoader.h | 4 +-
SlowOperationInformer.h | 8 ++---
StableBasicBlockNumbering.h | 4 +-
SystemUtils.h | 8 ++---
ThreadSupport-NoSupport.h | 4 +-
ThreadSupport-PThreads.h | 6 ++--
Timer.h | 6 ++--
ToolRunner.h | 12 ++++----
TypeInfo.h | 10 +++---
type_traits.h | 14 ++++-----
32 files changed, 216 insertions(+), 216 deletions(-)
Index: llvm/include/llvm/Support/AIXDataTypesFix.h
diff -u llvm/include/llvm/Support/AIXDataTypesFix.h:1.2 llvm/include/llvm/Support/AIXDataTypesFix.h:1.3
--- llvm/include/llvm/Support/AIXDataTypesFix.h:1.2 Tue Oct 26 11:19:57 2004
+++ llvm/include/llvm/Support/AIXDataTypesFix.h Thu Apr 21 15:44:59 2005
@@ -1,10 +1,10 @@
//===-- llvm/Support/AIXDataTypesFix.h - Fix datatype defs ------*- C++ -*-===//
-//
+//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
-//
+//
//===----------------------------------------------------------------------===//
//
// This file overrides default system-defined types and limits which cannot be
Index: llvm/include/llvm/Support/Annotation.h
diff -u llvm/include/llvm/Support/Annotation.h:1.17 llvm/include/llvm/Support/Annotation.h:1.18
--- llvm/include/llvm/Support/Annotation.h:1.17 Wed Oct 27 11:14:51 2004
+++ llvm/include/llvm/Support/Annotation.h Thu Apr 21 15:44:59 2005
@@ -1,10 +1,10 @@
//===-- llvm/Support/Annotation.h - Annotation classes ----------*- C++ -*-===//
-//
+//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
-//
+//
//===----------------------------------------------------------------------===//
//
// This file contains the declarations for two classes: Annotation & Annotable.
@@ -81,7 +81,7 @@
//===----------------------------------------------------------------------===//
//
// Annotable - This class is used as a base class for all objects that would
-// like to have annotation capability. One notable subclass is Value, which
+// like to have annotation capability. One notable subclass is Value, which
// means annotations can be attached to almost everything in LLVM.
//
// Annotable objects keep their annotation list sorted as annotations are
@@ -157,13 +157,13 @@
// one-to-one mapping between string Annotation names and Annotation ID numbers.
//
// Compared to the rest of the Annotation system, these mapping methods are
-// relatively slow, so they should be avoided by locally caching Annotation
+// relatively slow, so they should be avoided by locally caching Annotation
// ID #'s. These methods are safe to call at any time, even by static ctors, so
// they should be used by static ctors most of the time.
//
// This class also provides support for annotations that are created on demand
// by the Annotable::getOrCreateAnnotation method. To get this to work, simply
-// register an annotation handler
+// register an annotation handler
//
struct AnnotationManager {
typedef Annotation *(*Factory)(AnnotationID, const Annotable *, void*);
@@ -183,7 +183,7 @@
// Annotation creation on demand support...
// registerAnnotationFactory - This method is used to register a callback
- // function used to create an annotation on demand if it is needed by the
+ // function used to create an annotation on demand if it is needed by the
// Annotable::getOrCreateAnnotation method.
//
static void registerAnnotationFactory(AnnotationID ID, Factory Func,
Index: llvm/include/llvm/Support/CFG.h
diff -u llvm/include/llvm/Support/CFG.h:1.23 llvm/include/llvm/Support/CFG.h:1.24
--- llvm/include/llvm/Support/CFG.h:1.23 Mon Jan 31 19:22:06 2005
+++ llvm/include/llvm/Support/CFG.h Thu Apr 21 15:44:59 2005
@@ -1,10 +1,10 @@
//===-- llvm/Support/CFG.h - Process LLVM structures as graphs --*- C++ -*-===//
-//
+//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
-//
+//
//===----------------------------------------------------------------------===//
//
// This file defines specializations of GraphTraits that allow Function and
@@ -34,40 +34,40 @@
public:
typedef PredIterator<_Ptr,_USE_iterator> _Self;
typedef typename super::pointer pointer;
-
+
inline void advancePastNonTerminators() {
// Loop to ignore non terminator uses (for example PHI nodes)...
while (It != BB->use_end() && !isa<TerminatorInst>(*It))
++It;
}
-
+
inline PredIterator(_Ptr *bb) : BB(bb), It(bb->use_begin()) {
advancePastNonTerminators();
}
inline PredIterator(_Ptr *bb, bool) : BB(bb), It(bb->use_end()) {}
-
+
inline bool operator==(const _Self& x) const { return It == x.It; }
inline bool operator!=(const _Self& x) const { return !operator==(x); }
-
- inline pointer operator*() const {
+
+ inline pointer operator*() const {
assert(It != BB->use_end() && "pred_iterator out of range!");
- return cast<TerminatorInst>(*It)->getParent();
+ return cast<TerminatorInst>(*It)->getParent();
}
inline pointer *operator->() const { return &(operator*()); }
-
+
inline _Self& operator++() { // Preincrement
assert(It != BB->use_end() && "pred_iterator out of range!");
++It; advancePastNonTerminators();
- return *this;
+ return *this;
}
-
+
inline _Self operator++(int) { // Postincrement
- _Self tmp = *this; ++*this; return tmp;
+ _Self tmp = *this; ++*this; return tmp;
}
};
typedef PredIterator<BasicBlock, Value::use_iterator> pred_iterator;
-typedef PredIterator<const BasicBlock,
+typedef PredIterator<const BasicBlock,
Value::use_const_iterator> pred_const_iterator;
inline pred_iterator pred_begin(BasicBlock *BB) { return pred_iterator(BB); }
@@ -94,7 +94,7 @@
typedef SuccIterator<Term_, BB_> _Self;
typedef typename super::pointer pointer;
// TODO: This can be random access iterator, need operator+ and stuff tho
-
+
inline SuccIterator(Term_ T) : Term(T), idx(0) { // begin iterator
assert(T && "getTerminator returned null!");
}
@@ -112,18 +112,18 @@
/// getSuccessorIndex - This is used to interface between code that wants to
/// operate on terminator instructions directly.
unsigned getSuccessorIndex() const { return idx; }
-
+
inline bool operator==(const _Self& x) const { return idx == x.idx; }
inline bool operator!=(const _Self& x) const { return !operator==(x); }
-
+
inline pointer operator*() const { return Term->getSuccessor(idx); }
inline pointer operator->() const { return operator*(); }
-
+
inline _Self& operator++() { ++idx; return *this; } // Preincrement
inline _Self operator++(int) { // Postincrement
- _Self tmp = *this; ++*this; return tmp;
+ _Self tmp = *this; ++*this; return tmp;
}
-
+
inline _Self& operator--() { --idx; return *this; } // Predecrement
inline _Self operator--(int) { // Postdecrement
_Self tmp = *this; --*this; return tmp;
@@ -153,7 +153,7 @@
// GraphTraits specializations for basic block graphs (CFGs)
//===--------------------------------------------------------------------===//
-// Provide specializations of GraphTraits to be able to treat a function as a
+// Provide specializations of GraphTraits to be able to treat a function as a
// graph of basic blocks...
template <> struct GraphTraits<BasicBlock*> {
@@ -161,10 +161,10 @@
typedef succ_iterator ChildIteratorType;
static NodeType *getEntryNode(BasicBlock *BB) { return BB; }
- static inline ChildIteratorType child_begin(NodeType *N) {
+ static inline ChildIteratorType child_begin(NodeType *N) {
return succ_begin(N);
}
- static inline ChildIteratorType child_end(NodeType *N) {
+ static inline ChildIteratorType child_end(NodeType *N) {
return succ_end(N);
}
};
@@ -175,15 +175,15 @@
static NodeType *getEntryNode(const BasicBlock *BB) { return BB; }
- static inline ChildIteratorType child_begin(NodeType *N) {
+ static inline ChildIteratorType child_begin(NodeType *N) {
return succ_begin(N);
}
- static inline ChildIteratorType child_end(NodeType *N) {
+ static inline ChildIteratorType child_end(NodeType *N) {
return succ_end(N);
}
};
-// Provide specializations of GraphTraits to be able to treat a function as a
+// Provide specializations of GraphTraits to be able to treat a function as a
// graph of basic blocks... and to walk it in inverse order. Inverse order for
// a function is considered to be when traversing the predecessor edges of a BB
// instead of the successor edges.
@@ -192,10 +192,10 @@
typedef BasicBlock NodeType;
typedef pred_iterator ChildIteratorType;
static NodeType *getEntryNode(Inverse<BasicBlock *> G) { return G.Graph; }
- static inline ChildIteratorType child_begin(NodeType *N) {
+ static inline ChildIteratorType child_begin(NodeType *N) {
return pred_begin(N);
}
- static inline ChildIteratorType child_end(NodeType *N) {
+ static inline ChildIteratorType child_end(NodeType *N) {
return pred_end(N);
}
};
@@ -204,12 +204,12 @@
typedef const BasicBlock NodeType;
typedef pred_const_iterator ChildIteratorType;
static NodeType *getEntryNode(Inverse<const BasicBlock*> G) {
- return G.Graph;
+ return G.Graph;
}
- static inline ChildIteratorType child_begin(NodeType *N) {
+ static inline ChildIteratorType child_begin(NodeType *N) {
return pred_begin(N);
}
- static inline ChildIteratorType child_end(NodeType *N) {
+ static inline ChildIteratorType child_end(NodeType *N) {
return pred_end(N);
}
};
@@ -220,7 +220,7 @@
// GraphTraits specializations for function basic block graphs (CFGs)
//===--------------------------------------------------------------------===//
-// Provide specializations of GraphTraits to be able to treat a function as a
+// Provide specializations of GraphTraits to be able to treat a function as a
// graph of basic blocks... these are the same as the basic block iterators,
// except that the root node is implicitly the first node of the function.
//
@@ -243,7 +243,7 @@
};
-// Provide specializations of GraphTraits to be able to treat a function as a
+// Provide specializations of GraphTraits to be able to treat a function as a
// graph of basic blocks... and to walk it in inverse order. Inverse order for
// a function is considered to be when traversing the predecessor edges of a BB
// instead of the successor edges.
Index: llvm/include/llvm/Support/CallSite.h
diff -u llvm/include/llvm/Support/CallSite.h:1.17 llvm/include/llvm/Support/CallSite.h:1.18
--- llvm/include/llvm/Support/CallSite.h:1.17 Thu Nov 18 11:46:57 2004
+++ llvm/include/llvm/Support/CallSite.h Thu Apr 21 15:44:59 2005
@@ -1,10 +1,10 @@
//===-- llvm/Support/CallSite.h - Abstract Call & Invoke instrs -*- C++ -*-===//
-//
+//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
-//
+//
//===----------------------------------------------------------------------===//
//
// This file defines the CallSite class, which is a handy wrapper for code that
Index: llvm/include/llvm/Support/Casting.h
diff -u llvm/include/llvm/Support/Casting.h:1.13 llvm/include/llvm/Support/Casting.h:1.14
--- llvm/include/llvm/Support/Casting.h:1.13 Wed Sep 1 17:55:34 2004
+++ llvm/include/llvm/Support/Casting.h Thu Apr 21 15:44:59 2005
@@ -1,10 +1,10 @@
//===-- llvm/Support/Casting.h - Allow flexible, checked, casts -*- C++ -*-===//
-//
+//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
-//
+//
//===----------------------------------------------------------------------===//
//
// This file defines the isa<X>(), cast<X>(), dyn_cast<X>(), cast_or_null<X>(),
@@ -48,7 +48,7 @@
// if (isa<Type*>(myVal)) { ... }
//
template <typename To, typename From>
-inline bool isa_impl(const From &Val) {
+inline bool isa_impl(const From &Val) {
return To::classof(&Val);
}
@@ -57,7 +57,7 @@
// When From != SimplifiedType, we can simplify the type some more by using
// the simplify_type template.
static bool doit(const From &Val) {
- return isa_impl_cl<const SimpleType>::template
+ return isa_impl_cl<const SimpleType>::template
isa<To>(simplify_type<const From>::getSimplifiedValue(Val));
}
};
@@ -159,7 +159,7 @@
template<class To, class From>
struct cast_retty {
- typedef typename cast_retty_wrap<To, From,
+ typedef typename cast_retty_wrap<To, From,
typename simplify_type<From>::SimpleType>::ret_type ret_type;
};
@@ -248,7 +248,7 @@
}*/
};
-template <> inline bool isa_impl<foo,bar>(const bar &Val) {
+template <> inline bool isa_impl<foo,bar>(const bar &Val) {
cerr << "Classof: " << &Val << "\n";
return true;
}
@@ -279,7 +279,7 @@
const foo *F12 = cast_or_null<foo>(B2);
const foo *F13 = cast_or_null<foo>(B4);
const foo *F14 = cast_or_null<foo>(fub()); // Shouldn't print.
-
+
// These lines are errors...
//foo *F20 = cast<foo>(B2); // Yields const foo*
//foo &F21 = cast<foo>(B3); // Yields const foo&
Index: llvm/include/llvm/Support/CommandLine.h
diff -u llvm/include/llvm/Support/CommandLine.h:1.41 llvm/include/llvm/Support/CommandLine.h:1.42
--- llvm/include/llvm/Support/CommandLine.h:1.41 Mon Dec 13 10:28:53 2004
+++ llvm/include/llvm/Support/CommandLine.h Thu Apr 21 15:44:59 2005
@@ -1,10 +1,10 @@
//===- llvm/Support/CommandLine.h - Command line handler --------*- C++ -*-===//
-//
+//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
-//
+//
//===----------------------------------------------------------------------===//
//
// This class implements a command line argument processor that is useful when
@@ -126,14 +126,14 @@
// an argument. Should return true if there was an error processing the
// argument and the program should exit.
//
- virtual bool handleOccurrence(unsigned pos, const char *ArgName,
+ virtual bool handleOccurrence(unsigned pos, const char *ArgName,
const std::string &Arg) = 0;
- virtual enum NumOccurrences getNumOccurrencesFlagDefault() const {
+ virtual enum NumOccurrences getNumOccurrencesFlagDefault() const {
return Optional;
}
virtual enum ValueExpected getValueExpectedFlagDefault() const {
- return ValueOptional;
+ return ValueOptional;
}
virtual enum OptionHidden getOptionHiddenFlagDefault() const {
return NotHidden;
@@ -216,14 +216,14 @@
// Return the width of the option tag for printing...
virtual unsigned getOptionWidth() const = 0;
- // printOptionInfo - Print out information about this option. The
+ // printOptionInfo - Print out information about this option. The
// to-be-maintained width is specified.
//
virtual void printOptionInfo(unsigned GlobalWidth) const = 0;
// addOccurrence - Wrapper around handleOccurrence that enforces Flags
//
- bool addOccurrence(unsigned pos, const char *ArgName,
+ bool addOccurrence(unsigned pos, const char *ArgName,
const std::string &Value);
// Prints option name followed by message. Always returns true.
@@ -311,7 +311,7 @@
std::vector<std::pair<const char *, std::pair<int, const char *> > > Values;
void processValues(va_list Vals);
public:
- ValuesClass(const char *EnumName, DataType Val, const char *Desc,
+ ValuesClass(const char *EnumName, DataType Val, const char *Desc,
va_list ValueArgs) {
// Insert the first value, which is required.
Values.push_back(std::make_pair(EnumName, std::make_pair(Val, Desc)));
@@ -366,14 +366,14 @@
// getOption - Return option name N.
virtual const char *getOption(unsigned N) const = 0;
-
+
// getDescription - Return description N
virtual const char *getDescription(unsigned N) const = 0;
// Return the width of the option tag for printing...
virtual unsigned getOptionWidth(const Option &O) const;
- // printOptionInfo - Print out information about this option. The
+ // printOptionInfo - Print out information about this option. The
// to-be-maintained width is specified.
//
virtual void printOptionInfo(const Option &O, unsigned GlobalWidth) const;
@@ -442,7 +442,7 @@
}
// parse - Return true on error.
- bool parse(Option &O, const char *ArgName, const std::string &Arg,
+ bool parse(Option &O, const char *ArgName, const std::string &Arg,
DataType &V) {
std::string ArgVal;
if (hasArgStr)
@@ -485,12 +485,12 @@
enum ValueExpected getValueExpectedFlagDefault() const {
return ValueRequired;
}
-
+
void initialize(Option &O) {}
-
+
// Return the width of the option tag for printing...
unsigned getOptionWidth(const Option &O) const;
-
+
// printOptionInfo - Print out information about this option. The
// to-be-maintained width is specified.
//
@@ -519,7 +519,7 @@
bool parse(Option &O, const char *ArgName, const std::string &Arg, bool &Val);
enum ValueExpected getValueExpectedFlagDefault() const {
- return ValueOptional;
+ return ValueOptional;
}
// getValueName - Do not print =<value> at all
@@ -590,7 +590,7 @@
class parser<std::string> : public basic_parser<std::string> {
public:
// parse - Return true on error.
- bool parse(Option &O, const char *AN, const std::string &Arg,
+ bool parse(Option &O, const char *AN, const std::string &Arg,
std::string &Value) {
Value = Arg;
return false;
@@ -727,12 +727,12 @@
//
template <class DataType, bool ExternalStorage = false,
class ParserClass = parser<DataType> >
-class opt : public Option,
+class opt : public Option,
public opt_storage<DataType, ExternalStorage,
is_class<DataType>::value> {
ParserClass Parser;
- virtual bool handleOccurrence(unsigned pos, const char *ArgName,
+ virtual bool handleOccurrence(unsigned pos, const char *ArgName,
const std::string &Arg) {
typename ParserClass::parser_data_type Val;
if (Parser.parse(*this, ArgName, Arg, Val))
@@ -884,14 +884,14 @@
std::vector<unsigned> Positions;
ParserClass Parser;
- virtual enum NumOccurrences getNumOccurrencesFlagDefault() const {
+ virtual enum NumOccurrences getNumOccurrencesFlagDefault() const {
return ZeroOrMore;
}
virtual enum ValueExpected getValueExpectedFlagDefault() const {
return Parser.getValueExpectedFlagDefault();
}
- virtual bool handleOccurrence(unsigned pos, const char *ArgName,
+ virtual bool handleOccurrence(unsigned pos, const char *ArgName,
const std::string &Arg) {
typename ParserClass::parser_data_type Val;
if (Parser.parse(*this, ArgName, Arg, Val))
@@ -915,9 +915,9 @@
public:
ParserClass &getParser() { return Parser; }
- unsigned getPosition(unsigned optnum) const {
+ unsigned getPosition(unsigned optnum) const {
assert(optnum < this->size() && "Invalid option index");
- return Positions[optnum];
+ return Positions[optnum];
}
// One option...
@@ -987,7 +987,7 @@
class alias : public Option {
Option *AliasFor;
- virtual bool handleOccurrence(unsigned pos, const char *ArgName,
+ virtual bool handleOccurrence(unsigned pos, const char *ArgName,
const std::string &Arg) {
return AliasFor->handleOccurrence(pos, AliasFor->ArgStr, Arg);
}
Index: llvm/include/llvm/Support/Compressor.h
diff -u llvm/include/llvm/Support/Compressor.h:1.5 llvm/include/llvm/Support/Compressor.h:1.6
--- llvm/include/llvm/Support/Compressor.h:1.5 Sat Jan 29 11:16:07 2005
+++ llvm/include/llvm/Support/Compressor.h Thu Apr 21 15:44:59 2005
@@ -1,10 +1,10 @@
//===- llvm/Support/Compressor.h --------------------------------*- C++ -*-===//
-//
+//
// The LLVM Compiler Infrastructure
//
-// This file was developed by Reid Spencer and is distributed under the
+// This file was developed by Reid Spencer and is distributed under the
// University of Illinois Open Source License. See LICENSE.TXT for details.
-//
+//
//===----------------------------------------------------------------------===//
//
// This file declares the llvm::Compressor class.
@@ -23,15 +23,15 @@
/// a block of memory. The algorithm used here is currently bzip2 but that
/// may change without notice. Should newer algorithms prove to compress
/// bytecode better than bzip2, that newer algorithm will be added, but won't
- /// replace bzip2. This interface allows us to abstract the notion of
- /// compression and deal with alternate compression schemes over time.
- /// The type of compression used can be determined by inspecting the
- /// first byte of the compressed output. Currently value '0' means no
+ /// replace bzip2. This interface allows us to abstract the notion of
+ /// compression and deal with alternate compression schemes over time.
+ /// The type of compression used can be determined by inspecting the
+ /// first byte of the compressed output. Currently value '0' means no
/// compression was used (for very small files) and value '2' means bzip2
- /// compression was used. The Compressor is intended for use with memory
+ /// compression was used. The Compressor is intended for use with memory
/// mapped files where the entire data block to be compressed or decompressed
/// is available in memory. However, output can be gathered in repeated calls
- /// to a callback. Utilities for sending compressed or decompressed output
+ /// to a callback. Utilities for sending compressed or decompressed output
/// to a stream or directly to a memory block are also provided.
/// @since 1.4
/// @brief An abstraction for memory to memory data (de)compression
@@ -39,8 +39,8 @@
/// @name High Level Interface
/// @{
public:
- /// This method compresses a block of memory pointed to by \p in with
- /// size \p size to a block of memory, \p out, that is allocated with
+ /// This method compresses a block of memory pointed to by \p in with
+ /// size \p size to a block of memory, \p out, that is allocated with
/// malloc. It is the caller's responsibility to free \p out. The \p hint
/// indicates which type of compression the caller would *prefer*.
/// @throws std::string explaining error if a compression error occurs
@@ -52,10 +52,10 @@
char*&out ///< The returned output buffer
);
- /// This method compresses a block of memory pointed to by \p in with
+ /// This method compresses a block of memory pointed to by \p in with
/// size \p size to a stream. The stream \p out must be open and ready for
/// writing when this method is called. The stream will not be closed by
- /// this method. The \p hint argument indicates which type of
+ /// this method. The \p hint argument indicates which type of
/// compression the caller would *prefer*.
/// @returns The amount of data written to \p out.
/// @brief Compress memory to a file.
@@ -65,9 +65,9 @@
std::ostream& out ///< The output stream to write data on
);
- /// This method decompresses a block of memory pointed to by \p in with
+ /// This method decompresses a block of memory pointed to by \p in with
/// size \p size to a new block of memory, \p out, \p that was allocated
- /// by malloc. It is the caller's responsibility to free \p out.
+ /// by malloc. It is the caller's responsibility to free \p out.
/// @returns The size of the output buffer \p out.
/// @brief Decompress memory to a new memory buffer.
static size_t decompressToNewBuffer(
@@ -76,10 +76,10 @@
char*&out ///< The returned output buffer
);
- /// This method decompresses a block of memory pointed to by \p in with
+ /// This method decompresses a block of memory pointed to by \p in with
/// size \p size to a stream. The stream \p out must be open and ready for
/// writing when this method is called. The stream will not be closed by
- /// this method.
+ /// this method.
/// @returns The amount of data written to \p out.
/// @brief Decompress memory to a stream.
static size_t decompressToStream(
@@ -93,10 +93,10 @@
/// @{
public:
/// A callback function type used by the Compressor's low level interface
- /// to get the next chunk of data to which (de)compressed output will be
- /// written. This callback completely abstracts the notion of how to
+ /// to get the next chunk of data to which (de)compressed output will be
+ /// written. This callback completely abstracts the notion of how to
/// handle the output data of compression or decompression. The callback
- /// is responsible for determining both the storage location and the size
+ /// is responsible for determining both the storage location and the size
/// of the output. The callback may also do other things with the data
/// such as write it, transmit it, etc. Note that providing very small
/// values for \p size will make the compression run very inefficiently.
@@ -138,7 +138,7 @@
/// Note that the callback function will be called as many times as
/// necessary to complete the compression of the \p in block but that the
/// total size will generally be greater than \p size. It is a good idea
- /// to provide as large a value to the callback's \p size parameter as
+ /// to provide as large a value to the callback's \p size parameter as
/// possible so that fewer calls to the callback are made.
/// @throws std::string if an error occurs
/// @returns the total size of the decompressed data
Index: llvm/include/llvm/Support/ConstantRange.h
diff -u llvm/include/llvm/Support/ConstantRange.h:1.8 llvm/include/llvm/Support/ConstantRange.h:1.9
--- llvm/include/llvm/Support/ConstantRange.h:1.8 Wed Sep 1 17:55:35 2004
+++ llvm/include/llvm/Support/ConstantRange.h Thu Apr 21 15:44:59 2005
@@ -1,10 +1,10 @@
//===-- llvm/Support/ConstantRange.h - Represent a range --------*- C++ -*-===//
-//
+//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
-//
+//
//===----------------------------------------------------------------------===//
//
// Represent a range of possible values that may occur when the program is run
@@ -39,7 +39,7 @@
/// Initialize a full (the default) or empty set for the specified type.
///
ConstantRange(const Type *Ty, bool isFullSet = true);
-
+
/// Initialize a range to hold the single specified value.
///
ConstantRange(Constant *Value);
@@ -49,7 +49,7 @@
/// have different types, or if the constant are not integral values.
///
ConstantRange(Constant *Lower, Constant *Upper);
-
+
/// Initialize a set of values that all satisfy the condition with C.
///
ConstantRange(unsigned SetCCOpcode, ConstantIntegral *C);
@@ -65,12 +65,12 @@
/// getType - Return the LLVM data type of this range.
///
const Type *getType() const;
-
+
/// isFullSet - Return true if this set contains all of the elements possible
/// for this data-type
///
bool isFullSet() const;
-
+
/// isEmptySet - Return true if this set contains no members.
///
bool isEmptySet() const;
@@ -83,12 +83,12 @@
/// contains - Return true if the specified value is in the set.
///
bool contains(ConstantInt *Val) const;
-
+
/// getSingleElement - If this set contains a single element, return it,
/// otherwise return null.
///
ConstantIntegral *getSingleElement() const;
-
+
/// isSingleElement - Return true if this set contains exactly one member.
///
bool isSingleElement() const { return getSingleElement() != 0; }
Index: llvm/include/llvm/Support/DOTGraphTraits.h
diff -u llvm/include/llvm/Support/DOTGraphTraits.h:1.12 llvm/include/llvm/Support/DOTGraphTraits.h:1.13
--- llvm/include/llvm/Support/DOTGraphTraits.h:1.12 Mon Jan 10 18:24:59 2005
+++ llvm/include/llvm/Support/DOTGraphTraits.h Thu Apr 21 15:44:59 2005
@@ -1,10 +1,10 @@
//===-- llvm/Support/DotGraphTraits.h - Customize .dot output ---*- C++ -*-===//
-//
+//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
-//
+//
//===----------------------------------------------------------------------===//
//
// This file defines a template class that can be used to customize dot output
Index: llvm/include/llvm/Support/Debug.h
diff -u llvm/include/llvm/Support/Debug.h:1.5 llvm/include/llvm/Support/Debug.h:1.6
--- llvm/include/llvm/Support/Debug.h:1.5 Wed Sep 1 17:55:35 2004
+++ llvm/include/llvm/Support/Debug.h Thu Apr 21 15:44:59 2005
@@ -1,10 +1,10 @@
//===- llvm/Support/Debug.h - Easy way to add debug output ------*- C++ -*-===//
-//
+//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
-//
+//
//===----------------------------------------------------------------------===//
//
// This file implements a handle way of adding debugging information to your
Index: llvm/include/llvm/Support/DynamicLinker.h
diff -u llvm/include/llvm/Support/DynamicLinker.h:1.4 llvm/include/llvm/Support/DynamicLinker.h:1.5
--- llvm/include/llvm/Support/DynamicLinker.h:1.4 Wed Sep 1 17:55:35 2004
+++ llvm/include/llvm/Support/DynamicLinker.h Thu Apr 21 15:44:59 2005
@@ -1,10 +1,10 @@
//===-- llvm/Support/DynamicLinker.h - Portable Dynamic Linker --*- C++ -*-===//
-//
+//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
-//
+//
//===----------------------------------------------------------------------===//
//
// Lightweight interface to dynamic library linking and loading, and dynamic
@@ -31,7 +31,7 @@
/// the currently running process, as reported by the dynamic linker,
/// or NULL if the symbol does not exist or some other error has
/// occurred.
-///
+///
void *GetAddressOfSymbol (const char *symbolName);
void *GetAddressOfSymbol (const std::string &symbolName);
Index: llvm/include/llvm/Support/ELF.h
diff -u llvm/include/llvm/Support/ELF.h:1.5 llvm/include/llvm/Support/ELF.h:1.6
--- llvm/include/llvm/Support/ELF.h:1.5 Wed Sep 1 17:55:35 2004
+++ llvm/include/llvm/Support/ELF.h Thu Apr 21 15:44:59 2005
@@ -1,15 +1,15 @@
//===-- llvm/Support/ELF.h - ELF constants and data structures --*- C++ -*-===//
-//
+//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
-//
+//
//===----------------------------------------------------------------------===//
//
// This header contains common, non-processor-specific data structures and
// constants for the ELF file format.
-//
+//
// The details of the ELF32 bits in this file are largely based on
// the Tool Interface Standard (TIS) Executable and Linking Format
// (ELF) Specification Version 1.2, May 1995. The ELF64 stuff is not
@@ -137,7 +137,7 @@
Elf32_Addr sh_addr; // Address where section is to be loaded
Elf32_Off sh_offset; // File offset of section data, in bytes
Elf32_Word sh_size; // Size of section, in bytes
- Elf32_Word sh_link; // Section type-specific header table index link
+ Elf32_Word sh_link; // Section type-specific header table index link
Elf32_Word sh_info; // Section type-specific extra information
Elf32_Word sh_addralign; // Section address alignment
Elf32_Word sh_entsize; // Size of records contained within the section
@@ -204,7 +204,7 @@
unsigned char st_info; // Symbol's type and binding attributes
unsigned char st_other; // Must be zero; reserved
Elf32_Half st_shndx; // Which section (header table index) it's defined in
-
+
// These accessors and mutators correspond to the ELF32_ST_BIND,
// ELF32_ST_TYPE, and ELF32_ST_INFO macros defined in the ELF specification:
unsigned char getBinding () const { return st_info >> 4; }
@@ -238,9 +238,9 @@
// Relocation entry, without explicit addend.
struct Elf32_Rel {
- Elf32_Addr r_offset; // Location (file byte offset, or program virtual addr)
+ Elf32_Addr r_offset; // Location (file byte offset, or program virtual addr)
Elf32_Word r_info; // Symbol table index and type of relocation to apply
-
+
// These accessors and mutators correspond to the ELF32_R_SYM, ELF32_R_TYPE,
// and ELF32_R_INFO macros defined in the ELF specification:
Elf32_Word getSymbol () const { return (r_info >> 8); }
@@ -254,10 +254,10 @@
// Relocation entry with explicit addend.
struct Elf32_Rela {
- Elf32_Addr r_offset; // Location (file byte offset, or program virtual addr)
+ Elf32_Addr r_offset; // Location (file byte offset, or program virtual addr)
Elf32_Word r_info; // Symbol table index and type of relocation to apply
Elf32_Sword r_addend; // Compute value for relocatable field by adding this
-
+
// These accessors and mutators correspond to the ELF32_R_SYM, ELF32_R_TYPE,
// and ELF32_R_INFO macros defined in the ELF specification:
Elf32_Word getSymbol () const { return (r_info >> 8); }
Index: llvm/include/llvm/Support/FileUtilities.h
diff -u llvm/include/llvm/Support/FileUtilities.h:1.30 llvm/include/llvm/Support/FileUtilities.h:1.31
--- llvm/include/llvm/Support/FileUtilities.h:1.30 Sat Jan 22 21:30:39 2005
+++ llvm/include/llvm/Support/FileUtilities.h Thu Apr 21 15:44:59 2005
@@ -1,10 +1,10 @@
//===- llvm/Support/FileUtilities.h - File System Utilities -----*- C++ -*-===//
-//
+//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
-//
+//
//===----------------------------------------------------------------------===//
//
// This file defines a family of utility functions which are useful for doing
@@ -41,7 +41,7 @@
public:
FileRemover(const sys::Path &filename, bool deleteIt = true)
: Filename(filename), DeleteIt(deleteIt) {}
-
+
~FileRemover() {
if (DeleteIt)
try {
Index: llvm/include/llvm/Support/GetElementPtrTypeIterator.h
diff -u llvm/include/llvm/Support/GetElementPtrTypeIterator.h:1.8 llvm/include/llvm/Support/GetElementPtrTypeIterator.h:1.9
--- llvm/include/llvm/Support/GetElementPtrTypeIterator.h:1.8 Thu Jan 13 17:26:28 2005
+++ llvm/include/llvm/Support/GetElementPtrTypeIterator.h Thu Apr 21 15:44:59 2005
@@ -1,10 +1,10 @@
//===- llvm/Support/GetElementPtrTypeIterator.h -----------------*- C++ -*-===//
-//
+//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
-//
+//
//===----------------------------------------------------------------------===//
//
// This file implements an iterator for walking through the types indexed by
@@ -42,14 +42,14 @@
return I;
}
- bool operator==(const generic_gep_type_iterator& x) const {
+ bool operator==(const generic_gep_type_iterator& x) const {
return OpIt == x.OpIt;
}
bool operator!=(const generic_gep_type_iterator& x) const {
return !operator==(x);
}
- const Type *operator*() const {
+ const Type *operator*() const {
return CurTy;
}
@@ -61,7 +61,7 @@
// This is a non-standard operator->. It allows you to call methods on the
// current type directly.
const Type *operator->() const { return operator*(); }
-
+
Value *getOperand() const { return *OpIt; }
generic_gep_type_iterator& operator++() { // Preincrement
@@ -71,11 +71,11 @@
CurTy = 0;
}
++OpIt;
- return *this;
+ return *this;
}
generic_gep_type_iterator operator++(int) { // Postincrement
- generic_gep_type_iterator tmp = *this; ++*this; return tmp;
+ generic_gep_type_iterator tmp = *this; ++*this; return tmp;
}
};
Index: llvm/include/llvm/Support/GraphWriter.h
diff -u llvm/include/llvm/Support/GraphWriter.h:1.22 llvm/include/llvm/Support/GraphWriter.h:1.23
--- llvm/include/llvm/Support/GraphWriter.h:1.22 Mon Jan 10 18:24:59 2005
+++ llvm/include/llvm/Support/GraphWriter.h Thu Apr 21 15:44:59 2005
@@ -1,10 +1,10 @@
//===-- llvm/Support/GraphWriter.h - Write graph to a .dot file -*- C++ -*-===//
-//
+//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
-//
+//
//===----------------------------------------------------------------------===//
//
// This file defines a simple interface that can be used to print out generic
@@ -99,33 +99,33 @@
I != E; ++I)
writeNode(&*I);
}
-
+
void writeNode(NodeType *const *Node) {
writeNode(*Node);
}
-
+
void writeNode(NodeType *Node) {
std::string NodeAttributes = DOTTraits::getNodeAttributes(Node);
-
+
O << "\tNode" << reinterpret_cast<const void*>(Node) << " [shape=record,";
if (!NodeAttributes.empty()) O << NodeAttributes << ",";
O << "label=\"{";
if (!DOTTraits::renderGraphFromBottomUp())
O << DOT::EscapeString(DOTTraits::getNodeLabel(Node, G));
-
+
// Print out the fields of the current node...
child_iterator EI = GTraits::child_begin(Node);
child_iterator EE = GTraits::child_end(Node);
if (EI != EE) {
if (!DOTTraits::renderGraphFromBottomUp()) O << "|";
O << "{";
-
+
for (unsigned i = 0; EI != EE && i != 64; ++EI, ++i) {
if (i) O << "|";
O << "<g" << i << ">" << DOTTraits::getEdgeSourceLabel(Node, EI);
}
-
+
if (EI != EE)
O << "|<g64>truncated...";
O << "}";
@@ -133,9 +133,9 @@
}
if (DOTTraits::renderGraphFromBottomUp())
O << DOT::EscapeString(DOTTraits::getNodeLabel(Node, G));
-
+
O << "}\"];\n"; // Finish printing the "node" line
-
+
// Output all of the edges now
EI = GTraits::child_begin(Node);
for (unsigned i = 0; EI != EE && i != 64; ++EI, ++i)
@@ -174,7 +174,7 @@
O << DOT::EscapeString(Label);
if (NumEdgeSources) {
O << "|{";
-
+
for (unsigned i = 0; i != NumEdgeSources; ++i) {
if (i) O << "|";
O << "<g" << i << ">";
@@ -197,7 +197,7 @@
O << ":g" << SrcNodePort;
O << " -> Node" << reinterpret_cast<const void*>(DestNodeID);
if (DestNodePort >= 0)
- O << ":g" << DestNodePort;
+ O << ":g" << DestNodePort;
if (!Attrs.empty())
O << "[" << Attrs << "]";
Index: llvm/include/llvm/Support/InstIterator.h
diff -u llvm/include/llvm/Support/InstIterator.h:1.10 llvm/include/llvm/Support/InstIterator.h:1.11
--- llvm/include/llvm/Support/InstIterator.h:1.10 Tue Apr 27 10:11:58 2004
+++ llvm/include/llvm/Support/InstIterator.h Thu Apr 21 15:44:59 2005
@@ -1,10 +1,10 @@
//===- llvm/Support/InstIterator.h - Classes for inst iteration -*- C++ -*-===//
-//
+//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
-//
+//
//===----------------------------------------------------------------------===//
//
// This file contains definitions of two iterators for iterating over the
@@ -54,8 +54,8 @@
template<typename A, typename B, typename C, typename D>
InstIterator(InstIterator<A,B,C,D> &II)
: BBs(II.BBs), BB(II.BB), BI(II.BI) {}
-
- template<class M> InstIterator(M &m)
+
+ template<class M> InstIterator(M &m)
: BBs(&m.getBasicBlockList()), BB(BBs->begin()) { // begin ctor
if (BB != BBs->end()) {
BI = BB->begin();
@@ -63,43 +63,43 @@
}
}
- template<class M> InstIterator(M &m, bool)
+ template<class M> InstIterator(M &m, bool)
: BBs(&m.getBasicBlockList()), BB(BBs->end()) { // end ctor
}
// Accessors to get at the underlying iterators...
inline BBIty &getBasicBlockIterator() { return BB; }
inline BIty &getInstructionIterator() { return BI; }
-
+
inline reference operator*() const { return *BI; }
inline pointer operator->() const { return &operator*(); }
-
- inline bool operator==(const InstIterator &y) const {
+
+ inline bool operator==(const InstIterator &y) const {
return BB == y.BB && (BB == BBs->end() || BI == y.BI);
}
- inline bool operator!=(const InstIterator& y) const {
+ inline bool operator!=(const InstIterator& y) const {
return !operator==(y);
}
- InstIterator& operator++() {
+ InstIterator& operator++() {
++BI;
advanceToNextBB();
- return *this;
+ return *this;
}
- inline InstIterator operator++(int) {
- InstIterator tmp = *this; ++*this; return tmp;
+ inline InstIterator operator++(int) {
+ InstIterator tmp = *this; ++*this; return tmp;
}
-
- InstIterator& operator--() {
+
+ InstIterator& operator--() {
while (BB == BBs->end() || BI == BB->begin()) {
--BB;
BI = BB->end();
}
--BI;
- return *this;
+ return *this;
}
- inline InstIterator operator--(int) {
- InstIterator tmp = *this; --*this; return tmp;
+ inline InstIterator operator--(int) {
+ InstIterator tmp = *this; --*this; return tmp;
}
inline bool atEnd() const { return BB == BBs->end(); }
@@ -121,7 +121,7 @@
Function::iterator, BasicBlock::iterator,
Instruction> inst_iterator;
typedef InstIterator<const iplist<BasicBlock>,
- Function::const_iterator,
+ Function::const_iterator,
BasicBlock::const_iterator,
const Instruction> const_inst_iterator;
Index: llvm/include/llvm/Support/InstVisitor.h
diff -u llvm/include/llvm/Support/InstVisitor.h:1.34 llvm/include/llvm/Support/InstVisitor.h:1.35
--- llvm/include/llvm/Support/InstVisitor.h:1.34 Tue Mar 8 23:35:16 2005
+++ llvm/include/llvm/Support/InstVisitor.h Thu Apr 21 15:44:59 2005
@@ -1,10 +1,10 @@
//===- llvm/Support/InstVisitor.h - Define instruction visitors -*- C++ -*-===//
-//
+//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
-//
+//
//===----------------------------------------------------------------------===//
//
// This template class is used to define instruction visitors in a typesafe
Index: llvm/include/llvm/Support/LeakDetector.h
diff -u llvm/include/llvm/Support/LeakDetector.h:1.5 llvm/include/llvm/Support/LeakDetector.h:1.6
--- llvm/include/llvm/Support/LeakDetector.h:1.5 Wed Sep 1 17:55:35 2004
+++ llvm/include/llvm/Support/LeakDetector.h Thu Apr 21 15:44:59 2005
@@ -1,10 +1,10 @@
//===-- llvm/Support/LeakDetector.h - Provide leak detection ----*- C++ -*-===//
-//
+//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
-//
+//
//===----------------------------------------------------------------------===//
//
// This file defines a class that can be used to provide very simple memory leak
@@ -48,7 +48,7 @@
removeGarbageObjectImpl(Object);
#endif
}
-
+
/// checkForGarbage - Traverse the internal representation of garbage
/// pointers. If there are any pointers that have been add'ed, but not
/// remove'd, big obnoxious warnings about memory leaks are issued.
Index: llvm/include/llvm/Support/Mangler.h
diff -u llvm/include/llvm/Support/Mangler.h:1.12 llvm/include/llvm/Support/Mangler.h:1.13
--- llvm/include/llvm/Support/Mangler.h:1.12 Wed Sep 1 17:55:35 2004
+++ llvm/include/llvm/Support/Mangler.h Thu Apr 21 15:44:59 2005
@@ -1,10 +1,10 @@
//===-- llvm/Support/Mangler.h - Self-contained name mangler ----*- C++ -*-===//
-//
+//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
-//
+//
//===----------------------------------------------------------------------===//
//
// Unified name mangler for various backends.
@@ -63,7 +63,7 @@
/// doesn't guarantee unique names for values. getValueName already
/// does this for you, so there's no point calling it on the result
/// from getValueName.
- ///
+ ///
static std::string makeNameProper(const std::string &x);
};
Index: llvm/include/llvm/Support/MathExtras.h
diff -u llvm/include/llvm/Support/MathExtras.h:1.15 llvm/include/llvm/Support/MathExtras.h:1.16
--- llvm/include/llvm/Support/MathExtras.h:1.15 Wed Sep 1 17:55:35 2004
+++ llvm/include/llvm/Support/MathExtras.h Thu Apr 21 15:44:59 2005
@@ -1,10 +1,10 @@
//===-- llvm/Support/MathExtras.h - Useful math functions -------*- C++ -*-===//
-//
+//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
-//
+//
//===----------------------------------------------------------------------===//
//
// This file contains some functions that are useful for math stuff.
Index: llvm/include/llvm/Support/PassNameParser.h
diff -u llvm/include/llvm/Support/PassNameParser.h:1.10 llvm/include/llvm/Support/PassNameParser.h:1.11
--- llvm/include/llvm/Support/PassNameParser.h:1.10 Wed Sep 1 17:55:35 2004
+++ llvm/include/llvm/Support/PassNameParser.h Thu Apr 21 15:44:59 2005
@@ -1,10 +1,10 @@
//===- llvm/Support/PassNameParser.h ----------------------------*- C++ -*-===//
-//
+//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
-//
+//
//===----------------------------------------------------------------------===//
//
// This file the PassNameParser and FilteredPassNameParser<> classes, which are
@@ -34,12 +34,12 @@
// PassNameParser class - Make use of the pass registration mechanism to
// automatically add a command line argument to opt for each pass.
//
-class PassNameParser : public PassRegistrationListener,
+class PassNameParser : public PassRegistrationListener,
public cl::parser<const PassInfo*> {
cl::Option *Opt;
public:
PassNameParser() : Opt(0) {}
-
+
void initialize(cl::Option &O) {
Opt = &O;
cl::parser<const PassInfo*>::initialize(O);
Index: llvm/include/llvm/Support/PatternMatch.h
diff -u llvm/include/llvm/Support/PatternMatch.h:1.4 llvm/include/llvm/Support/PatternMatch.h:1.5
--- llvm/include/llvm/Support/PatternMatch.h:1.4 Sat Nov 13 13:32:45 2004
+++ llvm/include/llvm/Support/PatternMatch.h Thu Apr 21 15:44:59 2005
@@ -1,10 +1,10 @@
//===-- llvm/Support/PatternMatch.h - Match on the LLVM IR ------*- C++ -*-===//
-//
+//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
-//
+//
//===----------------------------------------------------------------------===//
//
// This file provides a simple and efficient mechanism for performing general
@@ -33,7 +33,7 @@
#include "llvm/Instructions.h"
namespace llvm {
-namespace PatternMatch {
+namespace PatternMatch {
template<typename Val, typename Pattern>
bool match(Val *V, const Pattern &P) {
@@ -88,7 +88,7 @@
R.match(CE->getOperand(1));
return false;
}
-};
+};
template<typename LHS, typename RHS>
inline BinaryOp_match<LHS, RHS, Instruction::Add> m_Add(const LHS &L,
@@ -178,7 +178,7 @@
#endif
return false;
}
-};
+};
template<typename LHS, typename RHS>
inline BinaryOpClass_match<LHS, RHS, SetCondInst>
@@ -216,7 +216,7 @@
else
return LHS == ConstantFP::get(LHS->getType(), -0.0) && L.match(RHS);
}
-};
+};
template<typename LHS>
inline neg_match<LHS> m_Neg(const LHS &L) { return L; }
Index: llvm/include/llvm/Support/PluginLoader.h
diff -u llvm/include/llvm/Support/PluginLoader.h:1.2 llvm/include/llvm/Support/PluginLoader.h:1.3
--- llvm/include/llvm/Support/PluginLoader.h:1.2 Wed Sep 1 17:55:35 2004
+++ llvm/include/llvm/Support/PluginLoader.h Thu Apr 21 15:44:59 2005
@@ -1,10 +1,10 @@
//===-- llvm/Support/PluginLoader.h - Plugin Loader for Tools ---*- C++ -*-===//
-//
+//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
-//
+//
//===----------------------------------------------------------------------===//
//
// A tool can #include this file to get a -load option that allows the user to
Index: llvm/include/llvm/Support/SlowOperationInformer.h
diff -u llvm/include/llvm/Support/SlowOperationInformer.h:1.4 llvm/include/llvm/Support/SlowOperationInformer.h:1.5
--- llvm/include/llvm/Support/SlowOperationInformer.h:1.4 Wed Sep 1 17:55:35 2004
+++ llvm/include/llvm/Support/SlowOperationInformer.h Thu Apr 21 15:44:59 2005
@@ -1,10 +1,10 @@
//===- llvm/Support/SlowOperationInformer.h - Keep user informed *- C++ -*-===//
-//
+//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
-//
+//
//===----------------------------------------------------------------------===//
//
// This file defines a simple object which can be used to let the user know what
@@ -38,13 +38,13 @@
class SlowOperationInformer {
std::string OperationName;
unsigned LastPrintAmount;
-
+
SlowOperationInformer(const SlowOperationInformer&); // DO NOT IMPLEMENT
void operator=(const SlowOperationInformer&); // DO NOT IMPLEMENT
public:
SlowOperationInformer(const std::string &Name);
~SlowOperationInformer();
-
+
/// progress - Clients should periodically call this method when they are in
/// an exception-safe state. The Amount variable should indicate how far
/// along the operation is, given in 1/10ths of a percent (in other words,
Index: llvm/include/llvm/Support/StableBasicBlockNumbering.h
diff -u llvm/include/llvm/Support/StableBasicBlockNumbering.h:1.1 llvm/include/llvm/Support/StableBasicBlockNumbering.h:1.2
--- llvm/include/llvm/Support/StableBasicBlockNumbering.h:1.1 Sat Jun 19 03:41:59 2004
+++ llvm/include/llvm/Support/StableBasicBlockNumbering.h Thu Apr 21 15:44:59 2005
@@ -1,10 +1,10 @@
//===- StableBasicBlockNumbering.h - Provide BB identifiers -----*- C++ -*-===//
-//
+//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
-//
+//
//===----------------------------------------------------------------------===//
//
// This class provides a *stable* numbering of basic blocks that does not depend
Index: llvm/include/llvm/Support/SystemUtils.h
diff -u llvm/include/llvm/Support/SystemUtils.h:1.20 llvm/include/llvm/Support/SystemUtils.h:1.21
--- llvm/include/llvm/Support/SystemUtils.h:1.20 Sun Feb 13 17:14:06 2005
+++ llvm/include/llvm/Support/SystemUtils.h Thu Apr 21 15:44:59 2005
@@ -1,10 +1,10 @@
//===- SystemUtils.h - Utilities to do low-level system stuff ---*- C++ -*-===//
-//
+//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
-//
+//
//===----------------------------------------------------------------------===//
//
// This file contains functions used to do a variety of low-level, often
@@ -19,8 +19,8 @@
namespace llvm {
-/// Determine if the ostream provided is connected to the std::cout and
-/// displayed or not (to a console window). If so, generate a warning message
+/// Determine if the ostream provided is connected to the std::cout and
+/// displayed or not (to a console window). If so, generate a warning message
/// advising against display of bytecode and return true. Otherwise just return
/// false
/// @brief Check for output written to a console
Index: llvm/include/llvm/Support/ThreadSupport-NoSupport.h
diff -u llvm/include/llvm/Support/ThreadSupport-NoSupport.h:1.2 llvm/include/llvm/Support/ThreadSupport-NoSupport.h:1.3
--- llvm/include/llvm/Support/ThreadSupport-NoSupport.h:1.2 Wed Sep 1 17:55:35 2004
+++ llvm/include/llvm/Support/ThreadSupport-NoSupport.h Thu Apr 21 15:44:59 2005
@@ -1,10 +1,10 @@
//===-- llvm/Support/ThreadSupport-NoSupport.h - Generic Impl ---*- C++ -*-===//
-//
+//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
-//
+//
//===----------------------------------------------------------------------===//
//
// This file defines a generic ThreadSupport implementation used when there is
Index: llvm/include/llvm/Support/ThreadSupport-PThreads.h
diff -u llvm/include/llvm/Support/ThreadSupport-PThreads.h:1.4 llvm/include/llvm/Support/ThreadSupport-PThreads.h:1.5
--- llvm/include/llvm/Support/ThreadSupport-PThreads.h:1.4 Sun Feb 27 13:07:36 2005
+++ llvm/include/llvm/Support/ThreadSupport-PThreads.h Thu Apr 21 15:44:59 2005
@@ -1,10 +1,10 @@
//===-- llvm/Support/ThreadSupport-PThreads.h - PThreads support *- C++ -*-===//
-//
+//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
-//
+//
//===----------------------------------------------------------------------===//
//
// This file defines pthreads implementations of the generic threading
@@ -39,7 +39,7 @@
errorcode = pthread_mutexattr_settype(&Attr, PTHREAD_MUTEX_RECURSIVE);
assert(errorcode == 0);
-
+
errorcode = pthread_mutex_init(&mutex, &Attr);
assert(errorcode == 0);
Index: llvm/include/llvm/Support/Timer.h
diff -u llvm/include/llvm/Support/Timer.h:1.17 llvm/include/llvm/Support/Timer.h:1.18
--- llvm/include/llvm/Support/Timer.h:1.17 Sat Jan 29 00:29:45 2005
+++ llvm/include/llvm/Support/Timer.h Thu Apr 21 15:44:59 2005
@@ -1,10 +1,10 @@
//===-- llvm/Support/Timer.h - Interval Timing Support ----------*- C++ -*-===//
-//
+//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
-//
+//
//===----------------------------------------------------------------------===//
//
// This file defines three classes: Timer, TimeRegion, and TimerGroup,
@@ -74,7 +74,7 @@
return Elapsed < T.Elapsed;
}
bool operator>(const Timer &T) const { return T.operator<(*this); }
-
+
/// startTimer - Start the timer running. Time between calls to
/// startTimer/stopTimer is counted by the Timer class. Note that these calls
/// must be correctly paired.
Index: llvm/include/llvm/Support/ToolRunner.h
diff -u llvm/include/llvm/Support/ToolRunner.h:1.18 llvm/include/llvm/Support/ToolRunner.h:1.19
--- llvm/include/llvm/Support/ToolRunner.h:1.18 Sat Jan 22 10:30:16 2005
+++ llvm/include/llvm/Support/ToolRunner.h Thu Apr 21 15:44:59 2005
@@ -1,10 +1,10 @@
//===-- llvm/Support/ToolRunner.h -------------------------------*- C++ -*-===//
-//
+//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
-//
+//
//===----------------------------------------------------------------------===//
//
// This file exposes an abstraction around a platform C compiler, used to
@@ -63,7 +63,7 @@
FileType fileType,
const std::string &InputFile,
const std::string &OutputFile,
- const std::vector<std::string> &SharedLibs =
+ const std::vector<std::string> &SharedLibs =
std::vector<std::string>(), unsigned Timeout = 0);
/// MakeSharedObject - This compiles the specified file (which is either a .c
@@ -110,7 +110,7 @@
const std::vector<std::string> &Args,
const std::string &InputFile,
const std::string &OutputFile,
- const std::vector<std::string> &SharedLibs =
+ const std::vector<std::string> &SharedLibs =
std::vector<std::string>(),
unsigned Timeout = 0) = 0;
};
@@ -140,7 +140,7 @@
const std::vector<std::string> &Args,
const std::string &InputFile,
const std::string &OutputFile,
- const std::vector<std::string> &SharedLibs =
+ const std::vector<std::string> &SharedLibs =
std::vector<std::string>(),
unsigned Timeout = 0);
@@ -177,7 +177,7 @@
const std::vector<std::string> &Args,
const std::string &InputFile,
const std::string &OutputFile,
- const std::vector<std::string> &SharedLibs =
+ const std::vector<std::string> &SharedLibs =
std::vector<std::string>(),
unsigned Timeout = 0);
Index: llvm/include/llvm/Support/TypeInfo.h
diff -u llvm/include/llvm/Support/TypeInfo.h:1.7 llvm/include/llvm/Support/TypeInfo.h:1.8
--- llvm/include/llvm/Support/TypeInfo.h:1.7 Wed Sep 1 17:55:35 2004
+++ llvm/include/llvm/Support/TypeInfo.h Thu Apr 21 15:44:59 2005
@@ -1,10 +1,10 @@
//===- llvm/Support/TypeInfo.h - Support for type_info objects -*- C++ -*-===//
-//
+//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
-//
+//
//===----------------------------------------------------------------------===//
//
// This class makes std::type_info objects behave like first class objects that
@@ -45,7 +45,7 @@
private:
const std::type_info *Info;
};
-
+
// Comparison operators
inline bool operator==(const TypeInfo &lhs, const TypeInfo &rhs) {
return lhs.get() == rhs.get();
@@ -62,11 +62,11 @@
inline bool operator>(const TypeInfo &lhs, const TypeInfo &rhs) {
return rhs < lhs;
}
-
+
inline bool operator<=(const TypeInfo &lhs, const TypeInfo &rhs) {
return !(lhs > rhs);
}
-
+
inline bool operator>=(const TypeInfo &lhs, const TypeInfo &rhs) {
return !(lhs < rhs);
}
Index: llvm/include/llvm/Support/type_traits.h
diff -u llvm/include/llvm/Support/type_traits.h:1.2 llvm/include/llvm/Support/type_traits.h:1.3
--- llvm/include/llvm/Support/type_traits.h:1.2 Wed Sep 1 17:55:35 2004
+++ llvm/include/llvm/Support/type_traits.h Thu Apr 21 15:44:59 2005
@@ -1,16 +1,16 @@
//===- llvm/Support/type_traits.h - Simplfied type traits -------*- C++ -*-===//
-//
+//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
-//
+//
//===----------------------------------------------------------------------===//
//
// This file provides a template class that determines if a type is a class or
// not. The basic mechanism, based on using the pointer to member function of
-// a zero argument to a function was "boosted" from the boost type_traits
-// library. See http://www.boost.org/ for all the gory details.
+// a zero argument to a function was "boosted" from the boost type_traits
+// library. See http://www.boost.org/ for all the gory details.
//
//===----------------------------------------------------------------------===//
@@ -27,13 +27,13 @@
namespace dont_use
{
// These two functions should never be used. They are helpers to
- // the is_class template below. They cannot be located inside
+ // the is_class template below. They cannot be located inside
// is_class because doing so causes at least GCC to think that
// the value of the "value" enumerator is not constant. Placing
- // them out here (for some strange reason) allows the sizeof
+ // them out here (for some strange reason) allows the sizeof
// operator against them to magically be constant. This is
// important to make the is_class<T>::value idiom zero cost. it
- // evaluates to a constant 1 or 0 depending on whether the
+ // evaluates to a constant 1 or 0 depending on whether the
// parameter T is a class or not (respectively).
template<typename T> char is_class_helper(void(T::*)(void));
template<typename T> double is_class_helper(...);
More information about the llvm-commits
mailing list