From: Vikram S. Adve Date: Fri, 20 Sep 2002 00:49:21 +0000 (+0000) Subject: Interface to target-specific routines that support machine code optimization. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=2542d9a18304d60576158e635f6123f60bbd80ba;p=oota-llvm.git 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 --- 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