LLVM
13.0.0git
lib
Target
NVPTX
MCTargetDesc
NVPTXMCAsmInfo.h
Go to the documentation of this file.
1
//===-- NVPTXMCAsmInfo.h - NVPTX asm properties ----------------*- 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 contains the declaration of the NVPTXMCAsmInfo class.
10
//
11
//===----------------------------------------------------------------------===//
12
13
#ifndef LLVM_LIB_TARGET_NVPTX_MCTARGETDESC_NVPTXMCASMINFO_H
14
#define LLVM_LIB_TARGET_NVPTX_MCTARGETDESC_NVPTXMCASMINFO_H
15
16
#include "
llvm/MC/MCAsmInfo.h
"
17
18
namespace
llvm
{
19
class
Triple;
20
21
class
NVPTXMCAsmInfo
:
public
MCAsmInfo
{
22
virtual
void
anchor();
23
24
public
:
25
explicit
NVPTXMCAsmInfo
(
const
Triple
&TheTriple,
26
const
MCTargetOptions
&Options);
27
28
/// Return true if the .section directive should be omitted when
29
/// emitting \p SectionName. For example:
30
///
31
/// shouldOmitSectionDirective(".text")
32
///
33
/// returns false => .section .text,#alloc,#execinstr
34
/// returns true => .text
35
bool
shouldOmitSectionDirective
(
StringRef
SectionName
)
const override
{
36
return
true
;
37
}
38
};
39
}
// namespace llvm
40
41
#endif
llvm
This class represents lattice values for constants.
Definition:
AllocatorList.h:23
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::Triple
Triple - Helper class for working with autoconf configuration names.
Definition:
Triple.h:45
llvm::NVPTXMCAsmInfo::NVPTXMCAsmInfo
NVPTXMCAsmInfo(const Triple &TheTriple, const MCTargetOptions &Options)
Definition:
NVPTXMCAsmInfo.cpp:20
llvm::NVPTXMCAsmInfo::shouldOmitSectionDirective
bool shouldOmitSectionDirective(StringRef SectionName) const override
Return true if the .section directive should be omitted when emitting SectionName.
Definition:
NVPTXMCAsmInfo.h:35
llvm::NVPTXMCAsmInfo
Definition:
NVPTXMCAsmInfo.h:21
llvm::MCTargetOptions
Definition:
MCTargetOptions.h:36
MCAsmInfo.h
llvm::StringRef
StringRef - Represent a constant reference to a string, i.e.
Definition:
StringRef.h:57
llvm::SectionName
Definition:
DWARFSection.h:20
Generated on Fri Mar 5 2021 21:58:00 for LLVM by
1.8.17