37 if (SectionName.
startswith(
".AMDGPU.comment."))
StringRef getSection() const
Get the custom section of this global if it has one.
Instances of this class represent a uniqued identifier for a section in the current translation unit...
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...
This class represents lattice values for constants.
MCSection * TextSection
Section directive for standard text.
This file declares the AMDGPU-specific subclass of TargetLoweringObjectFile.
MCSection * SelectSectionForGlobal(const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const override
LLVM_NODISCARD LLVM_ATTRIBUTE_ALWAYS_INLINE bool startswith(StringRef Prefix) const
Check if this string starts with the given Prefix.
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...
bool isReadOnlySegment(const GlobalValue *GV)
MCSection * SelectSectionForGlobal(const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const override
SectionKind - This is a simple POD value that classifies the properties of a section.
const Triple & getTargetTriple() const
The AMDGPU TargetMachine interface definition for hw codgen targets.
static SectionKind getMetadata()
bool shouldEmitConstantsToTextSection(const Triple &TT)
Primary interface to the complete machine description for the target machine.
StringRef - Represent a constant reference to a string, i.e.