aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Target/TargetCacheInfo.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-02-04 05:55:10 +0000
committerChris Lattner <sabre@nondot.org>2002-02-04 05:55:10 +0000
commitbc53c04789ba11e241ef9793fc3cae5b2902725b (patch)
tree8e435c5a09398cf325999f6e76ba310a0643c843 /include/llvm/Target/TargetCacheInfo.h
parent2182c785c22a3e805d7d38708e75e5d30c547fdf (diff)
downloadexternal_llvm-bc53c04789ba11e241ef9793fc3cae5b2902725b.zip
external_llvm-bc53c04789ba11e241ef9793fc3cae5b2902725b.tar.gz
external_llvm-bc53c04789ba11e241ef9793fc3cae5b2902725b.tar.bz2
* Minor cleanups
* Reduce number of #includes * Delete blank lines at end of files * Remove blatently misleading qualifiers (how do you have an inlined pure virtual function?) * Remove unnecesary & ignored qualifiers (const int argument vs int argument) * Remove LARGE chunks of "inline" code out to .cpp file * s/unsigned int/unsigned/ git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1673 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Target/TargetCacheInfo.h')
-rw-r--r--include/llvm/Target/TargetCacheInfo.h35
1 files changed, 9 insertions, 26 deletions
diff --git a/include/llvm/Target/TargetCacheInfo.h b/include/llvm/Target/TargetCacheInfo.h
index 0f81dd1..6514c8b 100644
--- a/include/llvm/Target/TargetCacheInfo.h
+++ b/include/llvm/Target/TargetCacheInfo.h
@@ -1,30 +1,17 @@
-// $Id$ -*-c++-*-
-//***************************************************************************
-// File:
-// MachineCacheInfo.h
-//
-// Purpose:
-// Describes properties of the target cache architecture.
-//**************************************************************************/
+//===-- llvm/Target/MachineCacheInfo.h ---------------------------*- C++ -*-==//
+//
+// Describes properties of the target cache architecture.
+//
+//===----------------------------------------------------------------------===//
#ifndef LLVM_TARGET_MACHINECACHEINFO_H
#define LLVM_TARGET_MACHINECACHEINFO_H
-#include "llvm/Target/TargetMachine.h"
#include "Support/DataTypes.h"
+class TargetMachine;
-
-//---------------------------------------------------------------------------
-// class MachineCacheInfo
-//
-// Purpose:
-// Describes properties of the target cache architecture.
-//---------------------------------------------------------------------------
-
-class MachineCacheInfo : public NonCopyableV {
-public:
- const TargetMachine& target;
-
+struct MachineCacheInfo : public NonCopyableV {
+ const TargetMachine &target;
protected:
unsigned int numLevels;
std::vector<unsigned short> cacheLineSizes;
@@ -32,8 +19,7 @@ protected:
std::vector<unsigned short> cacheAssoc;
public:
- /*ctor*/ MachineCacheInfo (const TargetMachine& tgt);
- /*dtor*/ virtual ~MachineCacheInfo () {}
+ MachineCacheInfo(const TargetMachine& tgt);
// Default parameters are:
// NumLevels = 2
@@ -60,7 +46,4 @@ public:
}
};
-
-//---------------------------------------------------------------------------
-
#endif