Canonicalize header guards into a common format.
[oota-llvm.git] / lib / Target / AArch64 / AArch64TargetMachine.h
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_LIB_TARGET_AARCH64_AARCH64TARGETMACHINE_H
15 #define LLVM_LIB_TARGET_AARCH64_AARCH64TARGETMACHINE_H
16
17 #include "AArch64InstrInfo.h"
18 #include "AArch64Subtarget.h"
19 #include "llvm/IR/DataLayout.h"
20 #include "llvm/Target/TargetMachine.h"
21
22 namespace llvm {
23
24 class AArch64TargetMachine : public LLVMTargetMachine {
25 protected:
26   AArch64Subtarget Subtarget;
27
28 public:
29   AArch64TargetMachine(const Target &T, StringRef TT, StringRef CPU,
30                        StringRef FS, const TargetOptions &Options,
31                        Reloc::Model RM, CodeModel::Model CM,
32                        CodeGenOpt::Level OL, bool IsLittleEndian);
33
34   const AArch64Subtarget *getSubtargetImpl() const override {
35     return &Subtarget;
36   }
37
38   // Pass Pipeline Configuration
39   TargetPassConfig *createPassConfig(PassManagerBase &PM) override;
40
41   /// \brief Register AArch64 analysis passes with a pass manager.
42   void addAnalysisPasses(PassManagerBase &PM) override;
43 };
44
45 // AArch64leTargetMachine - AArch64 little endian target machine.
46 //
47 class AArch64leTargetMachine : public AArch64TargetMachine {
48   virtual void anchor();
49 public:
50   AArch64leTargetMachine(const Target &T, StringRef TT, StringRef CPU,
51                          StringRef FS, const TargetOptions &Options,
52                          Reloc::Model RM, CodeModel::Model CM,
53                          CodeGenOpt::Level OL);
54 };
55
56 // AArch64beTargetMachine - AArch64 big endian target machine.
57 //
58 class AArch64beTargetMachine : public AArch64TargetMachine {
59   virtual void anchor();
60 public:
61   AArch64beTargetMachine(const Target &T, StringRef TT, StringRef CPU,
62                          StringRef FS, const TargetOptions &Options,
63                          Reloc::Model RM, CodeModel::Model CM,
64                          CodeGenOpt::Level OL);
65 };
66
67 } // end namespace llvm
68
69 #endif