LLVM  8.0.1
NVPTXMCAsmInfo.h
Go to the documentation of this file.
1 //===-- NVPTXMCAsmInfo.h - NVPTX asm properties ----------------*- C++ -*--===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // This file contains the declaration of the NVPTXMCAsmInfo class.
11 //
12 //===----------------------------------------------------------------------===//
13 
14 #ifndef LLVM_LIB_TARGET_NVPTX_MCTARGETDESC_NVPTXMCASMINFO_H
15 #define LLVM_LIB_TARGET_NVPTX_MCTARGETDESC_NVPTXMCASMINFO_H
16 
17 #include "llvm/MC/MCAsmInfo.h"
18 
19 namespace llvm {
20 class Target;
21 class Triple;
22 
23 class NVPTXMCAsmInfo : public MCAsmInfo {
24  virtual void anchor();
25 
26 public:
27  explicit NVPTXMCAsmInfo(const Triple &TheTriple);
28 
29  /// Return true if the .section directive should be omitted when
30  /// emitting \p SectionName. For example:
31  ///
32  /// shouldOmitSectionDirective(".text")
33  ///
34  /// returns false => .section .text,#alloc,#execinstr
35  /// returns true => .text
37  return true;
38  }
39 };
40 } // namespace llvm
41 
42 #endif
This class represents lattice values for constants.
Definition: AllocatorList.h:24
NVPTXMCAsmInfo(const Triple &TheTriple)
This class is intended to be used as a base class for asm properties and features specific to the tar...
Definition: MCAsmInfo.h:56
Triple - Helper class for working with autoconf configuration names.
Definition: Triple.h:44
bool shouldOmitSectionDirective(StringRef SectionName) const override
Return true if the .section directive should be omitted when emitting SectionName.
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:49