1 //===-- NVPTXMCAsmInfo.h - NVPTX asm properties ----------------*- C++ -*--===//
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
7 //===----------------------------------------------------------------------===//
9 // This file contains the declaration of the NVPTXMCAsmInfo class.
11 //===----------------------------------------------------------------------===//
13 #ifndef LLVM_LIB_TARGET_NVPTX_MCTARGETDESC_NVPTXMCASMINFO_H
14 #define LLVM_LIB_TARGET_NVPTX_MCTARGETDESC_NVPTXMCASMINFO_H
16 #include "llvm/MC/MCAsmInfo.h"
22 class NVPTXMCAsmInfo : public MCAsmInfo {
23 virtual void anchor();
26 explicit NVPTXMCAsmInfo(const Triple &TheTriple,
27 const MCTargetOptions &Options);
29 /// Return true if the .section directive should be omitted when
30 /// emitting \p SectionName. For example:
32 /// shouldOmitSectionDirective(".text")
34 /// returns false => .section .text,#alloc,#execinstr
35 /// returns true => .text
36 bool shouldOmitSectionDirective(StringRef SectionName) const override {