[ORC] Add std::tuple support to SimplePackedSerialization.
[llvm-project.git] / llvm / lib / Target / AMDGPU / AMDGPUMIRFormatter.h
bloba61f1f7b8182e73e4df4f0923ae44dade5869f62
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 //===----------------------------------------------------------------------===//
11 /// \file
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"
23 #include <cstdint>
25 namespace llvm {
27 class MachineFunction;
28 class MachineInstr;
29 struct PerFunctionMIParsingState;
30 struct SlotMapping;
32 class AMDGPUMIRFormatter final : public MIRFormatter {
33 public:
34 AMDGPUMIRFormatter() {}
35 virtual ~AMDGPUMIRFormatter() = default;
37 /// Implement target specific parsing of target custom pseudo source value.
38 virtual bool
39 parseCustomPseudoSourceValue(StringRef Src, MachineFunction &MF,
40 PerFunctionMIParsingState &PFS,
41 const PseudoSourceValue *&PSV,
42 ErrorCallbackType ErrorCallback) const override;
45 } // end namespace llvm
47 #endif