Home
last modified time | relevance | path

Searched refs:DIExpr (Results 1 – 18 of 18) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXPrologEpilogPass.cpp71 const DIExpression *DIExpr = MI.getDebugExpression(); in replaceFrameIndexDebugInstr() local
73 DIExpr = TRI.prependOffsetExpression(MI.getDebugExpression(), in replaceFrameIndexDebugInstr()
82 DIExpr = DIExpression::appendOpsToArg(DIExpr, Ops, DebugOpIndex); in replaceFrameIndexDebugInstr()
84 MI.getDebugExpressionOp().setMetadata(DIExpr); in replaceFrameIndexDebugInstr()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DLocal.cpp1606 DIExpression *DIExpr, in PhiHasDebugValue() argument
1616 if ((DVI->getVariable() == DIVar) && (DVI->getExpression() == DIExpr)) in PhiHasDebugValue()
1621 if ((DVR->getVariable() == DIVar) && (DVR->getExpression() == DIExpr)) in PhiHasDebugValue()
1689 DIExpression *DIExpr, in insertDbgValueOrDbgVariableRecord() argument
1694 new DbgVariableRecord(DVAM, DIVar, DIExpr, NewLoc.get()); in insertDbgValueOrDbgVariableRecord()
1699 DIBuilder &Builder, Value *DV, DILocalVariable *DIVar, DIExpression *DIExpr, in insertDbgValueOrDbgVariableRecordAfter() argument
1703 insertDbgValueOrDbgVariableRecord(Builder, DV, DIVar, DIExpr, NewLoc, NextIt); in insertDbgValueOrDbgVariableRecordAfter()
1713 auto *DIExpr = DII->getExpression(); in ConvertDebugDeclareToDebugValue() local
1731 DIExpr->isDeref() || (!DIExpr->startsWithDeref() && in ConvertDebugDeclareToDebugValue()
1734 insertDbgValueOrDbgVariableRecord(Builder, DV, DIVar, DIExpr, NewLoc, in ConvertDebugDeclareToDebugValue()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/
H A DDebugHandlerBase.cpp47 const DIExpression *DIExpr = Instruction.getDebugExpression(); in extractFromMachineInstruction() local
48 auto Op = DIExpr->expr_op_begin(); in extractFromMachineInstruction()
58 while (Op != DIExpr->expr_op_end()) { in extractFromMachineInstruction()
63 if (Op != DIExpr->expr_op_end()) { in extractFromMachineInstruction()
H A DDbgEntityHistoryCalculator.cpp394 const DIExpression *DIExpr = DV.getDebugExpression(); in handleNewDebugValue() local
399 bool Overlaps = DIExpr->fragmentsOverlap(DV.getDebugExpression()); in handleNewDebugValue()
H A DDwarfExpression.h95 void setLocation(const MachineLocation &Loc, const DIExpression *DIExpr);
H A DDwarfExpression.cpp405 const DIExpression *DIExpr) { in setLocation() argument
409 if (DIExpr->isEntryValue()) in setLocation()
H A DDwarfCompileUnit.cpp1643 void DwarfCompileUnit::addComplexAddress(const DIExpression *DIExpr, DIE &Die, in addComplexAddress() argument
1648 DwarfExpr.addFragmentOffset(DIExpr); in addComplexAddress()
1649 DwarfExpr.setLocation(Location, DIExpr); in addComplexAddress()
1651 DIExpressionCursor Cursor(DIExpr); in addComplexAddress()
1653 if (DIExpr->isEntryValue()) in addComplexAddress()
H A DDwarfCompileUnit.h366 void addComplexAddress(const DIExpression *DIExpr, DIE &Die,
H A DDwarfDebug.cpp3077 auto *DIExpr = Value.getExpression(); in emitDebugLocValue() local
3078 DIExpressionCursor ExprCursor(DIExpr); in emitDebugLocValue()
3079 DwarfExpr.addFragmentOffset(DIExpr); in emitDebugLocValue()
3083 if (DIExpr && DIExpr->isEntryValue()) { in emitDebugLocValue()
3089 DwarfExpr.setLocation(Location, DIExpr); in emitDebugLocValue()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/LiveDebugValues/
H A DInstrRefBasedImpl.h316 DbgValueProperties(const DIExpression *DIExpr, bool Indirect, bool IsVariadic)
317 : DIExpr(DIExpr), Indirect(Indirect), IsVariadic(IsVariadic) {}
325 DIExpr = MI.getDebugExpression();
330 return DIExpression::isEqualExpression(DIExpr, Indirect, Other.DIExpr,
335 return std::tie(DIExpr, Indirect, IsVariadic) ==
336 std::tie(Other.DIExpr, Other.Indirect, Other.IsVariadic);
344 return IsVariadic ? DIExpr->getNumLocationOperands() : 1;
347 const DIExpression *DIExpr;
H A DInstrRefBasedImpl.cpp416 if (Value.Properties.DIExpr->isEntryValue()) in loadVarInloc()
665 const DIExpression *DIExpr = Prop.DIExpr; in recoverAsEntryValue() local
672 DIExpression::convertToNonVariadicExpression(DIExpr); in recoverAsEntryValue()
675 DIExpr = *NonVariadicExpression; in recoverAsEntryValue()
682 if (DIExpr->isEntryValue()) { in recoverAsEntryValue()
686 VarID, &*emitMOLoc(MO, Var, {DIExpr, Prop.Indirect, false}))); in recoverAsEntryValue()
691 if (!isEntryValueVariable(Var, DIExpr)) in recoverAsEntryValue()
700 DIExpression::prepend(DIExpr, DIExpression::EntryValue); in recoverAsEntryValue()
978 MIB.addMetadata(Properties.DIExpr); in emitMOLoc()
1030 if (Properties.DIExpr) in dump()
[all …]
H A DVarLocBasedImpl.cpp558 const DIExpression *DIExpr = Expr; in BuildDbgValue() local
586 DIExpr = TRI->prependOffsetExpression( in BuildDbgValue()
587 DIExpr, DIExpression::ApplyOffset | Deref, in BuildDbgValue()
594 DIExpr = DIExpression::appendOpsToArg(DIExpr, Ops, I); in BuildDbgValue()
611 return BuildMI(MF, DbgLoc, IID, Indirect, MOs, Var, DIExpr); in BuildDbgValue()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DPrologEpilogInserter.cpp1402 const DIExpression *DIExpr = MI.getDebugExpression(); in replaceFrameIndexDebugInstr() local
1412 if (!MI.isIndirectDebugValue() && !DIExpr->isComplex()) in replaceFrameIndexDebugInstr()
1419 if (MI.isIndirectDebugValue() && DIExpr->isImplicit()) { in replaceFrameIndexDebugInstr()
1422 DIExpr = DIExpression::prependOpcodes(DIExpr, Ops, WithStackValue); in replaceFrameIndexDebugInstr()
1426 DIExpr = TRI.prependOffsetExpression(DIExpr, PrependFlags, Offset); in replaceFrameIndexDebugInstr()
1434 DIExpr = DIExpression::appendOpsToArg(DIExpr, Ops, DebugOpIndex); in replaceFrameIndexDebugInstr()
1436 MI.getDebugExpressionOp().setMetadata(DIExpr); in replaceFrameIndexDebugInstr()
H A DAssignmentTrackingAnalysis.cpp288 getDerefOffsetInBytes(const DIExpression *DIExpr) { in getDerefOffsetInBytes() argument
290 const unsigned NumElements = DIExpr->getNumElements(); in getDerefOffsetInBytes()
291 const auto Elements = DIExpr->getElements(); in getDerefOffsetInBytes()
678 const DIExpression *DIExpr = VarLoc.Expr; in addDef() local
681 if (auto Frag = DIExpr->getFragmentInfo()) { in addDef()
697 const auto DerefOffsetInBytes = getDerefOffsetInBytes(DIExpr); in addDef()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/MIRParser/
H A DMIRParser.cpp137 DIExpression *DIExpr = nullptr; member
916 if (MaybeInfo->DIVar || MaybeInfo->DIExpr || MaybeInfo->DILoc) in initializeFrameInfo()
917 PFS.MF.setVariableDbgInfo(MaybeInfo->DIVar, MaybeInfo->DIExpr, in initializeFrameInfo()
1026 DIExpression *DIExpr = nullptr; in parseVarExprLoc() local
1029 typecheckMDNode(DIExpr, Expr, ExprStr, "DIExpression", *this) || in parseVarExprLoc()
1032 return VarExprLoc{DIVar, DIExpr, DILoc}; in parseVarExprLoc()
1044 if (MaybeInfo->DIVar || MaybeInfo->DIExpr || MaybeInfo->DILoc) in parseStackObjectsDebugInfo()
1045 PFS.MF.setVariableDbgInfo(MaybeInfo->DIVar, MaybeInfo->DIExpr, FrameIdx, in parseStackObjectsDebugInfo()
/freebsd/contrib/llvm-project/llvm/lib/Bitcode/Reader/
H A DMetadataLoader.cpp609 auto *DIExpr = Declare->getExpression(); in upgradeDeclareExpressions() local
610 if (!DIExpr || !DIExpr->startsWithDeref() || in upgradeDeclareExpressions()
614 Ops.append(std::next(DIExpr->elements_begin()), DIExpr->elements_end()); in upgradeDeclareExpressions()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DDebugInfoMetadata.h4624 DebugVariable(const DILocalVariable *Var, const DIExpression *DIExpr,
4627 Fragment(DIExpr ? DIExpr->getFragmentInfo() : std::nullopt),
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAG.cpp11745 auto *DIExpr = DV->getExpression(); in salvageDebugInfo() local
11760 DIExpr = DIExpression::appendOpsToArg(DIExpr, ExprOps, i, true); in salvageDebugInfo()
11766 DIExpression::convertToVariadicExpression(DIExpr); in salvageDebugInfo()
11774 DIExpr = DIExpression::appendOpsToArg(TmpDIExpr, ExprOps, i, true); in salvageDebugInfo()
11786 DV->getVariable(), DIExpr, NewLocOps, AdditionalDependencies, in salvageDebugInfo()
11793 dbgs() << " into " << *DIExpr << '\n'); in salvageDebugInfo()