diff options
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyDebugValueManager.h')
-rw-r--r-- | llvm/lib/Target/WebAssembly/WebAssemblyDebugValueManager.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyDebugValueManager.h b/llvm/lib/Target/WebAssembly/WebAssemblyDebugValueManager.h new file mode 100644 index 0000000..73f3172 --- /dev/null +++ b/llvm/lib/Target/WebAssembly/WebAssemblyDebugValueManager.h @@ -0,0 +1,38 @@ +// WebAssemblyDebugValueManager.h - WebAssembly DebugValue Manager -*- C++ -*-// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +/// +/// \file +/// This file contains the declaration of the WebAssembly-specific +/// manager for DebugValues associated with the specific MachineInstr. +/// +//===----------------------------------------------------------------------===// + +#ifndef LLVM_LIB_TARGET_WEBASSEMBLY_WEBASSEMBLYDEBUGVALUEMANAGER_H +#define LLVM_LIB_TARGET_WEBASSEMBLY_WEBASSEMBLYDEBUGVALUEMANAGER_H + +#include "llvm/ADT/SmallVector.h" + +namespace llvm { + +class MachineInstr; + +class WebAssemblyDebugValueManager { + SmallVector<MachineInstr *, 2> DbgValues; + +public: + WebAssemblyDebugValueManager(MachineInstr *Instr); + + void move(MachineInstr *Insert); + void updateReg(unsigned Reg); + void clone(MachineInstr *Insert, unsigned NewReg); +}; + +} // end namespace llvm + +#endif |