LLVM  14.0.0git
XCoreTargetObjectFile.h
Go to the documentation of this file.
1 //===-- XCoreTargetObjectFile.h - XCore 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_XCORE_XCORETARGETOBJECTFILE_H
10 #define LLVM_LIB_TARGET_XCORE_XCORETARGETOBJECTFILE_H
11 
13 
14 namespace llvm {
15 
16 static const unsigned CodeModelLargeSize = 256;
17 
19  MCSection *BSSSectionLarge;
20  MCSection *DataSectionLarge;
21  MCSection *ReadOnlySectionLarge;
22  MCSection *DataRelROSectionLarge;
23 
24  public:
25  void Initialize(MCContext &Ctx, const TargetMachine &TM) override;
26 
28  const TargetMachine &TM) const override;
29 
31  const TargetMachine &TM) const override;
32 
34  const Constant *C,
35  Align &Alignment) const override;
36  };
37 } // end namespace llvm
38 
39 #endif
llvm
This file implements support for optimizing divisions by a constant.
Definition: AllocatorList.h:23
llvm::DataLayout
A parsed version of the target data layout string in and methods for querying it.
Definition: DataLayout.h:113
llvm::MCContext
Context object for machine code objects.
Definition: MCContext.h:72
llvm::TargetLoweringObjectFileELF
Definition: TargetLoweringObjectFileImpl.h:33
llvm::XCoreTargetObjectFile::Initialize
void Initialize(MCContext &Ctx, const TargetMachine &TM) override
This method must be called before any actual lowering is done.
Definition: XCoreTargetObjectFile.cpp:20
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::XCoreTargetObjectFile::SelectSectionForGlobal
MCSection * SelectSectionForGlobal(const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const override
Definition: XCoreTargetObjectFile.cpp:108
llvm::TargetLoweringObjectFile::TM
const TargetMachine * TM
Definition: TargetLoweringObjectFile.h:66
llvm::Constant
This is an important base class in LLVM.
Definition: Constant.h:41
llvm::XCoreTargetObjectFile::getSectionForConstant
MCSection * getSectionForConstant(const DataLayout &DL, SectionKind Kind, const Constant *C, Align &Alignment) const override
Given a constant with the SectionKind, return a section that it should be placed in.
Definition: XCoreTargetObjectFile.cpp:143
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::CodeModelLargeSize
static const unsigned CodeModelLargeSize
Definition: XCoreTargetObjectFile.h:16
llvm::SectionKind
SectionKind - This is a simple POD value that classifies the properties of a section.
Definition: SectionKind.h:22
llvm::XCoreTargetObjectFile
Definition: XCoreTargetObjectFile.h:18
llvm::XCoreTargetObjectFile::getExplicitSectionGlobal
MCSection * getExplicitSectionGlobal(const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const override
Targets should implement this method to assign a section to globals with an explicit section specfied...
Definition: XCoreTargetObjectFile.cpp:97
TargetLoweringObjectFileImpl.h