brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.3 KiB · 65c9b19 Raw
34 lines · c
1//===-- MCTargetDesc/AMDGPUMCAsmInfo.h - AMDGPU MCAsm Interface -*- 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-exception6//7//===----------------------------------------------------------------------===//8//9/// \file10//11//===----------------------------------------------------------------------===//12 13#ifndef LLVM_LIB_TARGET_AMDGPU_MCTARGETDESC_AMDGPUMCASMINFO_H14#define LLVM_LIB_TARGET_AMDGPU_MCTARGETDESC_AMDGPUMCASMINFO_H15 16#include "llvm/MC/MCAsmInfoELF.h"17namespace llvm {18 19class Triple;20 21// If you need to create another MCAsmInfo class, which inherits from MCAsmInfo,22// you will need to make sure your new class sets PrivateGlobalPrefix to23// a prefix that won't appear in a function name.  The default value24// for PrivateGlobalPrefix is 'L', so it will consider any function starting25// with 'L' as a local symbol.26class AMDGPUMCAsmInfo : public MCAsmInfoELF {27public:28  explicit AMDGPUMCAsmInfo(const Triple &TT, const MCTargetOptions &Options);29  bool shouldOmitSectionDirective(StringRef SectionName) const override;30  unsigned getMaxInstLength(const MCSubtargetInfo *STI) const override;31};32} // namespace llvm33#endif34