LLVM 19.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
16namespace llvm {
17
19public:
21
23
25 const Constant *C,
26 Align &Alignment) const override {
27 return ReadOnlySection;
28 }
29
31 const TargetMachine &TM) const override {
32 return DataSection;
33 }
34
36 const TargetMachine &TM) const override;
37};
38
39} // end namespace llvm
40
41#endif // LLVM_LIB_TARGET_NVPTX_NVPTXTARGETOBJECTFILE_H
MachineBasicBlock MachineBasicBlock::iterator DebugLoc DL
This is an important base class in LLVM.
Definition: Constant.h:41
A parsed version of the target data layout string in and methods for querying it.
Definition: DataLayout.h:110
MCSection * ReadOnlySection
Section that is readonly and can contain arbitrary initialized data.
MCSection * DataSection
Section directive for standard data.
Instances of this class represent a uniqued identifier for a section in the current translation unit.
Definition: MCSection.h:39
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.
MCSection * SelectSectionForGlobal(const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const override
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...
SectionKind - This is a simple POD value that classifies the properties of a section.
Definition: SectionKind.h:22
Primary interface to the complete machine description for the target machine.
Definition: TargetMachine.h:76
@ C
The default llvm calling convention, compatible with C.
Definition: CallingConv.h:34
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18
This struct is a compact representation of a valid (non-zero power of two) alignment.
Definition: Alignment.h:39