-//===-- llvm/Target/MachineCacheInfo.h --------------------------*- C++ -*-===//
+//===-- llvm/Target/TargetCacheInfo.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.
+//
+//===----------------------------------------------------------------------===//
//
// Describes properties of the target cache architecture.
//
//===----------------------------------------------------------------------===//
-#ifndef LLVM_TARGET_MACHINECACHEINFO_H
-#define LLVM_TARGET_MACHINECACHEINFO_H
+#ifndef LLVM_TARGET_TARGETCACHEINFO_H
+#define LLVM_TARGET_TARGETCACHEINFO_H
#include "Support/DataTypes.h"
+
+namespace llvm {
+
class TargetMachine;
-struct MachineCacheInfo : public NonCopyableV {
+struct TargetCacheInfo {
const TargetMachine ⌖
+ TargetCacheInfo(const TargetCacheInfo&); // DO NOT IMPLEMENT
+ void operator=(const TargetCacheInfo&); // DO NOT IMPLEMENT
protected:
unsigned int numLevels;
std::vector<unsigned short> cacheLineSizes;
std::vector<unsigned short> cacheAssoc;
public:
- MachineCacheInfo(const TargetMachine& tgt) : target(tgt) {
+ TargetCacheInfo(const TargetMachine& tgt) : target(tgt) {
Initialize();
}
+ virtual ~TargetCacheInfo() {}
// Default parameters are:
// NumLevels = 2
}
};
+} // End llvm namespace
+
#endif