LLVM  7.0.0
Nios2TargetMachine.h
Go to the documentation of this file.
1 //===-- Nios2TargetMachine.h - Define TargetMachine for Nios2 ---*- 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 Nios2 specific subclass of TargetMachine.
11 //
12 //===----------------------------------------------------------------------===//
13 
14 #ifndef LLVM_LIB_TARGET_NIOS2_NIOS2TARGETMACHINE_H
15 #define LLVM_LIB_TARGET_NIOS2_NIOS2TARGETMACHINE_H
16 
17 #include "Nios2Subtarget.h"
19 
20 namespace llvm {
22  mutable StringMap<std::unique_ptr<Nios2Subtarget>> SubtargetMap;
23  std::unique_ptr<TargetLoweringObjectFile> TLOF;
24  Nios2Subtarget Subtarget;
25 
26 public:
27  Nios2TargetMachine(const Target &T, const Triple &TT, StringRef CPU,
28  StringRef FS, const TargetOptions &Options,
30  CodeGenOpt::Level OL, bool JIT);
31  ~Nios2TargetMachine() override;
32 
33  const Nios2Subtarget *getSubtargetImpl() const { return &Subtarget; }
34  const Nios2Subtarget *getSubtargetImpl(const Function &F) const override;
35 
37  return TLOF.get();
38  }
39 
40  // Pass Pipeline Configuration
42 };
43 } // namespace llvm
44 
45 #endif
Compute iterated dominance frontiers using a linear time algorithm.
Definition: AllocatorList.h:24
TargetPassConfig * createPassConfig(PassManagerBase &PM) override
Create a pass configuration object to be used by addPassToEmitX methods for generating a pipeline of ...
TargetLoweringObjectFile * getObjFileLowering() const override
F(f)
Target-Independent Code Generator Pass Configuration Options.
This class describes a target machine that is implemented with the LLVM target-independent code gener...
Nios2TargetMachine(const Target &T, const Triple &TT, StringRef CPU, StringRef FS, const TargetOptions &Options, Optional< Reloc::Model > RM, Optional< CodeModel::Model > CM, CodeGenOpt::Level OL, bool JIT)
Triple - Helper class for working with autoconf configuration names.
Definition: Triple.h:44
const Nios2Subtarget * getSubtargetImpl() const
PassManagerBase - An abstract interface to allow code to add passes to a pass manager without having ...
StringMap - This is an unconventional map that is specialized for handling keys that are "strings"...
Definition: StringMap.h:220
Target - Wrapper for Target specific information.
TargetOptions Options
Definition: TargetMachine.h:98
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:49