NVPTXMCAsmInfo.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. #ifndef LLVM_LIB_TARGET_NVPTX_MCTARGETDESC_NVPTXMCASMINFO_H
  13. #define LLVM_LIB_TARGET_NVPTX_MCTARGETDESC_NVPTXMCASMINFO_H
  14. #include "llvm/MC/MCAsmInfo.h"
  15. namespace llvm {
  16. class Triple;
  17. class NVPTXMCAsmInfo : public MCAsmInfo {
  18. virtual void anchor();
  19. public:
  20. explicit NVPTXMCAsmInfo(const Triple &TheTriple,
  21. const MCTargetOptions &Options);
  22. /// Return true if the .section directive should be omitted when
  23. /// emitting \p SectionName. For example:
  24. ///
  25. /// shouldOmitSectionDirective(".text")
  26. ///
  27. /// returns false => .section .text,#alloc,#execinstr
  28. /// returns true => .text
  29. bool shouldOmitSectionDirective(StringRef SectionName) const override {
  30. return true;
  31. }
  32. };
  33. } // namespace llvm
  34. #endif