LLVM  13.0.0git
AMDGPUMIRFormatter.h
Go to the documentation of this file.
1 //===-- llvm/Target/AMDGPU/AMDGPUMIRFormatter.h -----------------*- C++ -*-===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
6 // See https://llvm.org/LICENSE.txt for license information.
7 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
8 //
9 //===----------------------------------------------------------------------===//
10 //
11 /// \file
12 /// AMDGPU specific overrides of MIRFormatter.
13 //
14 //===----------------------------------------------------------------------===//
15 
16 #ifndef LLVM_LIB_TARGET_AMDGPUMIRFORMATTER_H
17 #define LLVM_LIB_TARGET_AMDGPUMIRFORMATTER_H
18 
19 #include "llvm/ADT/Optional.h"
23 #include <cstdint>
24 
25 namespace llvm {
26 
27 class MachineFunction;
28 class MachineInstr;
29 struct PerFunctionMIParsingState;
30 struct SlotMapping;
31 
32 class AMDGPUMIRFormatter final : public MIRFormatter {
33 public:
35  virtual ~AMDGPUMIRFormatter() = default;
36 
37  /// Implement target specific parsing of target custom pseudo source value.
38  virtual bool
41  const PseudoSourceValue *&PSV,
42  ErrorCallbackType ErrorCallback) const override;
43 };
44 
45 } // end namespace llvm
46 
47 #endif
llvm
---------------------— PointerInfo ------------------------------------—
Definition: AllocatorList.h:23
Optional.h
llvm::AMDGPUMIRFormatter
Definition: AMDGPUMIRFormatter.h:32
llvm::AMDGPUMIRFormatter::parseCustomPseudoSourceValue
virtual bool parseCustomPseudoSourceValue(StringRef Src, MachineFunction &MF, PerFunctionMIParsingState &PFS, const PseudoSourceValue *&PSV, ErrorCallbackType ErrorCallback) const override
Implement target specific parsing of target custom pseudo source value.
Definition: AMDGPUMIRFormatter.cpp:20
llvm::AMDGPUMIRFormatter::AMDGPUMIRFormatter
AMDGPUMIRFormatter()
Definition: AMDGPUMIRFormatter.h:34
PseudoSourceValue.h
llvm::PseudoSourceValue
Special value supplied for machine level alias analysis.
Definition: PseudoSourceValue.h:35
llvm::function_ref
An efficient, type-erasing, non-owning reference to a callable.
Definition: STLExtras.h:168
MIRFormatter.h
llvm::MachineFunction
Definition: MachineFunction.h:230
llvm::StringRef
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:58
llvm::PerFunctionMIParsingState
Definition: MIParser.h:162
llvm::MIRFormatter
MIRFormater - Interface to format MIR operand based on target.
Definition: MIRFormatter.h:30
llvm::AMDGPUMIRFormatter::~AMDGPUMIRFormatter
virtual ~AMDGPUMIRFormatter()=default
raw_ostream.h