LLVM  13.0.0git
NVPTXTargetObjectFile.h
Go to the documentation of this file.
1 //===-- NVPTXTargetObjectFile.h - NVPTX 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_NVPTX_NVPTXTARGETOBJECTFILE_H
10 #define LLVM_LIB_TARGET_NVPTX_NVPTXTARGETOBJECTFILE_H
11 
12 #include "llvm/MC/MCSection.h"
13 #include "llvm/MC/SectionKind.h"
15 
16 namespace llvm {
17 
19 public:
21 
22  ~NVPTXTargetObjectFile() override;
23 
24  void Initialize(MCContext &ctx, const TargetMachine &TM) override {
26  }
27 
29  const Constant *C,
30  Align &Alignment) const override {
31  return ReadOnlySection;
32  }
33 
35  const TargetMachine &TM) const override {
36  return DataSection;
37  }
38 
40  const TargetMachine &TM) const override;
41 };
42 
43 } // end namespace llvm
44 
45 #endif // LLVM_LIB_TARGET_NVPTX_NVPTXTARGETOBJECTFILE_H
llvm::NVPTXTargetObjectFile::NVPTXTargetObjectFile
NVPTXTargetObjectFile()
Definition: NVPTXTargetObjectFile.h:20
llvm
Definition: AllocatorList.h:23
llvm::NVPTXTargetObjectFile::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: NVPTXTargetObjectFile.h:34
llvm::DataLayout
A parsed version of the target data layout string in and methods for querying it.
Definition: DataLayout.h:112
llvm::MCObjectFileInfo::ReadOnlySection
MCSection * ReadOnlySection
Section that is readonly and can contain arbitrary initialized data.
Definition: MCObjectFileInfo.h:67
llvm::MCContext
Context object for machine code objects.
Definition: MCContext.h:71
llvm::NVPTXTargetObjectFile::SelectSectionForGlobal
MCSection * SelectSectionForGlobal(const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const override
Definition: NVPTXISelLowering.cpp:5036
llvm::NVPTXTargetObjectFile::~NVPTXTargetObjectFile
~NVPTXTargetObjectFile() override
Definition: NVPTXISelLowering.cpp:5034
llvm::TargetLoweringObjectFile
Definition: TargetLoweringObjectFile.h:43
llvm::NVPTXTargetObjectFile::Initialize
void Initialize(MCContext &ctx, const TargetMachine &TM) override
This method must be called before any actual lowering is done.
Definition: NVPTXTargetObjectFile.h:24
C
(vector float) vec_cmpeq(*A, *B) C
Definition: README_ALTIVEC.txt:86
llvm::GlobalObject
Definition: GlobalObject.h:28
llvm::TargetLoweringObjectFile::Initialize
virtual void Initialize(MCContext &ctx, const TargetMachine &TM)
This method must be called before any actual lowering is done.
Definition: TargetLoweringObjectFile.cpp:42
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::TargetLoweringObjectFile::TM
const TargetMachine * TM
Definition: TargetLoweringObjectFile.h:66
llvm::Constant
This is an important base class in LLVM.
Definition: Constant.h:41
llvm::NVPTXTargetObjectFile
Definition: NVPTXTargetObjectFile.h:18
llvm::NVPTXTargetObjectFile::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: NVPTXTargetObjectFile.h:28
llvm::TargetMachine
Primary interface to the complete machine description for the target machine.
Definition: TargetMachine.h:77
MCSection.h
TargetLoweringObjectFile.h
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::MCObjectFileInfo::DataSection
MCSection * DataSection
Section directive for standard data.
Definition: MCObjectFileInfo.h:58
SectionKind.h