aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVikram S. Adve <vadve@cs.uiuc.edu>2002-09-20 00:49:21 +0000
committerVikram S. Adve <vadve@cs.uiuc.edu>2002-09-20 00:49:21 +0000
commit2542d9a18304d60576158e635f6123f60bbd80ba (patch)
tree4224eba0dc1a8bdde73315f9ec8c99b8c21c7365
parente8b57ef2603ed522083dc18e559ca4e20abf22ae (diff)
Interface to target-specific routines that support machine code optimization.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3844 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Target/TargetOptInfo.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/include/llvm/Target/TargetOptInfo.h b/include/llvm/Target/TargetOptInfo.h
new file mode 100644
index 0000000000..2d80bf1fe4
--- /dev/null
+++ b/include/llvm/Target/TargetOptInfo.h
@@ -0,0 +1,22 @@
+//===-- llvm/Target/MachineOptInfo.h -----------------------------*- C++ -*-==//
+//
+// Describes properties of the target cache architecture.
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef LLVM_TARGET_MACHINEOPTINFO_H
+#define LLVM_TARGET_MACHINEOPTINFO_H
+
+#include "Support/DataTypes.h"
+class TargetMachine;
+
+struct MachineOptInfo : public NonCopyableV {
+ const TargetMachine &target;
+
+public:
+ MachineOptInfo(const TargetMachine& tgt): target(tgt) { }
+
+ virtual bool IsUselessCopy (const MachineInstr* MI) const = 0;
+};
+
+#endif