LLVM
17.0.0git
lib
Target
AMDGPU
AMDGPUTargetObjectFile.h
Go to the documentation of this file.
1
//===-- AMDGPUTargetObjectFile.h - AMDGPU 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
/// \file
10
/// This file declares the AMDGPU-specific subclass of
11
/// TargetLoweringObjectFile.
12
///
13
//===----------------------------------------------------------------------===//
14
15
#ifndef LLVM_LIB_TARGET_AMDGPU_AMDGPUTARGETOBJECTFILE_H
16
#define LLVM_LIB_TARGET_AMDGPU_AMDGPUTARGETOBJECTFILE_H
17
18
#include "
llvm/CodeGen/TargetLoweringObjectFileImpl.h
"
19
20
namespace
llvm
{
21
22
class
AMDGPUTargetObjectFile
:
public
TargetLoweringObjectFileELF
{
23
public
:
24
MCSection
*
SelectSectionForGlobal
(
const
GlobalObject
*GO,
SectionKind
Kind,
25
const
TargetMachine
&
TM
)
const override
;
26
MCSection
*
getExplicitSectionGlobal
(
const
GlobalObject
*GO,
SectionKind
Kind,
27
const
TargetMachine
&
TM
)
const override
;
28
};
29
30
}
// end namespace llvm
31
32
#endif
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition:
AddressRanges.h:18
llvm::TargetLoweringObjectFileELF
Definition:
TargetLoweringObjectFileImpl.h:34
llvm::AMDGPUTargetObjectFile::SelectSectionForGlobal
MCSection * SelectSectionForGlobal(const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const override
Definition:
AMDGPUTargetObjectFile.cpp:20
llvm::GlobalObject
Definition:
GlobalObject.h:27
llvm::TargetLoweringObjectFile::TM
const TargetMachine * TM
Definition:
TargetLoweringObjectFile.h:68
llvm::AMDGPUTargetObjectFile::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:
AMDGPUTargetObjectFile.cpp:29
llvm::TargetMachine
Primary interface to the complete machine description for the target machine.
Definition:
TargetMachine.h:78
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::AMDGPUTargetObjectFile
Definition:
AMDGPUTargetObjectFile.h:22
TargetLoweringObjectFileImpl.h
Generated on Sat Jan 28 2023 09:55:38 for LLVM by
1.8.17