[ORC] Add std::tuple support to SimplePackedSerialization.
[llvm-project.git] / llvm / lib / Target / Lanai / LanaiTargetMachine.h
blob00922f44f33a6eb56301a60620e7888d2be3561c
1 //===-- LanaiTargetMachine.h - Define TargetMachine for Lanai --- C++ ---===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // This file declares the Lanai specific subclass of TargetMachine.
11 //===----------------------------------------------------------------------===//
13 #ifndef LLVM_LIB_TARGET_LANAI_LANAITARGETMACHINE_H
14 #define LLVM_LIB_TARGET_LANAI_LANAITARGETMACHINE_H
16 #include "LanaiISelLowering.h"
17 #include "LanaiInstrInfo.h"
18 #include "LanaiSelectionDAGInfo.h"
19 #include "LanaiSubtarget.h"
20 #include "llvm/Target/TargetMachine.h"
22 namespace llvm {
24 class LanaiTargetMachine : public LLVMTargetMachine {
25 LanaiSubtarget Subtarget;
26 std::unique_ptr<TargetLoweringObjectFile> TLOF;
28 public:
29 LanaiTargetMachine(const Target &TheTarget, const Triple &TargetTriple,
30 StringRef Cpu, StringRef FeatureString,
31 const TargetOptions &Options,
32 Optional<Reloc::Model> RelocationModel,
33 Optional<CodeModel::Model> CodeModel,
34 CodeGenOpt::Level OptLevel, bool JIT);
36 const LanaiSubtarget *
37 getSubtargetImpl(const llvm::Function & /*Fn*/) const override {
38 return &Subtarget;
41 TargetTransformInfo getTargetTransformInfo(const Function &F) override;
43 // Pass Pipeline Configuration
44 TargetPassConfig *createPassConfig(PassManagerBase &pass_manager) override;
46 TargetLoweringObjectFile *getObjFileLowering() const override {
47 return TLOF.get();
50 bool isMachineVerifierClean() const override {
51 return false;
54 } // namespace llvm
56 #endif // LLVM_LIB_TARGET_LANAI_LANAITARGETMACHINE_H