From 2542d9a18304d60576158e635f6123f60bbd80ba Mon Sep 17 00:00:00 2001 From: "Vikram S. Adve" Date: Fri, 20 Sep 2002 00:49:21 +0000 Subject: [PATCH] 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 --- include/llvm/Target/TargetOptInfo.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 include/llvm/Target/TargetOptInfo.h diff --git a/include/llvm/Target/TargetOptInfo.h b/include/llvm/Target/TargetOptInfo.h new file mode 100644 index 00000000000..2d80bf1fe40 --- /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 ⌖ + +public: + MachineOptInfo(const TargetMachine& tgt): target(tgt) { } + + virtual bool IsUselessCopy (const MachineInstr* MI) const = 0; +}; + +#endif