LLVM
20.0.0git
include
llvm
MC
MCSectionSPIRV.h
Go to the documentation of this file.
1
//===- MCSectionSPIRV.h - SPIR-V Machine Code Sections ----------*- 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
// This file declares the MCSectionSPIRV class.
10
//
11
//===----------------------------------------------------------------------===//
12
13
#ifndef LLVM_MC_MCSECTIONSPIRV_H
14
#define LLVM_MC_MCSECTIONSPIRV_H
15
16
#include "
llvm/MC/MCSection.h
"
17
#include "
llvm/MC/SectionKind.h
"
18
19
namespace
llvm
{
20
21
class
MCSymbol
;
22
23
class
MCSectionSPIRV
final :
public
MCSection
{
24
friend
class
MCContext
;
25
26
MCSectionSPIRV
()
27
:
MCSection
(
SV_SPIRV
,
""
,
/*IsText=*/
true
,
/*IsVirtual=*/
false
,
28
/*Begin=*/
nullptr) {}
29
// TODO: Add StringRef Name to MCSectionSPIRV.
30
31
public
:
32
~MCSectionSPIRV
() =
default
;
33
void
printSwitchToSection
(
const
MCAsmInfo
&MAI,
const
Triple
&
T
,
34
raw_ostream
&
OS
,
35
uint32_t
Subsection)
const override
{}
36
bool
useCodeAlign
()
const override
{
return
false
; }
37
};
38
39
}
// end namespace llvm
40
41
#endif
// LLVM_MC_MCSECTIONSPIRV_H
true
basic Basic Alias true
Definition:
BasicAliasAnalysis.cpp:1994
MCSection.h
OS
raw_pwrite_stream & OS
Definition:
SampleProfWriter.cpp:53
SectionKind.h
T
llvm::MCAsmInfo
This class is intended to be used as a base class for asm properties and features specific to the tar...
Definition:
MCAsmInfo.h:56
llvm::MCContext
Context object for machine code objects.
Definition:
MCContext.h:83
llvm::MCSectionSPIRV
Definition:
MCSectionSPIRV.h:23
llvm::MCSectionSPIRV::printSwitchToSection
void printSwitchToSection(const MCAsmInfo &MAI, const Triple &T, raw_ostream &OS, uint32_t Subsection) const override
Definition:
MCSectionSPIRV.h:33
llvm::MCSectionSPIRV::~MCSectionSPIRV
~MCSectionSPIRV()=default
llvm::MCSectionSPIRV::useCodeAlign
bool useCodeAlign() const override
Return true if a .align directive should use "optimized nops" to fill instead of 0s.
Definition:
MCSectionSPIRV.h:36
llvm::MCSection
Instances of this class represent a uniqued identifier for a section in the current translation unit.
Definition:
MCSection.h:36
llvm::MCSection::SV_SPIRV
@ SV_SPIRV
Definition:
MCSection.h:49
llvm::Triple
Triple - Helper class for working with autoconf configuration names.
Definition:
Triple.h:44
llvm::raw_ostream
This class implements an extremely fast bulk output stream that can only output to a stream.
Definition:
raw_ostream.h:52
uint32_t
false
Definition:
StackSlotColoring.cpp:194
llvm::ISD::MCSymbol
@ MCSymbol
Definition:
ISDOpcodes.h:178
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition:
AddressRanges.h:18
Generated on Tue Nov 12 2024 11:57:34 for LLVM by
1.9.6