[ORC] Add std::tuple support to SimplePackedSerialization.
[llvm-project.git] / llvm / lib / Target / WebAssembly / WebAssemblyDebugValueManager.h
blobc2dd5690930446599e7cdf8eee33a4cb14d9bc23
1 // WebAssemblyDebugValueManager.h - WebAssembly DebugValue Manager -*- 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 /// This file contains the declaration of the WebAssembly-specific
11 /// manager for DebugValues associated with the specific MachineInstr.
12 ///
13 //===----------------------------------------------------------------------===//
15 #ifndef LLVM_LIB_TARGET_WEBASSEMBLY_WEBASSEMBLYDEBUGVALUEMANAGER_H
16 #define LLVM_LIB_TARGET_WEBASSEMBLY_WEBASSEMBLYDEBUGVALUEMANAGER_H
18 #include "llvm/ADT/SmallVector.h"
20 namespace llvm {
22 class MachineInstr;
24 class WebAssemblyDebugValueManager {
25 SmallVector<MachineInstr *, 2> DbgValues;
26 unsigned CurrentReg;
28 public:
29 WebAssemblyDebugValueManager(MachineInstr *Instr);
31 void move(MachineInstr *Insert);
32 void updateReg(unsigned Reg);
33 void clone(MachineInstr *Insert, unsigned NewReg);
34 void replaceWithLocal(unsigned LocalId);
37 } // end namespace llvm
39 #endif