Home
last modified time | relevance | path

Searched refs:DIExpression (Results 1 – 25 of 96) sorted by relevance

1234

/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DDebugInfoMetadata.cpp49 const DIExpression::FragmentInfo DebugVariable::DefaultFragment = {
667 isa<DIExpression>(CB)) && in getCount()
676 if (auto *MD = dyn_cast<DIExpression>(CB)) in getCount()
688 isa<DIExpression>(LB)) && in getLowerBound()
697 if (auto *MD = dyn_cast<DIExpression>(LB)) in getLowerBound()
709 isa<DIExpression>(UB)) && in getUpperBound()
718 if (auto *MD = dyn_cast<DIExpression>(UB)) in getUpperBound()
730 isa<DIExpression>(ST)) && in getStride()
739 if (auto *MD = dyn_cast<DIExpression>(ST)) in getStride()
764 assert((isa<DIVariable>(CB) || isa<DIExpression>(CB)) && in getCount()
[all …]
H A DDIExpressionOptimizer.cpp20 static std::optional<uint64_t> isConstantVal(DIExpression::ExprOperand Op) { in isConstantVal()
99 const DIExpression::ExprOperand &Op) { in consumeOneOperator()
194 ArrayRef<DIExpression::ExprOperand> Ops, in tryFoldNoOpMath()
210 ArrayRef<DIExpression::ExprOperand> Ops, in tryFoldConstants()
235 ArrayRef<DIExpression::ExprOperand> Ops, in tryFoldCommutativeMath()
263 uint64_t Const1, ArrayRef<DIExpression::ExprOperand> Ops, uint64_t &Loc, in tryFoldCommutativeMathWithArgInBetween()
288 DIExpression *DIExpression::foldConstantMath() { in foldConstantMath()
294 SmallVector<DIExpression::ExprOperand, 8> Ops; in foldConstantMath()
377 auto *Result = DIExpression::get(getContext(), ResultOps); in foldConstantMath()
H A DDIBuilder.cpp313 DIExpression *StrLocationExp) { in createStringType()
320 DIExpression *StringLengthExp, in createStringType()
321 DIExpression *StrLocationExp) { in createStringType()
688 PointerUnion<DIExpression *, DIVariable *> DL, in createArrayType() argument
689 PointerUnion<DIExpression *, DIVariable *> AS, in createArrayType()
690 PointerUnion<DIExpression *, DIVariable *> AL, in createArrayType()
691 PointerUnion<DIExpression *, DIVariable *> RK) { in createArrayType()
699 PointerUnion<DIExpression *, DIVariable *> DL, in createArrayType() argument
700 PointerUnion<DIExpression *, DIVariable *> AS, in createArrayType()
701 PointerUnion<DIExpression *, DIVariable *> AL, in createArrayType()
[all …]
H A DDebugProgramInstruction.cpp28 template class LLVM_EXPORT_TEMPLATE DbgRecordParamRef<DIExpression>;
66 DIExpression *Expr, const DILocation *DI, in DbgVariableRecord()
72 DIExpression *Expression, in DbgVariableRecord()
74 DIExpression *AddressExpression, in DbgVariableRecord()
181 DIExpression *Expr, in createDbgVariableRecord()
188 Value *Location, DILocalVariable *DV, DIExpression *Expr, in createDbgVariableRecord()
197 DIExpression *Expr, in createDVRDeclare()
205 DIExpression *Expr, const DILocation *DI, in createDVRDeclare()
213 Value *Val, DILocalVariable *Variable, DIExpression *Expression, in createDVRAssign()
214 DIAssignID *AssignID, Value *Address, DIExpression *AddressExpression, in createDVRAssign()
[all …]
H A DDebugInfo.cpp1351 PointerUnion<DIExpression *, DIVariable *> unwrapExprVar(LLVMMetadataRef MD) { in unwrapExprVar()
1355 if (auto *E = dyn_cast<DIExpression>(MDN)) in unwrapExprVar()
1707 true, unwrap<DIExpression>(Expr), unwrapDI<MDNode>(Decl), in LLVMDIBuilderCreateGlobalVariableExpression()
1765 unwrap<DIExpression>(Expr), unwrap<DILocation>(DL), in LLVMDIBuilderInsertDeclareRecordBefore()
1783 unwrap<DIExpression>(Expr), unwrap<DILocation>(DL), unwrap(Block)); in LLVMDIBuilderInsertDeclareRecordAtEnd()
1798 unwrap(Val), unwrap<DILocalVariable>(VarInfo), unwrap<DIExpression>(Expr), in LLVMDIBuilderInsertDbgValueRecordBefore()
1816 unwrap(Val), unwrap<DILocalVariable>(VarInfo), unwrap<DIExpression>(Expr), in LLVMDIBuilderInsertDbgValueRecordAtEnd()
2025 std::optional<DIExpression::FragmentInfo> &Result) { in calculateFragmentIntersectImpl()
2044 DIExpression::FragmentInfo VarFrag = in calculateFragmentIntersectImpl()
2048 return DIExpression::calculateFragmentIntersect( in calculateFragmentIntersectImpl()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DDebugProgramInstruction.h121 extern template class LLVM_TEMPLATE_ABI DbgRecordParamRef<DIExpression>;
300 DbgRecordParamRef<DIExpression> Expression;
301 DbgRecordParamRef<DIExpression> AddressExpression;
311 DIExpression *Expr, const DILocation *DI,
314 DIExpression *Expression, DIAssignID *AssignID,
315 Metadata *Address, DIExpression *AddressExpression,
343 DIExpression *Expression, DIAssignID *AssignID,
344 Value *Address, DIExpression *AddressExpression,
348 DILocalVariable *Variable, DIExpression *Expression,
349 Value *Address, DIExpression *AddressExpression,
[all …]
H A DDIBuilder.h99 DIExpression *Expr, const DILocation *DL,
267 DIExpression *StrLocationExp = nullptr);
275 createStringType(StringRef Name, DIExpression *StringLengthExp,
276 DIExpression *StrLocationExp = nullptr);
689 PointerUnion<DIExpression *, DIVariable *> DataLocation = nullptr,
690 PointerUnion<DIExpression *, DIVariable *> Associated = nullptr,
691 PointerUnion<DIExpression *, DIVariable *> Allocated = nullptr,
692 PointerUnion<DIExpression *, DIVariable *> Rank = nullptr);
719 PointerUnion<DIExpression *, DIVariable *> DataLocation = nullptr,
720 PointerUnion<DIExpression *, DIVariable *> Associated = nullptr,
[all …]
H A DDebugInfoMetadata.h399 typedef PointerUnion<ConstantInt *, DIVariable *, DIExpression *> BoundType;
446 using BoundType = PointerUnion<DIVariable *, DIExpression *>;
1193 DIExpression *getStringLengthExp() const { in getStringLengthExp()
1194 return cast_or_null<DIExpression>(getRawStringLengthExp()); in getStringLengthExp()
1197 DIExpression *getStringLocationExp() const { in getStringLocationExp()
1198 return cast_or_null<DIExpression>(getRawStringLocationExp()); in getStringLocationExp()
1457 typedef PointerUnion<ConstantInt *, DIVariable *, DIExpression *> BoundType;
1835 DIExpression *getDataLocationExp() const { in getDataLocationExp()
1836 return dyn_cast_or_null<DIExpression>(getRawDataLocation()); in getDataLocationExp()
1844 DIExpression *getAssociatedExp() const { in getAssociatedExp()
[all …]
H A DIntrinsicInst.h268 bool isKillLocation(const DIExpression *Expression) const { in isKillLocation()
324 DIExpression *NewExpr);
330 void setExpression(DIExpression *NewExpr) { in setExpression()
375 DIExpression *getExpression() const { in getExpression()
376 return cast<DIExpression>(getRawExpression()); in getExpression()
407 std::optional<DIExpression::FragmentInfo> getFragment() const { in getFragment()
414 DIExpression::FragmentInfo getFragmentOrEntireVariable() const { in getFragmentOrEntireVariable()
415 DIExpression::FragmentInfo VariableSlice(0, 0); in getFragmentOrEntireVariable()
514 DIExpression *getAddressExpression() const { in getAddressExpression()
515 return cast<DIExpression>(getRawAddressExpression()); in getAddressExpression()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DTargetRegisterInfo.cpp701 DIExpression::appendOffset(Ops, Offset.getFixed()); in getOffsetOpcodes()
704 DIExpression *
705 TargetRegisterInfo::prependOffsetExpression(const DIExpression *Expr, in prependOffsetExpression()
709 ~(DIExpression::DerefBefore | DIExpression::DerefAfter | in prependOffsetExpression()
710 DIExpression::StackValue | DIExpression::EntryValue)) == 0 && in prependOffsetExpression()
713 if (PrependFlags & DIExpression::DerefBefore) in prependOffsetExpression()
716 if (PrependFlags & DIExpression::DerefAfter) in prependOffsetExpression()
718 return DIExpression::prependOpcodes(Expr, OffsetExpr, in prependOffsetExpression()
719 PrependFlags & DIExpression::StackValue, in prependOffsetExpression()
720 PrependFlags & DIExpression::EntryValue); in prependOffsetExpression()
H A DAssignmentTrackingAnalysis.cpp139 void addSingleLocVar(DebugVariable Var, DIExpression *Expr, DebugLoc DL, in addSingleLocVar()
150 void addVarLoc(VarLocInsertPt Before, DebugVariable Var, DIExpression *Expr, in addVarLoc()
268 static std::pair<Value *, DIExpression *>
270 DIExpression *Expression) { in walkToAllocaAndPrependOffsetDeref()
277 Expression = DIExpression::prependOpcodes( in walkToAllocaAndPrependOffsetDeref()
280 Expression = DIExpression::append(Expression, {dwarf::DW_OP_deref}); in walkToAllocaAndPrependOffsetDeref()
288 getDerefOffsetInBytes(const DIExpression *DIExpr) { in getDerefOffsetInBytes()
678 const DIExpression *DIExpr = VarLoc.Expr; in addDef()
967 DIExpression *Expr = DIExpression::get(Ctx, {}); in run()
970 Expr = *DIExpression::createFragmentExpression( in run()
[all …]
H A DCodeGenCommonISel.cpp238 auto ExtOps = DIExpression::getExtOps(FromLLT.getSizeInBits(), in getSalvageOpsForTrunc()
283 const DIExpression *SalvagedExpr = DbgMI->getDebugExpression(); in salvageDebugInfoForDbgValue()
289 SalvagedExpr = DIExpression::appendOpsToArg(SalvagedExpr, Ops, 0, true); in salvageDebugInfoForDbgValue()
H A DLiveDebugVariables.cpp109 const DIExpression &Expr) in DbgVariableValue()
124 DIExpression::replaceArg(Expression, OpIdx, DuplicatingIdx); in DbgVariableValue()
146 DIExpression::get(Expr.getContext(), {dwarf::DW_OP_LLVM_arg, 0}); in DbgVariableValue()
148 Expression = *DIExpression::createFragmentExpression( in DbgVariableValue()
182 const DIExpression *getExpression() const { return Expression; } in getExpression()
260 const DIExpression *Expression = nullptr;
294 const std::optional<DIExpression::FragmentInfo> Fragment;
327 std::optional<DIExpression::FragmentInfo> Fragment, DebugLoc L, in UserValue()
419 bool IsList, const DIExpression &Expr) { in addDef()
599 std::optional<DIExpression::FragmentInfo> Fragment,
[all …]
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/
H A DDebugLocEntry.h113 const DIExpression *Expression;
120 DbgValueLoc(const DIExpression *Expr, ArrayRef<DbgValueLocEntry> Locs) in DbgValueLoc()
123 DbgValueLoc(const DIExpression *Expr, ArrayRef<DbgValueLocEntry> Locs, in DbgValueLoc()
135 DbgValueLoc(const DIExpression *Expr, DbgValueLocEntry Loc) in DbgValueLoc()
153 if (!DIExpression::isEqualExpression(Expression, ThisIsIndirect, in isEquivalent()
167 const DIExpression *getExpression() const { return Expression; } in getExpression()
H A DDwarfDebug.h113 const DIExpression *Expr;
122 const DIExpression &Expr;
133 const DIExpression *Expr;
139 const DIExpression *getExpr() const { return Expr; } in getExpr()
163 explicit MMI(const DIExpression *E, int FI) : FrameIndexExprs({{FI, E}}) { in MMI()
167 void addFrameIndexExpr(const DIExpression *Expr, int FI);
174 explicit EntryValue(MCRegister Reg, const DIExpression &Expr) { in EntryValue()
180 void addExpr(MCRegister Reg, const DIExpression &Expr) { in addExpr()
181 std::optional<const DIExpression *> NonVariadicExpr = in addExpr()
182 DIExpression::convertToNonVariadicExpression(&Expr); in addExpr()
H A DDwarfExpression.h95 void setLocation(const MachineLocation &Loc, const DIExpression *DIExpr);
295 void addFragmentOffset(const DIExpression *Expr);
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGBuilder.h60 class DIExpression; variable
112 DIExpression *Expression;
115 DanglingDebugInfo(DILocalVariable *Var, DIExpression *Expr, DebugLoc DL, in DanglingDebugInfo()
121 DIExpression *getExpression() const { return Expression; } in getExpression()
336 DILocalVariable *Var, DIExpression *Expr,
343 const DIExpression *Expr);
357 DIExpression *Expr, DebugLoc DbgLoc, unsigned Order,
361 void handleKillDebugValue(DILocalVariable *Var, DIExpression *Expr,
365 DIExpression *Expression, DebugLoc DL);
624 DILocalVariable *Variable, DIExpression *Expr,
[all …]
H A DSDNodeDbgValue.h25 class DIExpression; variable
148 DIExpression *Expr;
157 SDDbgValue(BumpPtrAllocator &Alloc, DIVariable *Var, DIExpression *Expr, in SDDbgValue()
184 DIExpression *getExpression() const { return Expr; } in getExpression()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/LiveDebugValues/
H A DVarLocBasedImpl.cpp295 using FragmentInfo = DIExpression::FragmentInfo;
296 using OptFragmentInfo = std::optional<DIExpression::FragmentInfo>;
332 const DIExpression *Expr;
442 Expr = DIExpression::replaceArg(Expr, OpIdx, DuplicatingIdx); in VarLoc()
478 const DIExpression *EntryExpr, Register Reg) { in CreateEntryLoc()
493 const DIExpression *EntryExpr) { in CreateEntryBackupLoc()
506 const DIExpression *EntryExpr, in CreateEntryCopyBackupLoc()
558 const DIExpression *DIExpr = Expr; in BuildDbgValue()
585 auto Deref = Indirect ? DIExpression::DerefAfter : 0; in BuildDbgValue()
587 DIExpr, DIExpression::ApplyOffset | Deref, in BuildDbgValue()
[all …]
H A DInstrRefBasedImpl.h316 DbgValueProperties(const DIExpression *DIExpr, bool Indirect, bool IsVariadic)
330 return DIExpression::isEqualExpression(DIExpr, Indirect, Other.DIExpr,
347 const DIExpression *DIExpr;
1031 std::pair<const DILocalVariable *, DIExpression::FragmentInfo>;
1033 DenseMap<FragmentOfVar, SmallVector<DIExpression::FragmentInfo, 1>>;
1060 const DIExpression *EmptyExpr)
1093 std::optional<DIExpression::FragmentInfo> OptFragmentInfo = FragmentInfo;
1120 using FragmentInfo = DIExpression::FragmentInfo;
1121 using OptFragmentInfo = std::optional<DIExpression::FragmentInfo>;
1169 const DIExpression *EmptyExpr;
/freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXPrologEpilogPass.cpp71 const DIExpression *DIExpr = MI.getDebugExpression(); in replaceFrameIndexDebugInstr()
74 DIExpression::ApplyOffset, Offset); in replaceFrameIndexDebugInstr()
82 DIExpr = DIExpression::appendOpsToArg(DIExpr, Ops, DebugOpIndex); in replaceFrameIndexDebugInstr()
/freebsd/contrib/llvm-project/llvm/include/llvm/AsmParser/
H A DParser.h25 class DIExpression; variable
207 LLVM_ABI DIExpression *
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86OptimizeLEAs.cpp578 const DIExpression *Expr = MI.getDebugExpression(); in replaceDebugValue()
582 DIExpression::prepend(Expr, DIExpression::StackValue, AddrDispShift); in replaceDebugValue()
587 DIExpression::appendOffset(Ops, AddrDispShift); in replaceDebugValue()
590 Expr = DIExpression::appendOpsToArg(Expr, Ops, OpIdx); in replaceDebugValue()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DLocal.cpp1606 DIExpression *DIExpr, in PhiHasDebugValue()
1689 DIExpression *DIExpr, in insertDbgValueOrDbgVariableRecord()
1699 DIBuilder &Builder, Value *DV, DILocalVariable *DIVar, DIExpression *DIExpr, in insertDbgValueOrDbgVariableRecordAfter()
1751 static DIExpression *dropInitialDeref(const DIExpression *DIExpr) { in dropInitialDeref()
1753 return DIExpression::get(DIExpr->getContext(), in dropInitialDeref()
2024 DIExpression::append(DDI->getExpression(), dwarf::DW_OP_deref); in LowerDbgDeclare()
2188 DIExpr = DIExpression::prepend(DIExpr, DIExprFlags, Offset); in replaceDbgDeclare()
2201 DIExpression *DIExpr, Value *NewAddress, in updateOneDbgValueForAlloca()
2216 DIExpr = DIExpression::prepend(DIExpr, 0, Offset); in updateOneDbgValueForAlloca()
2275 DIExpression *SalvagedExpr = DIExpression::appendOpsToArg( in salvageDbgAssignAddress()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DSROA.cpp275 std::optional<DIExpression::FragmentInfo> StorageFragment, in calculateFragment()
276 std::optional<DIExpression::FragmentInfo> CurrentFragment, in calculateFragment()
277 DIExpression::FragmentInfo &Target) { in calculateFragment()
296 CurrentFragment = DIExpression::FragmentInfo(*Size, 0); in calculateFragment()
377 DenseMap<DebugVariable, std::optional<DIExpression::FragmentInfo>> in migrateDebugInfo()
401 std::optional<DIExpression::FragmentInfo> BaseFragment; in migrateDebugInfo()
408 std::optional<DIExpression::FragmentInfo> CurrentFragment = in migrateDebugInfo()
410 DIExpression::FragmentInfo NewFragment; in migrateDebugInfo()
426 if (auto E = DIExpression::createFragmentExpression( in migrateDebugInfo()
433 Expr = *DIExpression::createFragmentExpression( in migrateDebugInfo()
[all …]

1234