SystemZSubtarget.h [plain text]
#ifndef LLVM_TARGET_SystemZ_SUBTARGET_H
#define LLVM_TARGET_SystemZ_SUBTARGET_H
#include "llvm/Target/TargetSubtargetInfo.h"
#include <string>
#define GET_SUBTARGETINFO_HEADER
#include "SystemZGenSubtargetInfo.inc"
namespace llvm {
class GlobalValue;
class TargetMachine;
class SystemZSubtarget : public SystemZGenSubtargetInfo {
bool HasZ10Insts;
public:
SystemZSubtarget(const std::string &TT, const std::string &CPU,
const std::string &FS);
void ParseSubtargetFeatures(const std::string &FS, const std::string &CPU);
bool isZ10() const { return HasZ10Insts; }
bool GVRequiresExtraLoad(const GlobalValue* GV, const TargetMachine& TM,
bool isDirectCall) const;
};
}
#endif // LLVM_TARGET_SystemZ_SUBTARGET_H