LLVM  10.0.0
VETargetMachine.h
Go to the documentation of this file.
1 //===-- VETargetMachine.h - Define TargetMachine for VE ---------*- 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 VE specific subclass of TargetMachine.
10 //
11 //===----------------------------------------------------------------------===//
12 
13 #ifndef LLVM_LIB_TARGET_VE_VETARGETMACHINE_H
14 #define LLVM_LIB_TARGET_VE_VETARGETMACHINE_H
15 
16 #include "VEInstrInfo.h"
17 #include "VESubtarget.h"
19 
20 namespace llvm {
21 
23  std::unique_ptr<TargetLoweringObjectFile> TLOF;
24  VESubtarget Subtarget;
25  // Hold Strings that can be free'd all together with VETargetMachine
26  // e.g.: "GCC_except_tableXX" string.
27  std::list<std::string> StrList;
28 
29 public:
30  VETargetMachine(const Target &T, const Triple &TT, StringRef CPU,
33  CodeGenOpt::Level OL, bool JIT);
34  ~VETargetMachine() override;
35 
36  const VESubtarget *getSubtargetImpl() const { return &Subtarget; }
37  const VESubtarget *getSubtargetImpl(const Function &) const override {
38  return &Subtarget;
39  }
40  std::list<std::string> *getStrList() const {
41  return const_cast<std::list<std::string> *>(&StrList);
42  }
43 
44  // Pass Pipeline Configuration
47  return TLOF.get();
48  }
49 
50  bool isMachineVerifierClean() const override { return false; }
51 
53 };
54 
55 } // namespace llvm
56 
57 #endif
This class represents lattice values for constants.
Definition: AllocatorList.h:23
TargetLoweringObjectFile * getObjFileLowering() const override
VETargetMachine(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)
Create an Aurora VE architecture model.
F(f)
TargetPassConfig * createPassConfig(PassManagerBase &PM) override
Create a pass configuration object to be used by addPassToEmitX methods for generating a pipeline of ...
std::list< std::string > * getStrList() const
Target-Independent Code Generator Pass Configuration Options.
This class describes a target machine that is implemented with the LLVM target-independent code gener...
Triple - Helper class for working with autoconf configuration names.
Definition: Triple.h:43
This pass provides access to the codegen interfaces that are needed for IR-level transformations.
PassManagerBase - An abstract interface to allow code to add passes to a pass manager without having ...
const VESubtarget * getSubtargetImpl(const Function &) const override
Virtual method implemented by subclasses that returns a reference to that target&#39;s TargetSubtargetInf...
Target - Wrapper for Target specific information.
TargetTransformInfo getTargetTransformInfo(const Function &F) override
Get a TargetTransformInfo implementation for the target.
TargetOptions Options
bool isMachineVerifierClean() const override
Returns true if the target is expected to pass all machine verifier checks.
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:54
const VESubtarget * getSubtargetImpl() const