LLVM 18.0.0git
AMDGPUMCAsmInfo.h
Go to the documentation of this file.
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-exception
6//
7//===----------------------------------------------------------------------===//
8//
9/// \file
10//
11//===----------------------------------------------------------------------===//
12
13#ifndef LLVM_LIB_TARGET_AMDGPU_MCTARGETDESC_AMDGPUMCASMINFO_H
14#define LLVM_LIB_TARGET_AMDGPU_MCTARGETDESC_AMDGPUMCASMINFO_H
15
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 to
23// a prefix that won't appear in a function name. The default value
24// for PrivateGlobalPrefix is 'L', so it will consider any function starting
25// with 'L' as a local symbol.
27public:
28 explicit AMDGPUMCAsmInfo(const Triple &TT, const MCTargetOptions &Options);
30 unsigned getMaxInstLength(const MCSubtargetInfo *STI) const override;
31};
32} // namespace llvm
33#endif
static LVOptions Options
Definition: LVOptions.cpp:25
unsigned getMaxInstLength(const MCSubtargetInfo *STI) const override
Returns the maximum possible encoded instruction size in bytes.
bool shouldOmitSectionDirective(StringRef SectionName) const override
Return true if the .section directive should be omitted when emitting SectionName.
Generic base class for all target subtargets.
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:50
Triple - Helper class for working with autoconf configuration names.
Definition: Triple.h:44
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18