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