LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AArch64TargetMachine.h
Go to the documentation of this file.
1 //=== AArch64TargetMachine.h - Define TargetMachine for AArch64 -*- C++ -*-===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // This file declares the AArch64 specific subclass of TargetMachine.
11 //
12 //===----------------------------------------------------------------------===//
13 
14 #ifndef LLVM_AARCH64TARGETMACHINE_H
15 #define LLVM_AARCH64TARGETMACHINE_H
16 
17 #include "AArch64FrameLowering.h"
18 #include "AArch64ISelLowering.h"
19 #include "AArch64InstrInfo.h"
21 #include "AArch64Subtarget.h"
22 #include "llvm/IR/DataLayout.h"
24 
25 namespace llvm {
26 
28  AArch64Subtarget Subtarget;
29  AArch64InstrInfo InstrInfo;
30  const DataLayout DL;
31  AArch64TargetLowering TLInfo;
33  AArch64FrameLowering FrameLowering;
34 
35 public:
40 
41  const AArch64InstrInfo *getInstrInfo() const {
42  return &InstrInfo;
43  }
44 
46  return &FrameLowering;
47  }
48 
50  return &TLInfo;
51  }
52 
54  return &TSInfo;
55  }
56 
57  const AArch64Subtarget *getSubtargetImpl() const { return &Subtarget; }
58 
59  const DataLayout *getDataLayout() const { return &DL; }
60 
62  return &InstrInfo.getRegisterInfo();
63  }
64  TargetPassConfig *createPassConfig(PassManagerBase &PM);
65 };
66 
67 }
68 
69 #endif
const AArch64InstrInfo * getInstrInfo() const
const AArch64TargetLowering * getTargetLowering() const
const DataLayout * getDataLayout() const
const AArch64Subtarget * getSubtargetImpl() const
const TargetRegisterInfo & getRegisterInfo() const
AArch64TargetMachine(const Target &T, StringRef TT, StringRef CPU, StringRef FS, const TargetOptions &Options, Reloc::Model RM, CodeModel::Model CM, CodeGenOpt::Level OL)
const TargetRegisterInfo * getRegisterInfo() const
const AArch64SelectionDAGInfo * getSelectionDAGInfo() const
TargetPassConfig * createPassConfig(PassManagerBase &PM)
const AArch64FrameLowering * getFrameLowering() const