LLVM 17.0.0git
XtensaTargetMachine.h
Go to the documentation of this file.
1//===-- XtensaTargetMachine.h - Define TargetMachine for Xtensa -*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
6// See https://llvm.org/LICENSE.txt for license information.
7// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
8//
9//===----------------------------------------------------------------------===//
10//
11// This file declares the Xtensa specific subclass of TargetMachine.
12//
13//===----------------------------------------------------------------------===//
14
15#ifndef LLVM_LIB_TARGET_XTENSA_XTENSATARGETMACHINE_H
16#define LLVM_LIB_TARGET_XTENSA_XTENSATARGETMACHINE_H
17
19#include <optional>
20
21namespace llvm {
23
25 std::unique_ptr<TargetLoweringObjectFile> TLOF;
26public:
27 XtensaTargetMachine(const Target &T, const Triple &TT, StringRef CPU,
29 std::optional<Reloc::Model> RM,
30 std::optional<CodeModel::Model> CM, CodeGenOpt::Level OL,
31 bool JIT, bool isLittle);
32
33 XtensaTargetMachine(const Target &T, const Triple &TT, StringRef CPU,
35 std::optional<Reloc::Model> RM,
36 std::optional<CodeModel::Model> CM, CodeGenOpt::Level OL,
37 bool JIT);
38
41 return TLOF.get();
42 }
43};
44} // end namespace llvm
45
46#endif // LLVM_LIB_TARGET_XTENSA_XTENSATARGETMACHINE_H
This class describes a target machine that is implemented with the LLVM target-independent code gener...
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:50
TargetOptions Options
Target-Independent Code Generator Pass Configuration Options.
Target - Wrapper for Target specific information.
Triple - Helper class for working with autoconf configuration names.
Definition: Triple.h:44
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
PassManagerBase - An abstract interface to allow code to add passes to a pass manager without having ...
Level
Code generation optimization level.
Definition: CodeGen.h:57
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18
Target TheXtensaTarget