2002-12-29 02:50:35 +00:00
|
|
|
//===-- llvm/Target/TargetOptInfo.h ------------------------------*- C++ -*-==//
|
2002-09-20 00:49:21 +00:00
|
|
|
//
|
2003-06-03 15:28:40 +00:00
|
|
|
// FIXME: ADD A COMMENT DESCRIBING THIS FILE!
|
2002-09-20 00:49:21 +00:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2002-12-29 02:50:35 +00:00
|
|
|
#ifndef LLVM_TARGET_TARGETOPTINFO_H
|
|
|
|
#define LLVM_TARGET_TARGETOPTINFO_H
|
2002-09-20 00:49:21 +00:00
|
|
|
|
2003-06-03 15:28:40 +00:00
|
|
|
class MachineInstr;
|
2002-09-20 00:49:21 +00:00
|
|
|
class TargetMachine;
|
|
|
|
|
2003-06-03 15:28:40 +00:00
|
|
|
struct TargetOptInfo {
|
2002-09-20 00:49:21 +00:00
|
|
|
const TargetMachine ⌖
|
|
|
|
|
2003-06-03 15:28:40 +00:00
|
|
|
TargetOptInfo(const TargetOptInfo &); // DO NOT IMPLEMENT
|
|
|
|
void operator=(const TargetOptInfo &); // DO NOT IMPLEMENT
|
2002-09-20 00:49:21 +00:00
|
|
|
public:
|
2003-06-03 15:28:40 +00:00
|
|
|
TargetOptInfo(const TargetMachine &TM) : target(TM) { }
|
2002-09-20 00:49:21 +00:00
|
|
|
|
2003-06-03 15:28:40 +00:00
|
|
|
virtual bool IsUselessCopy(const MachineInstr* MI) const = 0;
|
2002-09-20 00:49:21 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|