blob: 0ff3674c59ed447f434261da856aabc1441e8c08 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
//===-- AMDILTargetMachine.h - Define TargetMachine for AMDIL ---*- 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 AMDIL specific subclass of TargetMachine.
//
//===----------------------------------------------------------------------===//
#ifndef AMDILTARGETMACHINE_H_
#define AMDILTARGETMACHINE_H_
#include "AMDILFrameLowering.h"
#include "AMDILISelLowering.h"
#include "AMDILInstrInfo.h"
#include "AMDILIntrinsicInfo.h"
#include "AMDILSubtarget.h"
#include "llvm/Target/TargetData.h"
#include "llvm/Target/TargetMachine.h"
namespace llvm
{
class raw_ostream;
class AMDILTargetMachine : public LLVMTargetMachine
{
private:
AMDILSubtarget Subtarget;
const TargetData DataLayout; // Calculates type size & alignment
AMDILFrameLowering FrameLowering;
AMDILInstrInfo InstrInfo;
AMDILTargetLowering TLInfo;
AMDILIntrinsicInfo IntrinsicInfo;
bool mDebugMode;
CodeGenOpt::Level mOptLevel;
protected:
public:
AMDILTargetMachine(const Target &T,
StringRef TT, StringRef CPU, StringRef FS,
TargetOptions Options,
Reloc::Model RM, CodeModel::Model CM,
CodeGenOpt::Level OL);
// Get Target/Subtarget specific information
virtual AMDILTargetLowering* getTargetLowering() const;
virtual const AMDILInstrInfo* getInstrInfo() const;
virtual const AMDILFrameLowering* getFrameLowering() const;
virtual const AMDILSubtarget* getSubtargetImpl() const;
virtual const AMDILRegisterInfo* getRegisterInfo() const;
virtual const TargetData* getTargetData() const;
virtual const AMDILIntrinsicInfo *getIntrinsicInfo() const;
// Pass Pipeline Configuration
virtual TargetPassConfig *createPassConfig(PassManagerBase &PM);
void dump(llvm::raw_ostream &O);
void setDebug(bool debugMode);
bool getDebug() const;
CodeGenOpt::Level getOptLevel() const { return mOptLevel; }
}; // AMDILTargetMachine
} // end namespace llvm
#endif // AMDILTARGETMACHINE_H_
|