1 //===-- llvm/Target/AMDGPU/AMDGPUMIRFormatter.h -----------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
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
9 //===----------------------------------------------------------------------===//
12 /// AMDGPU specific overrides of MIRFormatter.
14 //===----------------------------------------------------------------------===//
16 #ifndef LLVM_LIB_TARGET_AMDGPUMIRFORMATTER_H
17 #define LLVM_LIB_TARGET_AMDGPUMIRFORMATTER_H
19 #include "llvm/ADT/Optional.h"
20 #include "llvm/CodeGen/MIRFormatter.h"
21 #include "llvm/CodeGen/PseudoSourceValue.h"
22 #include "llvm/Support/raw_ostream.h"
27 class MachineFunction
;
29 struct PerFunctionMIParsingState
;
32 class AMDGPUMIRFormatter final
: public MIRFormatter
{
34 AMDGPUMIRFormatter() {}
35 virtual ~AMDGPUMIRFormatter() = default;
37 /// Implement target specific parsing of target custom pseudo source value.
39 parseCustomPseudoSourceValue(StringRef Src
, MachineFunction
&MF
,
40 PerFunctionMIParsingState
&PFS
,
41 const PseudoSourceValue
*&PSV
,
42 ErrorCallbackType ErrorCallback
) const override
;
45 } // end namespace llvm