summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2007-04-16 18:10:23 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2007-04-16 18:10:23 +0000
commitbed2946a96ecb15b0b636fa74cb26ce61b1c648e (patch)
tree52a39df658d308bd7dfb4f04479139d23c149c73 /include
parent892299ccf41e9b3726b1a9f297e47ce636b197ca (diff)
downloadllvm-bed2946a96ecb15b0b636fa74cb26ce61b1c648e.tar.gz
llvm-bed2946a96ecb15b0b636fa74cb26ce61b1c648e.tar.bz2
llvm-bed2946a96ecb15b0b636fa74cb26ce61b1c648e.tar.xz
Removed tabs everywhere except autogenerated & external files. Add make
target for tabs checking. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36146 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/ADT/BitVector.h30
-rw-r--r--include/llvm/ADT/hash_set.in2
-rw-r--r--include/llvm/Analysis/LoopPass.h2
-rw-r--r--include/llvm/CallGraphSCCPass.h2
-rw-r--r--include/llvm/Pass.h8
-rw-r--r--include/llvm/PassSupport.h6
-rw-r--r--include/llvm/Support/Dwarf.h2
-rw-r--r--include/llvm/Support/MathExtras.h4
-rw-r--r--include/llvm/Target/TargetLowering.h4
9 files changed, 31 insertions, 29 deletions
diff --git a/include/llvm/ADT/BitVector.h b/include/llvm/ADT/BitVector.h
index 56e5066dba..22599c56c1 100644
--- a/include/llvm/ADT/BitVector.h
+++ b/include/llvm/ADT/BitVector.h
@@ -128,12 +128,12 @@ public:
int find_first() const {
for (unsigned i = 0; i < NumBitWords(size()); ++i)
if (Bits[i] != 0) {
- if (sizeof(BitWord) == 4)
- return i * BITS_PER_WORD + CountTrailingZeros_32(Bits[i]);
- else if (sizeof(BitWord) == 8)
- return i * BITS_PER_WORD + CountTrailingZeros_64(Bits[i]);
- else
- assert(0 && "Unsupported!");
+ if (sizeof(BitWord) == 4)
+ return i * BITS_PER_WORD + CountTrailingZeros_32(Bits[i]);
+ else if (sizeof(BitWord) == 8)
+ return i * BITS_PER_WORD + CountTrailingZeros_64(Bits[i]);
+ else
+ assert(0 && "Unsupported!");
}
return -1;
}
@@ -153,22 +153,22 @@ public:
if (Copy != 0) {
if (sizeof(BitWord) == 4)
- return WordPos * BITS_PER_WORD + CountTrailingZeros_32(Copy);
+ return WordPos * BITS_PER_WORD + CountTrailingZeros_32(Copy);
else if (sizeof(BitWord) == 8)
- return WordPos * BITS_PER_WORD + CountTrailingZeros_64(Copy);
+ return WordPos * BITS_PER_WORD + CountTrailingZeros_64(Copy);
else
- assert(0 && "Unsupported!");
+ assert(0 && "Unsupported!");
}
// Check subsequent words.
for (unsigned i = WordPos+1; i < NumBitWords(size()); ++i)
if (Bits[i] != 0) {
- if (sizeof(BitWord) == 4)
- return i * BITS_PER_WORD + CountTrailingZeros_32(Bits[i]);
- else if (sizeof(BitWord) == 8)
- return i * BITS_PER_WORD + CountTrailingZeros_64(Bits[i]);
- else
- assert(0 && "Unsupported!");
+ if (sizeof(BitWord) == 4)
+ return i * BITS_PER_WORD + CountTrailingZeros_32(Bits[i]);
+ else if (sizeof(BitWord) == 8)
+ return i * BITS_PER_WORD + CountTrailingZeros_64(Bits[i]);
+ else
+ assert(0 && "Unsupported!");
}
return -1;
}
diff --git a/include/llvm/ADT/hash_set.in b/include/llvm/ADT/hash_set.in
index 1d4dff8b54..aa27e5f020 100644
--- a/include/llvm/ADT/hash_set.in
+++ b/include/llvm/ADT/hash_set.in
@@ -84,7 +84,7 @@ namespace HASH_NAMESPACE {
/*
template <class DataType> struct hash {
unsigned int operator()(const unsigned int& x) const {
- return x;
+ return x;
}
};
*/
diff --git a/include/llvm/Analysis/LoopPass.h b/include/llvm/Analysis/LoopPass.h
index 07b9c572ce..dd9480f0aa 100644
--- a/include/llvm/Analysis/LoopPass.h
+++ b/include/llvm/Analysis/LoopPass.h
@@ -55,7 +55,7 @@ class LoopPass : public Pass {
/// Assign pass manager to manager this pass
virtual void assignPassManager(PMStack &PMS,
- PassManagerType PMT = PMT_LoopPassManager);
+ PassManagerType PMT = PMT_LoopPassManager);
};
diff --git a/include/llvm/CallGraphSCCPass.h b/include/llvm/CallGraphSCCPass.h
index 96c770232d..f68e44774b 100644
--- a/include/llvm/CallGraphSCCPass.h
+++ b/include/llvm/CallGraphSCCPass.h
@@ -52,7 +52,7 @@ struct CallGraphSCCPass : public Pass {
/// Assign pass manager to manager this pass
virtual void assignPassManager(PMStack &PMS,
- PassManagerType PMT = PMT_CallGraphPassManager);
+ PassManagerType PMT = PMT_CallGraphPassManager);
/// getAnalysisUsage - For this class, we declare that we require and preserve
/// the call graph. If the derived class implements this method, it should
diff --git a/include/llvm/Pass.h b/include/llvm/Pass.h
index d517c41f17..30ddede85f 100644
--- a/include/llvm/Pass.h
+++ b/include/llvm/Pass.h
@@ -123,7 +123,7 @@ public:
/// Each pass is responsible for assigning a pass manager to itself.
/// PMS is the stack of available pass manager.
virtual void assignPassManager(PMStack &PMS,
- PassManagerType T = PMT_Unknown) {}
+ PassManagerType T = PMT_Unknown) {}
/// Check if available pass managers are suitable for this pass or not.
virtual void preparePassManager(PMStack &PMS) {}
@@ -215,7 +215,7 @@ public:
virtual bool runPass(BasicBlock&) { return false; }
virtual void assignPassManager(PMStack &PMS,
- PassManagerType T = PMT_ModulePassManager);
+ PassManagerType T = PMT_ModulePassManager);
// Force out-of-line virtual method.
virtual ~ModulePass();
};
@@ -282,7 +282,7 @@ public:
bool run(Function &F);
virtual void assignPassManager(PMStack &PMS,
- PassManagerType T = PMT_FunctionPassManager);
+ PassManagerType T = PMT_FunctionPassManager);
};
@@ -337,7 +337,7 @@ public:
virtual bool runPass(BasicBlock &BB);
virtual void assignPassManager(PMStack &PMS,
- PassManagerType T = PMT_BasicBlockPassManager);
+ PassManagerType T = PMT_BasicBlockPassManager);
};
/// PMStack
diff --git a/include/llvm/PassSupport.h b/include/llvm/PassSupport.h
index c4d75d52ee..7c3c4a9d66 100644
--- a/include/llvm/PassSupport.h
+++ b/include/llvm/PassSupport.h
@@ -137,8 +137,10 @@ struct RegisterPassBase {
///
const PassInfo *getPassInfo() const { return &PIObj; }
+ typedef Pass* (*NormalCtor_t)();
+
RegisterPassBase(const char *Name, const char *Arg, const std::type_info &TI,
- Pass *(*NormalCtor)() = 0, bool CFGOnly = false)
+ NormalCtor_t NormalCtor = 0, bool CFGOnly = false)
: PIObj(Name, Arg, TI, NormalCtor, CFGOnly) {
registerPass();
}
@@ -164,7 +166,7 @@ struct RegisterPass : public RegisterPassBase {
// Register Pass using default constructor...
RegisterPass(const char *PassArg, const char *Name, bool CFGOnly = false)
: RegisterPassBase(Name, PassArg, typeid(PassName),
- callDefaultCtor<PassName>, CFGOnly) {
+ (RegisterPassBase::NormalCtor_t)callDefaultCtor<PassName>, CFGOnly) {
}
};
diff --git a/include/llvm/Support/Dwarf.h b/include/llvm/Support/Dwarf.h
index 47d0d16286..21f49f66b6 100644
--- a/include/llvm/Support/Dwarf.h
+++ b/include/llvm/Support/Dwarf.h
@@ -44,7 +44,7 @@ enum llvm_dwarf_constants {
DW_TAG_user_base = 0x1000, // Recommended base for user tags.
DW_CIE_VERSION = 1, // Common frame information version.
- DW_CIE_ID = 0xffffffff // Common frame information mark.
+ DW_CIE_ID = 0xffffffff // Common frame information mark.
};
enum dwarf_constants {
diff --git a/include/llvm/Support/MathExtras.h b/include/llvm/Support/MathExtras.h
index 7f3c2432d0..f3c3b676d6 100644
--- a/include/llvm/Support/MathExtras.h
+++ b/include/llvm/Support/MathExtras.h
@@ -109,7 +109,7 @@ inline uint16_t ByteSwap_16(uint16_t Value) {
/// 32-bit argument, Value.
inline uint32_t ByteSwap_32(uint32_t Value) {
#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
- return __builtin_bswap32(Value);
+ return __builtin_bswap32(Value);
#elif defined(_MSC_VER) && !defined(_DEBUG)
return _byteswap_ulong(Value);
#else
@@ -125,7 +125,7 @@ inline uint32_t ByteSwap_32(uint32_t Value) {
/// 64-bit argument, Value.
inline uint64_t ByteSwap_64(uint64_t Value) {
#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
- return __builtin_bswap64(Value);
+ return __builtin_bswap64(Value);
#elif defined(_MSC_VER) && !defined(_DEBUG)
return _byteswap_uint64(Value);
#else
diff --git a/include/llvm/Target/TargetLowering.h b/include/llvm/Target/TargetLowering.h
index 0669425a48..c862371c93 100644
--- a/include/llvm/Target/TargetLowering.h
+++ b/include/llvm/Target/TargetLowering.h
@@ -884,9 +884,9 @@ public:
// Div utility functions
//
SDOperand BuildSDIV(SDNode *N, SelectionDAG &DAG,
- std::vector<SDNode*>* Created) const;
+ std::vector<SDNode*>* Created) const;
SDOperand BuildUDIV(SDNode *N, SelectionDAG &DAG,
- std::vector<SDNode*>* Created) const;
+ std::vector<SDNode*>* Created) const;
//===--------------------------------------------------------------------===//