Path: blob/main/contrib/llvm-project/llvm/lib/Target/NVPTX/MCTargetDesc/NVPTXMCAsmInfo.h
35295 views
//===-- NVPTXMCAsmInfo.h - NVPTX asm properties ----------------*- C++ -*--===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//7//8// This file contains the declaration of the NVPTXMCAsmInfo class.9//10//===----------------------------------------------------------------------===//1112#ifndef LLVM_LIB_TARGET_NVPTX_MCTARGETDESC_NVPTXMCASMINFO_H13#define LLVM_LIB_TARGET_NVPTX_MCTARGETDESC_NVPTXMCASMINFO_H1415#include "llvm/MC/MCAsmInfo.h"1617namespace llvm {18class Triple;1920class NVPTXMCAsmInfo : public MCAsmInfo {21virtual void anchor();2223public:24explicit NVPTXMCAsmInfo(const Triple &TheTriple,25const MCTargetOptions &Options);2627/// Return true if the .section directive should be omitted when28/// emitting \p SectionName. For example:29///30/// shouldOmitSectionDirective(".text")31///32/// returns false => .section .text,#alloc,#execinstr33/// returns true => .text34bool shouldOmitSectionDirective(StringRef SectionName) const override {35return true;36}37};38} // namespace llvm3940#endif414243