|
LLVM
10.0.0
|
#include "llvm/CodeGen/DbgEntityHistoryCalculator.h"#include "llvm/ADT/BitVector.h"#include "llvm/ADT/STLExtras.h"#include "llvm/ADT/SmallSet.h"#include "llvm/ADT/SmallVector.h"#include "llvm/CodeGen/MachineBasicBlock.h"#include "llvm/CodeGen/MachineFunction.h"#include "llvm/CodeGen/MachineInstr.h"#include "llvm/CodeGen/MachineOperand.h"#include "llvm/CodeGen/TargetLowering.h"#include "llvm/CodeGen/TargetRegisterInfo.h"#include "llvm/CodeGen/TargetSubtargetInfo.h"#include "llvm/IR/DebugInfoMetadata.h"#include "llvm/IR/DebugLoc.h"#include "llvm/MC/MCRegisterInfo.h"#include "llvm/Support/Debug.h"#include "llvm/Support/raw_ostream.h"#include <cassert>#include <map>#include <utility>Go to the source code of this file.
Macros | |
| #define | DEBUG_TYPE "dwarfdebug" |
Functions | |
| static Register | isDescribedByReg (const MachineInstr &MI) |
| static void | dropRegDescribedVar (RegDescribedVarsMap &RegVars, unsigned RegNo, InlinedEntity Var) |
| static void | addRegDescribedVar (RegDescribedVarsMap &RegVars, unsigned RegNo, InlinedEntity Var) |
| static void | clobberRegEntries (InlinedEntity Var, unsigned RegNo, const MachineInstr &ClobberingInstr, DbgValueEntriesMap &LiveEntries, DbgValueHistoryMap &HistMap) |
Create a clobbering entry and end all open debug value entries for Var that are described by RegNo using that entry. More... | |
| static void | handleNewDebugValue (InlinedEntity Var, const MachineInstr &DV, RegDescribedVarsMap &RegVars, DbgValueEntriesMap &LiveEntries, DbgValueHistoryMap &HistMap) |
Add a new debug value for Var. Closes all overlapping debug values. More... | |
| static void | clobberRegisterUses (RegDescribedVarsMap &RegVars, RegDescribedVarsMap::iterator I, DbgValueHistoryMap &HistMap, DbgValueEntriesMap &LiveEntries, const MachineInstr &ClobberingInstr) |
| static void | clobberRegisterUses (RegDescribedVarsMap &RegVars, unsigned RegNo, DbgValueHistoryMap &HistMap, DbgValueEntriesMap &LiveEntries, const MachineInstr &ClobberingInstr) |
| #define DEBUG_TYPE "dwarfdebug" |
Definition at line 32 of file DbgEntityHistoryCalculator.cpp.
|
static |
Definition at line 126 of file DbgEntityHistoryCalculator.cpp.
References assert(), and llvm::is_contained().
Referenced by handleNewDebugValue().
|
static |
Create a clobbering entry and end all open debug value entries for Var that are described by RegNo using that entry.
Definition at line 136 of file DbgEntityHistoryCalculator.cpp.
References assert(), llvm::DbgValueHistoryMap::getEntry(), isDescribedByReg(), llvm::SmallVectorTemplateBase< T >::push_back(), and llvm::DbgValueHistoryMap::startClobber().
Referenced by clobberRegisterUses().
|
static |
Definition at line 207 of file DbgEntityHistoryCalculator.cpp.
References clobberRegEntries().
Referenced by llvm::calculateDbgEntityHistory(), and clobberRegisterUses().
|
static |
Definition at line 221 of file DbgEntityHistoryCalculator.cpp.
References clobberRegisterUses(), and I.
|
static |
Definition at line 112 of file DbgEntityHistoryCalculator.cpp.
References assert(), llvm::find(), and I.
Referenced by handleNewDebugValue().
|
static |
Add a new debug value for Var. Closes all overlapping debug values.
Definition at line 159 of file DbgEntityHistoryCalculator.cpp.
References addRegDescribedVar(), assert(), llvm::DenseMapBase< SmallDenseMap< KeyT, ValueT, InlineBuckets, KeyInfoT, BucketT >, KeyT, ValueT, KeyInfoT, BucketT >::count(), dropRegDescribedVar(), llvm::DIExpression::fragmentsOverlap(), llvm::MachineInstr::getDebugExpression(), llvm::DbgValueHistoryMap::getEntry(), I, isDescribedByReg(), llvm::SmallVectorTemplateBase< T >::push_back(), Reg, and llvm::DbgValueHistoryMap::startDbgValue().
Referenced by llvm::calculateDbgEntityHistory().
|
static |
Definition at line 41 of file DbgEntityHistoryCalculator.cpp.
References assert(), llvm::MachineInstr::getDebugExpression(), llvm::MachineInstr::getNumOperands(), llvm::MachineInstr::getOperand(), llvm::MachineOperand::getReg(), llvm::MachineInstr::isDebugValue(), llvm::DIExpression::isEntryValue(), llvm::MachineOperand::isReg(), and Register.
Referenced by clobberRegEntries(), handleNewDebugValue(), INITIALIZE_PASS(), and isRegOtherThanSPAndFP().
1.8.13