Home
last modified time | relevance | path

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

/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXPrologEpilogPass.cpp79 const DIExpression *DIExpr = MI.getDebugExpression(); in runOnMachineFunction() local
81DIExpr = TRI.prependOffsetExpression(MI.getDebugExpression(), DIExpression::ApplyOffset, Offset); in runOnMachineFunction()
86 DIExpr = DIExpression::appendOpsToArg(DIExpr, Ops, OpIdx); in runOnMachineFunction()
88 MI.getDebugExpressionOp().setMetadata(DIExpr); in runOnMachineFunction()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DLocal.cpp1689 auto *DIExpr = DII->getExpression(); in ConvertDebugDeclareToDebugValue() local
1707 DIExpr->isDeref() || (!DIExpr->startsWithDeref() && in ConvertDebugDeclareToDebugValue()
1732 auto *DIExpr = DII->getExpression(); in ConvertDebugDeclareToDebugValue() local
1759 auto *DIExpr = DPV->getExpression(); in ConvertDebugDeclareToDebugValue() local
1777 DIExpr->isDeref() || (!DIExpr->startsWithDeref() && in ConvertDebugDeclareToDebugValue()
2125 DIExpr = DIExpression::prepend(DIExpr, DIExprFlags, Offset); in replaceDbgDeclare()
2126 DII->setExpression(DIExpr); in replaceDbgDeclare()
2146 if (!DIExpr || DIExpr->getNumElements() < 1 || in updateOneDbgValueForAlloca()
2152 DIExpr = DIExpression::prepend(DIExpr, 0, Offset); in updateOneDbgValueForAlloca()
2155 DVI->setExpression(DIExpr); in updateOneDbgValueForAlloca()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/LiveDebugValues/
H A DInstrRefBasedImpl.h277 DbgValueProperties(const DIExpression *DIExpr, bool Indirect, bool IsVariadic)
278 : DIExpr(DIExpr), Indirect(Indirect), IsVariadic(IsVariadic) {}
286 DIExpr = MI.getDebugExpression();
291 return DIExpression::isEqualExpression(DIExpr, Indirect, Other.DIExpr,
296 return std::tie(DIExpr, Indirect, IsVariadic) ==
297 std::tie(Other.DIExpr, Other.Indirect, Other.IsVariadic);
305 return IsVariadic ? DIExpr->getNumLocationOperands() : 1;
308 const DIExpression *DIExpr;
H A DInstrRefBasedImpl.cpp633 const DIExpression *DIExpr = Prop.DIExpr; in recoverAsEntryValue() local
640 DIExpression::convertToNonVariadicExpression(DIExpr); in recoverAsEntryValue()
643 DIExpr = *NonVariadicExpression; in recoverAsEntryValue()
647 if (!isEntryValueVariable(Var, DIExpr)) in recoverAsEntryValue()
656 DIExpression::prepend(DIExpr, DIExpression::EntryValue); in recoverAsEntryValue()
932 MIB.addMetadata(Properties.DIExpr); in emitMOLoc()
984 if (Properties.DIExpr) in dump()
985 dbgs() << " " << *Properties.DIExpr; in dump()
1194 Properties.DIExpr); in emitLoc()
1204 const DIExpression *Expr = Properties.DIExpr; in emitLoc()
[all …]
H A DVarLocBasedImpl.cpp556 const DIExpression *DIExpr = Expr; in BuildDbgValue() local
584 DIExpr = TRI->prependOffsetExpression( in BuildDbgValue()
585 DIExpr, DIExpression::ApplyOffset | Deref, in BuildDbgValue()
592 DIExpr = DIExpression::appendOpsToArg(DIExpr, Ops, I); in BuildDbgValue()
609 return BuildMI(MF, DbgLoc, IID, Indirect, MOs, Var, DIExpr); in BuildDbgValue()
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/
H A DDebugHandlerBase.cpp46 const DIExpression *DIExpr = Instruction.getDebugExpression(); in extractFromMachineInstruction() local
47 auto Op = DIExpr->expr_op_begin(); in extractFromMachineInstruction()
57 while (Op != DIExpr->expr_op_end()) { in extractFromMachineInstruction()
62 if (Op != DIExpr->expr_op_end()) { in extractFromMachineInstruction()
H A DDbgEntityHistoryCalculator.cpp381 const DIExpression *DIExpr = DV.getDebugExpression(); in handleNewDebugValue() local
386 bool Overlaps = DIExpr->fragmentsOverlap(DV.getDebugExpression()); in handleNewDebugValue()
H A DDwarfExpression.cpp398 const DIExpression *DIExpr) { in setLocation() argument
402 if (DIExpr->isEntryValue()) in setLocation()
H A DDwarfExpression.h156 void setLocation(const MachineLocation &Loc, const DIExpression *DIExpr);
H A DDwarfCompileUnit.cpp1576 void DwarfCompileUnit::addComplexAddress(const DIExpression *DIExpr, DIE &Die, in addComplexAddress() argument
1581 DwarfExpr.addFragmentOffset(DIExpr); in addComplexAddress()
1582 DwarfExpr.setLocation(Location, DIExpr); in addComplexAddress()
1584 DIExpressionCursor Cursor(DIExpr); in addComplexAddress()
1586 if (DIExpr->isEntryValue()) in addComplexAddress()
H A DDwarfCompileUnit.h359 void addComplexAddress(const DIExpression *DIExpr, DIE &Die,
H A DDwarfDebug.cpp2638 auto *DIExpr = Value.getExpression(); in emitDebugLocValue() local
2639 DIExpressionCursor ExprCursor(DIExpr); in emitDebugLocValue()
2640 DwarfExpr.addFragmentOffset(DIExpr); in emitDebugLocValue()
2644 if (DIExpr && DIExpr->isEntryValue()) { in emitDebugLocValue()
2650 DwarfExpr.setLocation(Location, DIExpr); in emitDebugLocValue()
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/
H A DPrologEpilogInserter.cpp1413 const DIExpression *DIExpr = MI.getDebugExpression(); in replaceFrameIndexDebugInstr() local
1423 if (!MI.isIndirectDebugValue() && !DIExpr->isComplex()) in replaceFrameIndexDebugInstr()
1430 if (MI.isIndirectDebugValue() && DIExpr->isImplicit()) { in replaceFrameIndexDebugInstr()
1433 DIExpr = DIExpression::prependOpcodes(DIExpr, Ops, WithStackValue); in replaceFrameIndexDebugInstr()
1437 DIExpr = TRI.prependOffsetExpression(DIExpr, PrependFlags, Offset); in replaceFrameIndexDebugInstr()
1445 DIExpr = DIExpression::appendOpsToArg(DIExpr, Ops, DebugOpIndex); in replaceFrameIndexDebugInstr()
1447 MI.getDebugExpressionOp().setMetadata(DIExpr); in replaceFrameIndexDebugInstr()
H A DAssignmentTrackingAnalysis.cpp284 getDerefOffsetInBytes(const DIExpression *DIExpr) { in getDerefOffsetInBytes() argument
286 const unsigned NumElements = DIExpr->getNumElements(); in getDerefOffsetInBytes()
287 const auto Elements = DIExpr->getElements(); in getDerefOffsetInBytes()
679 const DIExpression *DIExpr = VarLoc.Expr; in addDef() local
682 if (auto Frag = DIExpr->getFragmentInfo()) { in addDef()
698 const auto DerefOffsetInBytes = getDerefOffsetInBytes(DIExpr); in addDef()
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/MIRParser/
H A DMIRParser.cpp134 DIExpression *DIExpr = nullptr; member
818 if (MaybeInfo->DIVar || MaybeInfo->DIExpr || MaybeInfo->DILoc) in initializeFrameInfo()
819 PFS.MF.setVariableDbgInfo(MaybeInfo->DIVar, MaybeInfo->DIExpr, in initializeFrameInfo()
928 DIExpression *DIExpr = nullptr; in parseVarExprLoc() local
931 typecheckMDNode(DIExpr, Expr, ExprStr, "DIExpression", *this) || in parseVarExprLoc()
934 return VarExprLoc{DIVar, DIExpr, DILoc}; in parseVarExprLoc()
946 if (MaybeInfo->DIVar || MaybeInfo->DIExpr || MaybeInfo->DILoc) in parseStackObjectsDebugInfo()
947 PFS.MF.setVariableDbgInfo(MaybeInfo->DIVar, MaybeInfo->DIExpr, FrameIdx, in parseStackObjectsDebugInfo()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Bitcode/Reader/
H A DMetadataLoader.cpp615 if (auto *DIExpr = DDI->getExpression()) in upgradeDeclareExpressions() local
616 if (DIExpr->startsWithDeref() && in upgradeDeclareExpressions()
619 Ops.append(std::next(DIExpr->elements_begin()), in upgradeDeclareExpressions()
620 DIExpr->elements_end()); in upgradeDeclareExpressions()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/IR/
H A DDebugInfoMetadata.h3829 DebugVariable(const DILocalVariable *Var, const DIExpression *DIExpr,
3832 Fragment(DIExpr ? DIExpr->getFragmentInfo() : std::nullopt),
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAG.cpp10852 auto *DIExpr = DV->getExpression(); in salvageDebugInfo() local
10867 DIExpr = DIExpression::appendOpsToArg(DIExpr, ExprOps, i, true); in salvageDebugInfo()
10873 DIExpression::convertToVariadicExpression(DIExpr); in salvageDebugInfo()
10881 DIExpr = DIExpression::appendOpsToArg(TmpDIExpr, ExprOps, i, true); in salvageDebugInfo()
10893 DV->getVariable(), DIExpr, NewLocOps, AdditionalDependencies, in salvageDebugInfo()
10900 dbgs() << " into " << *DIExpr << '\n'); in salvageDebugInfo()
/freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/
H A DCGStmtOpenMP.cpp4761 llvm::DIExpression *DIExpr = llvm::DIExpression::get(Ctx, Ops); in EmitOMPTaskBasedDirective() local
4762 Last.setOperand(2, llvm::MetadataAsValue::get(Ctx, DIExpr)); in EmitOMPTaskBasedDirective()