LLVM 20.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
18#include "XtensaSubtarget.h"
20#include <optional>
21
22namespace llvm {
24
26 std::unique_ptr<TargetLoweringObjectFile> TLOF;
27public:
28 XtensaTargetMachine(const Target &T, const Triple &TT, StringRef CPU,
30 std::optional<Reloc::Model> RM,
31 std::optional<CodeModel::Model> CM, CodeGenOptLevel OL,
32 bool JIT, bool isLittle);
33
34 XtensaTargetMachine(const Target &T, const Triple &TT, StringRef CPU,
36 std::optional<Reloc::Model> RM,
37 std::optional<CodeModel::Model> CM, CodeGenOptLevel OL,
38 bool JIT);
39
40 const XtensaSubtarget *getSubtargetImpl(const Function &F) const override;
41
43
45 return TLOF.get();
46 }
47
50 const TargetSubtargetInfo *STI) const override;
51
52protected:
54};
55} // end namespace llvm
56
57#endif // LLVM_LIB_TARGET_XTENSA_XTENSATARGETMACHINE_H
#define F(x, y, z)
Definition: MD5.cpp:55
Basic Register Allocator
Allocate memory in an ever growing pool, as if by bump-pointer.
Definition: Allocator.h:66
implements a set of functionality in the TargetMachine class for targets that make use of the indepen...
StringMap - This is an unconventional map that is specialized for handling keys that are "strings",...
Definition: StringMap.h:128
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:51
std::unique_ptr< const MCSubtargetInfo > STI
TargetOptions Options
Target-Independent Code Generator Pass Configuration Options.
TargetSubtargetInfo - Generic base class for all target subtargets.
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 ...
MachineFunctionInfo * createMachineFunctionInfo(BumpPtrAllocator &Allocator, const Function &F, const TargetSubtargetInfo *STI) const override
Create the target's instance of MachineFunctionInfo.
StringMap< std::unique_ptr< XtensaSubtarget > > SubtargetMap
TargetLoweringObjectFile * getObjFileLowering() const override
const XtensaSubtarget * getSubtargetImpl(const Function &F) const override
Virtual method implemented by subclasses that returns a reference to that target's TargetSubtargetInf...
PassManagerBase - An abstract interface to allow code to add passes to a pass manager without having ...
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18
CodeGenOptLevel
Code generation optimization level.
Definition: CodeGen.h:54
Target TheXtensaTarget
MachineFunctionInfo - This class can be derived from and used by targets to hold private target-speci...