2013-05-07 00:15:19 +08:00
|
|
|
//==- SystemZTargetMachine.h - Define TargetMachine for SystemZ ---*- C++ -*-=//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// This file declares the SystemZ specific subclass of TargetMachine.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
|
2014-08-14 00:26:38 +08:00
|
|
|
#ifndef LLVM_LIB_TARGET_SYSTEMZ_SYSTEMZTARGETMACHINE_H
|
|
|
|
#define LLVM_LIB_TARGET_SYSTEMZ_SYSTEMZTARGETMACHINE_H
|
2013-05-07 00:15:19 +08:00
|
|
|
|
2014-01-07 19:48:04 +08:00
|
|
|
#include "SystemZSubtarget.h"
|
2013-05-07 00:15:19 +08:00
|
|
|
#include "llvm/Target/TargetMachine.h"
|
|
|
|
|
|
|
|
namespace llvm {
|
|
|
|
|
2014-07-02 04:19:02 +08:00
|
|
|
class TargetFrameLowering;
|
|
|
|
|
2013-05-07 00:15:19 +08:00
|
|
|
class SystemZTargetMachine : public LLVMTargetMachine {
|
2014-11-13 17:26:31 +08:00
|
|
|
std::unique_ptr<TargetLoweringObjectFile> TLOF;
|
2013-05-07 00:15:19 +08:00
|
|
|
SystemZSubtarget Subtarget;
|
|
|
|
|
|
|
|
public:
|
2015-06-12 03:41:26 +08:00
|
|
|
SystemZTargetMachine(const Target &T, const Triple &TT, StringRef CPU,
|
2013-05-07 00:15:19 +08:00
|
|
|
StringRef FS, const TargetOptions &Options,
|
|
|
|
Reloc::Model RM, CodeModel::Model CM,
|
|
|
|
CodeGenOpt::Level OL);
|
2014-11-21 07:37:18 +08:00
|
|
|
~SystemZTargetMachine() override;
|
2013-05-07 00:15:19 +08:00
|
|
|
|
2015-03-21 12:22:23 +08:00
|
|
|
const SystemZSubtarget *getSubtargetImpl() const { return &Subtarget; }
|
|
|
|
const SystemZSubtarget *getSubtargetImpl(const Function &) const override {
|
2013-05-07 00:15:19 +08:00
|
|
|
return &Subtarget;
|
|
|
|
}
|
|
|
|
// Override LLVMTargetMachine
|
2014-03-06 20:03:36 +08:00
|
|
|
TargetPassConfig *createPassConfig(PassManagerBase &PM) override;
|
2015-03-31 20:52:27 +08:00
|
|
|
TargetIRAnalysis getTargetIRAnalysis() override;
|
2014-11-13 17:26:31 +08:00
|
|
|
TargetLoweringObjectFile *getObjFileLowering() const override {
|
|
|
|
return TLOF.get();
|
|
|
|
}
|
2015-12-10 17:10:07 +08:00
|
|
|
|
|
|
|
bool targetSchedulesPostRAScheduling() const override { return true; };
|
|
|
|
|
2013-05-07 00:15:19 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
} // end namespace llvm
|
|
|
|
|
|
|
|
#endif
|