Interface to target-specific routines that support machine code optimization.
authorVikram S. Adve <vadve@cs.uiuc.edu>
Fri, 20 Sep 2002 00:49:21 +0000 (00:49 +0000)
committerVikram S. Adve <vadve@cs.uiuc.edu>
Fri, 20 Sep 2002 00:49:21 +0000 (00:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3844 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Target/TargetOptInfo.h [new file with mode: 0644]

diff --git a/include/llvm/Target/TargetOptInfo.h b/include/llvm/Target/TargetOptInfo.h
new file mode 100644 (file)
index 0000000..2d80bf1
--- /dev/null
@@ -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