LLVM  14.0.0git
MipsTargetObjectFile.h
Go to the documentation of this file.
1 //===-- llvm/Target/MipsTargetObjectFile.h - Mips Object Info ---*- 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 #ifndef LLVM_LIB_TARGET_MIPS_MIPSTARGETOBJECTFILE_H
10 #define LLVM_LIB_TARGET_MIPS_MIPSTARGETOBJECTFILE_H
11 
13 
14 namespace llvm {
15 class MipsTargetMachine;
17  MCSection *SmallDataSection;
18  MCSection *SmallBSSSection;
19  const MipsTargetMachine *TM;
20 
21  bool IsGlobalInSmallSection(const GlobalObject *GO, const TargetMachine &TM,
22  SectionKind Kind) const;
23  bool IsGlobalInSmallSectionImpl(const GlobalObject *GO,
24  const TargetMachine &TM) const;
25  public:
26 
27  void Initialize(MCContext &Ctx, const TargetMachine &TM) override;
28 
29  /// Return true if this global address should be placed into small data/bss
30  /// section.
31  bool IsGlobalInSmallSection(const GlobalObject *GO,
32  const TargetMachine &TM) const;
33 
35  const TargetMachine &TM) const override;
36 
37  /// Return true if this constant should be placed into small data section.
38  bool IsConstantInSmallSection(const DataLayout &DL, const Constant *CN,
39  const TargetMachine &TM) const;
40 
42  const Constant *C,
43  Align &Alignment) const override;
44  /// Describe a TLS variable address within debug info.
45  const MCExpr *getDebugThreadLocalSymbol(const MCSymbol *Sym) const override;
46  };
47 } // end namespace llvm
48 
49 #endif
llvm::MipsTargetMachine
Definition: MipsTargetMachine.h:27
llvm
---------------------— PointerInfo ------------------------------------—
Definition: AllocatorList.h:23
llvm::MipsTargetObjectFile::Initialize
void Initialize(MCContext &Ctx, const TargetMachine &TM) override
This method must be called before any actual lowering is done.
Definition: MipsTargetObjectFile.cpp:45
llvm::MCSymbol
MCSymbol - Instances of this class represent a symbol name in the MC file, and MCSymbols are created ...
Definition: MCSymbol.h:41
llvm::DataLayout
A parsed version of the target data layout string in and methods for querying it.
Definition: DataLayout.h:112
llvm::MCContext
Context object for machine code objects.
Definition: MCContext.h:72
llvm::TargetLoweringObjectFileELF
Definition: TargetLoweringObjectFileImpl.h:33
llvm::MipsTargetObjectFile::SelectSectionForGlobal
MCSection * SelectSectionForGlobal(const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const override
Definition: MipsTargetObjectFile.cpp:149
C
(vector float) vec_cmpeq(*A, *B) C
Definition: README_ALTIVEC.txt:86
llvm::GlobalObject
Definition: GlobalObject.h:28
llvm::Align
This struct is a compact representation of a valid (non-zero power of two) alignment.
Definition: Alignment.h:39
llvm::lltok::Kind
Kind
Definition: LLToken.h:18
llvm::MipsTargetObjectFile::getSectionForConstant
MCSection * getSectionForConstant(const DataLayout &DL, SectionKind Kind, const Constant *C, Align &Alignment) const override
Return true if this constant should be placed into small data section.
Definition: MipsTargetObjectFile.cpp:176
llvm::Constant
This is an important base class in LLVM.
Definition: Constant.h:41
llvm::MipsTargetObjectFile::getDebugThreadLocalSymbol
const MCExpr * getDebugThreadLocalSymbol(const MCSymbol *Sym) const override
Describe a TLS variable address within debug info.
Definition: MipsTargetObjectFile.cpp:189
llvm::TargetMachine
Primary interface to the complete machine description for the target machine.
Definition: TargetMachine.h:79
DL
MachineBasicBlock MachineBasicBlock::iterator DebugLoc DL
Definition: AArch64SLSHardening.cpp:76
llvm::MCSection
Instances of this class represent a uniqued identifier for a section in the current translation unit.
Definition: MCSection.h:39
llvm::SectionKind
SectionKind - This is a simple POD value that classifies the properties of a section.
Definition: SectionKind.h:22
llvm::MipsTargetObjectFile
Definition: MipsTargetObjectFile.h:16
TM
const char LLVMTargetMachineRef TM
Definition: PassBuilderBindings.cpp:47
llvm::MipsTargetObjectFile::IsConstantInSmallSection
bool IsConstantInSmallSection(const DataLayout &DL, const Constant *CN, const TargetMachine &TM) const
Return true if this constant should be placed into small data section.
Definition: MipsTargetObjectFile.cpp:167
llvm::MCExpr
Base class for the full range of assembler expressions which are needed for parsing.
Definition: MCExpr.h:35
TargetLoweringObjectFileImpl.h