1 // WebAssemblyDebugValueManager.h - WebAssembly DebugValue Manager -*- C++ -*-//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
11 /// This file contains the declaration of the WebAssembly-specific
12 /// manager for DebugValues associated with the specific MachineInstr.
14 //===----------------------------------------------------------------------===//
16 #ifndef LLVM_LIB_TARGET_WEBASSEMBLY_WEBASSEMBLYDEBUGVALUEMANAGER_H
17 #define LLVM_LIB_TARGET_WEBASSEMBLY_WEBASSEMBLYDEBUGVALUEMANAGER_H
19 #include "llvm/ADT/SmallVector.h"
25 class WebAssemblyDebugValueManager {
26 SmallVector<MachineInstr *, 2> DbgValues;
29 WebAssemblyDebugValueManager(MachineInstr *Instr);
31 void move(MachineInstr *Insert);
32 void updateReg(unsigned Reg);
33 void clone(MachineInstr *Insert, unsigned NewReg);
36 } // end namespace llvm