[Codegen] Alter the default promotion for saturating adds and subs
[llvm-complete.git] / lib / Target / AMDGPU / MCTargetDesc / AMDGPUMCAsmInfo.h
blob71e63ec27a8f58030125a7927ac76c708f05a518
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
11 //===----------------------------------------------------------------------===//
13 #ifndef LLVM_LIB_TARGET_AMDGPU_MCTARGETDESC_AMDGPUMCASMINFO_H
14 #define LLVM_LIB_TARGET_AMDGPU_MCTARGETDESC_AMDGPUMCASMINFO_H
16 #include "llvm/MC/MCAsmInfoELF.h"
17 namespace llvm {
19 class Triple;
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.
26 class AMDGPUMCAsmInfo : public MCAsmInfoELF {
27 public:
28 explicit AMDGPUMCAsmInfo(const Triple &TT);
29 bool shouldOmitSectionDirective(StringRef SectionName) const override;
30 unsigned getMaxInstLength(const MCSubtargetInfo *STI) const override;
32 } // namespace llvm
33 #endif