Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / lib / Target / NVPTX / MCTargetDesc / NVPTXMCAsmInfo.h
blob77c4daea2b6ab2dc08d89d8b8819c92b41963a27
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.
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"
18 namespace llvm {
19 class Triple;
21 class NVPTXMCAsmInfo : public MCAsmInfo {
22 virtual void anchor();
24 public:
25 explicit NVPTXMCAsmInfo(const Triple &TheTriple,
26 const MCTargetOptions &Options);
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;
39 } // namespace llvm
41 #endif