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.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef CPPTARGETMACHINE_H
|
|
|
|
#define CPPTARGETMACHINE_H
|
|
|
|
|
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"
|
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 {
|
2011-07-19 06:37:02 +00:00
|
|
|
CPPTargetMachine(const Target &T, StringRef TT,
|
2011-12-02 22:16:29 +00:00
|
|
|
StringRef CPU, StringRef FS, const TargetOptions &Options,
|
2011-11-16 08:38:26 +00:00
|
|
|
Reloc::Model RM, CodeModel::Model CM,
|
|
|
|
CodeGenOpt::Level OL)
|
2011-12-02 22:16:29 +00:00
|
|
|
: TargetMachine(T, TT, CPU, FS, Options) {}
|
2008-04-23 22:29:24 +00:00
|
|
|
|
2010-05-11 19:57:55 +00:00
|
|
|
virtual bool addPassesToEmitFile(PassManagerBase &PM,
|
|
|
|
formatted_raw_ostream &Out,
|
|
|
|
CodeGenFileType FileType,
|
2012-07-02 19:48:45 +00:00
|
|
|
bool DisableVerify,
|
|
|
|
AnalysisID StartAfter,
|
|
|
|
AnalysisID StopAfter);
|
2008-04-23 22:29:24 +00:00
|
|
|
|
2014-04-28 04:05:08 +00:00
|
|
|
virtual const DataLayout *getDataLayout() const { return nullptr; }
|
2008-04-23 22:29:24 +00:00
|
|
|
};
|
|
|
|
|
2009-07-18 23:03:22 +00:00
|
|
|
extern Target TheCppBackendTarget;
|
|
|
|
|
2008-04-23 22:29:24 +00:00
|
|
|
} // End llvm namespace
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|