]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - opencl/llvm.git/blob - lib/CodeGen/AsmPrinter/DbgValueHistoryCalculator.h
Move logic for calculating DBG_VALUE history map into separate file/class.
[opencl/llvm.git] / lib / CodeGen / AsmPrinter / DbgValueHistoryCalculator.h
1 //===-- llvm/CodeGen/AsmPrinter/DbgValueHistoryCalculator.h ----*- C++ -*--===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
10 #ifndef CODEGEN_ASMPRINTER_DBGVALUEHISTORYCALCULATOR_H_
11 #define CODEGEN_ASMPRINTER_DBGVALUEHISTORYCALCULATOR_H_
13 #include "llvm/ADT/DenseMap.h"
14 #include "llvm/ADT/SmallVector.h"
16 namespace llvm {
18 class MachineFunction;
19 class MachineInstr;
20 class MDNode;
21 class TargetRegisterInfo;
23 // For each user variable, keep a list of DBG_VALUE instructions in order.
24 // The list can also contain normal instructions that clobber the previous
25 // DBG_VALUE.
26 typedef DenseMap<const MDNode *, SmallVector<const MachineInstr *, 4>>
27 DbgValueHistoryMap;
29 void calculateDbgValueHistory(const MachineFunction *MF,
30                               const TargetRegisterInfo *TRI,
31                               DbgValueHistoryMap &Result);
32 }
34 #endif