2008-04-24 06:29:24 +08:00
|
|
|
//===-- CPPTargetMachine.h - TargetMachine for the C++ backend --*- 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 TargetMachine that is used by the C++ backend.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2014-08-14 00:26:38 +08:00
|
|
|
#ifndef LLVM_LIB_TARGET_CPPBACKEND_CPPTARGETMACHINE_H
|
|
|
|
#define LLVM_LIB_TARGET_CPPBACKEND_CPPTARGETMACHINE_H
|
2008-04-24 06:29:24 +08:00
|
|
|
|
2013-01-02 19:36:10 +08:00
|
|
|
#include "llvm/IR/DataLayout.h"
|
2012-12-04 15:12:27 +08:00
|
|
|
#include "llvm/Target/TargetMachine.h"
|
2014-08-05 00:40:55 +08:00
|
|
|
#include "llvm/Target/TargetSubtargetInfo.h"
|
2008-04-24 06:29:24 +08:00
|
|
|
|
|
|
|
namespace llvm {
|
|
|
|
|
2009-07-15 04:18:05 +08:00
|
|
|
class formatted_raw_ostream;
|
2008-08-21 08:14:44 +08:00
|
|
|
|
2008-04-24 06:29:24 +08:00
|
|
|
struct CPPTargetMachine : public TargetMachine {
|
2015-06-12 03:41:26 +08:00
|
|
|
CPPTargetMachine(const Target &T, const Triple &TT, StringRef CPU,
|
|
|
|
StringRef FS, const TargetOptions &Options, Reloc::Model RM,
|
2015-03-12 08:07:24 +08:00
|
|
|
CodeModel::Model CM, CodeGenOpt::Level OL)
|
2015-03-21 12:22:23 +08:00
|
|
|
: TargetMachine(T, "", TT, CPU, FS, Options) {}
|
2008-04-24 06:29:24 +08:00
|
|
|
|
2014-08-05 00:40:55 +08:00
|
|
|
public:
|
2015-04-15 06:14:34 +08:00
|
|
|
bool addPassesToEmitFile(PassManagerBase &PM, raw_pwrite_stream &Out,
|
2014-04-29 15:58:41 +08:00
|
|
|
CodeGenFileType FileType, bool DisableVerify,
|
2015-07-07 01:44:26 +08:00
|
|
|
AnalysisID StartBefore, AnalysisID StartAfter,
|
|
|
|
AnalysisID StopAfter,
|
2015-06-16 04:30:22 +08:00
|
|
|
MachineFunctionInitializer *MFInitializer) override;
|
2008-04-24 06:29:24 +08:00
|
|
|
};
|
|
|
|
|
2009-07-19 07:03:22 +08:00
|
|
|
extern Target TheCppBackendTarget;
|
|
|
|
|
2015-06-23 17:49:53 +08:00
|
|
|
} // End llvm namespace
|
2008-04-24 06:29:24 +08:00
|
|
|
|
|
|
|
|
|
|
|
#endif
|