Home
last modified time | relevance | path

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

1234

/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DDebugInfoMetadata.cpp41 const DIExpression::FragmentInfo DebugVariable::DefaultFragment = {
487 isa<DIExpression>(CB)) && in getCount()
496 if (auto *MD = dyn_cast<DIExpression>(CB)) in getCount()
508 isa<DIExpression>(LB)) && in getLowerBound()
517 if (auto *MD = dyn_cast<DIExpression>(LB)) in getLowerBound()
529 isa<DIExpression>(UB)) && in getUpperBound()
538 if (auto *MD = dyn_cast<DIExpression>(UB)) in getUpperBound()
550 isa<DIExpression>(ST)) && in getStride()
559 if (auto *MD = dyn_cast<DIExpression>(ST)) in getStride()
584 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()
97 const DIExpression::ExprOperand &Op) { in consumeOneOperator()
192 ArrayRef<DIExpression::ExprOperand> Ops, in tryFoldNoOpMath()
208 ArrayRef<DIExpression::ExprOperand> Ops, in tryFoldConstants()
233 ArrayRef<DIExpression::ExprOperand> Ops, in tryFoldCommutativeMath()
261 uint64_t Const1, ArrayRef<DIExpression::ExprOperand> Ops, uint64_t &Loc, in tryFoldCommutativeMathWithArgInBetween()
286 DIExpression *DIExpression::foldConstantMath() { in foldConstantMath()
292 SmallVector<DIExpression::ExprOperand, 8> Ops; in foldConstantMath()
375 auto *Result = DIExpression::get(getContext(), ResultOps); in foldConstantMath()
H A DDIBuilder.cpp283 DIExpression *StrLocationExp) { in createStringType()
290 DIExpression *StringLengthExp, in createStringType()
291 DIExpression *StrLocationExp) { in createStringType()
596 PointerUnion<DIExpression *, DIVariable *> DL, in createArrayType() argument
597 PointerUnion<DIExpression *, DIVariable *> AS, in createArrayType()
598 PointerUnion<DIExpression *, DIVariable *> AL, in createArrayType()
599 PointerUnion<DIExpression *, DIVariable *> RK) { in createArrayType()
604 isa<DIExpression *>(DL) ? (Metadata *)cast<DIExpression *>(DL) in createArrayType()
606 isa<DIExpression *>(AS) ? (Metadata *)cast<DIExpression *>(AS) in createArrayType()
608 isa<DIExpression *>(AL) ? (Metadata *)cast<DIExpression *>(AL) in createArrayType()
[all …]
H A DDebugProgramInstruction.cpp27 template class DbgRecordParamRef<DIExpression>;
65 DIExpression *Expr, const DILocation *DI, in DbgVariableRecord()
71 DIExpression *Expression, in DbgVariableRecord()
73 DIExpression *AddressExpression, in DbgVariableRecord()
180 DIExpression *Expr, in createDbgVariableRecord()
187 Value *Location, DILocalVariable *DV, DIExpression *Expr, in createDbgVariableRecord()
196 DIExpression *Expr, in createDVRDeclare()
204 DIExpression *Expr, const DILocation *DI, in createDVRDeclare()
212 Value *Val, DILocalVariable *Variable, DIExpression *Expression, in createDVRAssign()
213 DIAssignID *AssignID, Value *Address, DIExpression *AddressExpression, in createDVRAssign()
[all …]
H A DDebugInfo.cpp1612 true, unwrap<DIExpression>(Expr), unwrapDI<MDNode>(Decl), in LLVMDIBuilderCreateGlobalVariableExpression()
1670 unwrap<DIExpression>(Expr), unwrap<DILocation>(DL), in LLVMDIBuilderInsertDeclareRecordBefore()
1687 unwrap<DIExpression>(Expr), unwrap<DILocation>(DL), unwrap(Block)); in LLVMDIBuilderInsertDeclareRecordAtEnd()
1702 unwrap(Val), unwrap<DILocalVariable>(VarInfo), unwrap<DIExpression>(Expr), in LLVMDIBuilderInsertDbgValueRecordBefore()
1718 unwrap(Val), unwrap<DILocalVariable>(VarInfo), unwrap<DIExpression>(Expr), in LLVMDIBuilderInsertDbgValueRecordAtEnd()
1873 std::optional<DIExpression::FragmentInfo> &Result) { in calculateFragmentIntersectImpl()
1892 DIExpression::FragmentInfo VarFrag = in calculateFragmentIntersectImpl()
1896 return DIExpression::calculateFragmentIntersect( in calculateFragmentIntersectImpl()
1906 std::optional<DIExpression::FragmentInfo> &Result) { in calculateFragmentIntersect()
1916 std::optional<DIExpression::FragmentInfo> &Result) { in calculateFragmentIntersect()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DDebugProgramInstruction.h285 DbgRecordParamRef<DIExpression> Expression;
286 DbgRecordParamRef<DIExpression> AddressExpression;
295 DbgVariableRecord(Metadata *Location, DILocalVariable *DV, DIExpression *Expr,
299 DIExpression *Expression, DIAssignID *AssignID,
300 Metadata *Address, DIExpression *AddressExpression,
328 DIExpression *Expression, DIAssignID *AssignID,
329 Value *Address, DIExpression *AddressExpression,
333 DILocalVariable *Variable, DIExpression *Expression,
334 Value *Address, DIExpression *AddressExpression,
339 DIExpression *Expr,
[all …]
H A DDIBuilder.h97 DIExpression *Expr, const DILocation *DL,
112 DIExpression *Expr, const DILocation *DL,
119 DIExpression *Expr, const DILocation *DL,
244 DIExpression *StrLocationExp = nullptr);
252 DIExpression *StringLengthExp,
253 DIExpression *StrLocationExp = nullptr);
594 PointerUnion<DIExpression *, DIVariable *> DataLocation = nullptr,
595 PointerUnion<DIExpression *, DIVariable *> Associated = nullptr,
596 PointerUnion<DIExpression *, DIVariable *> Allocated = nullptr,
597 PointerUnion<DIExpression *, DIVariable *> Rank = nullptr);
[all …]
H A DDebugInfoMetadata.h396 typedef PointerUnion<ConstantInt *, DIVariable *, DIExpression *> BoundType;
443 using BoundType = PointerUnion<DIVariable *, DIExpression *>;
952 DIExpression *getStringLengthExp() const { in getStringLengthExp()
953 return cast_or_null<DIExpression>(getRawStringLengthExp()); in getStringLengthExp()
956 DIExpression *getStringLocationExp() const { in getStringLocationExp()
957 return cast_or_null<DIExpression>(getRawStringLocationExp()); in getStringLocationExp()
1311 DIExpression *getDataLocationExp() const { in getDataLocationExp()
1312 return dyn_cast_or_null<DIExpression>(getRawDataLocation()); in getDataLocationExp()
1318 DIExpression *getAssociatedExp() const { in getAssociatedExp()
1319 return dyn_cast_or_null<DIExpression>(getRawAssociated()); in getAssociatedExp()
[all …]
H A DIntrinsicInst.h266 bool isKillLocation(const DIExpression *Expression) const { in isKillLocation()
322 DIExpression *NewExpr);
328 void setExpression(DIExpression *NewExpr) { in setExpression()
365 DIExpression *getExpression() const { in getExpression()
366 return cast<DIExpression>(getRawExpression()); in getExpression()
397 std::optional<DIExpression::FragmentInfo> getFragment() const { in getFragment()
404 DIExpression::FragmentInfo getFragmentOrEntireVariable() const { in getFragmentOrEntireVariable()
405 DIExpression::FragmentInfo VariableSlice(0, 0); in getFragmentOrEntireVariable()
504 DIExpression *getAddressExpression() const { in getAddressExpression()
505 return cast<DIExpression>(getRawAddressExpression()); in getAddressExpression()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DTargetRegisterInfo.cpp653 DIExpression::appendOffset(Ops, Offset.getFixed()); in getOffsetOpcodes()
656 DIExpression *
657 TargetRegisterInfo::prependOffsetExpression(const DIExpression *Expr, in prependOffsetExpression()
661 ~(DIExpression::DerefBefore | DIExpression::DerefAfter | in prependOffsetExpression()
662 DIExpression::StackValue | DIExpression::EntryValue)) == 0 && in prependOffsetExpression()
665 if (PrependFlags & DIExpression::DerefBefore) in prependOffsetExpression()
668 if (PrependFlags & DIExpression::DerefAfter) in prependOffsetExpression()
670 return DIExpression::prependOpcodes(Expr, OffsetExpr, in prependOffsetExpression()
671 PrependFlags & DIExpression::StackValue, in prependOffsetExpression()
672 PrependFlags & DIExpression::EntryValue); in prependOffsetExpression()
H A DAssignmentTrackingAnalysis.cpp138 void addSingleLocVar(DebugVariable Var, DIExpression *Expr, DebugLoc DL, in addSingleLocVar()
149 void addVarLoc(VarLocInsertPt Before, DebugVariable Var, DIExpression *Expr, in addVarLoc()
266 static std::pair<Value *, DIExpression *>
268 DIExpression *Expression) { in walkToAllocaAndPrependOffsetDeref()
275 Expression = DIExpression::prependOpcodes( in walkToAllocaAndPrependOffsetDeref()
278 Expression = DIExpression::append(Expression, {dwarf::DW_OP_deref}); in walkToAllocaAndPrependOffsetDeref()
286 getDerefOffsetInBytes(const DIExpression *DIExpr) { in getDerefOffsetInBytes()
680 const DIExpression *DIExpr = VarLoc.Expr; in addDef()
969 DIExpression *Expr = DIExpression::get(Ctx, std::nullopt); in run()
972 Expr = *DIExpression::createFragmentExpression( in run()
[all …]
H A DLiveDebugVariables.cpp105 const DIExpression &Expr) in DbgVariableValue()
120 DIExpression::replaceArg(Expression, OpIdx, DuplicatingIdx); in DbgVariableValue()
142 DIExpression::get(Expr.getContext(), {dwarf::DW_OP_LLVM_arg, 0}); in DbgVariableValue()
144 Expression = *DIExpression::createFragmentExpression( in DbgVariableValue()
178 const DIExpression *getExpression() const { return Expression; } in getExpression()
256 const DIExpression *Expression = nullptr;
290 const std::optional<DIExpression::FragmentInfo> Fragment;
323 std::optional<DIExpression::FragmentInfo> Fragment, DebugLoc L, in UserValue()
415 bool IsList, const DIExpression &Expr) { in addDef()
587 std::optional<DIExpression::FragmentInfo> Fragment,
[all …]
H A DCodeGenCommonISel.cpp230 auto ExtOps = DIExpression::getExtOps(FromLLT.getSizeInBits(), in getSalvageOpsForTrunc()
275 const DIExpression *SalvagedExpr = DbgMI->getDebugExpression(); in salvageDebugInfoForDbgValue()
281 SalvagedExpr = DIExpression::appendOpsToArg(SalvagedExpr, Ops, 0, true); in salvageDebugInfoForDbgValue()
/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()
124 DbgValueLoc(const DIExpression *Expr, ArrayRef<DbgValueLocEntry> Locs, in DbgValueLoc()
137 DbgValueLoc(const DIExpression *Expr, DbgValueLocEntry Loc) in DbgValueLoc()
155 if (!DIExpression::isEqualExpression(Expression, ThisIsIndirect, in isEquivalent()
169 const DIExpression *getExpression() const { return Expression; } in getExpression()
H A DDwarfDebug.cpp236 const DIExpression *Expr = MI->getDebugExpression(); in getDebugLocValue()
237 auto SingleLocExprOpt = DIExpression::convertToNonVariadicExpression(Expr); in getDebugLocValue()
268 static uint64_t getFragmentOffsetInBits(const DIExpression &Expr) { in getFragmentOffsetInBits()
269 std::optional<DIExpression::FragmentInfo> Fragment = Expr.getFragmentInfo(); in getFragmentOffsetInBits()
296 void Loc::MMI::addFrameIndexExpr(const DIExpression *Expr, int FI) { in addFrameIndexExpr()
574 const DIExpression *Expr;
584 static const DIExpression *combineDIExpressions(const DIExpression *Original, in combineDIExpressions()
585 const DIExpression *Addition) { in combineDIExpressions()
590 const DIExpression *CombinedExpr = in combineDIExpressions()
591 (Elts.size() > 0) ? DIExpression::append(Original, Elts) : Original; in combineDIExpressions()
[all …]
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.h61 class DIExpression; variable
113 DIExpression *Expression;
116 DanglingDebugInfo(DILocalVariable *Var, DIExpression *Expr, DebugLoc DL, in DanglingDebugInfo()
122 DIExpression *getExpression() const { return Expression; } in getExpression()
337 DILocalVariable *Var, DIExpression *Expr,
344 const DIExpression *Expr);
358 DIExpression *Expr, DebugLoc DbgLoc, unsigned Order,
362 void handleKillDebugValue(DILocalVariable *Var, DIExpression *Expr,
366 DIExpression *Expression, DebugLoc DL);
625 DILocalVariable *Variable, DIExpression *Expr,
[all …]
H A DSDNodeDbgValue.h24 class DIExpression; variable
147 DIExpression *Expr;
156 SDDbgValue(BumpPtrAllocator &Alloc, DIVariable *Var, DIExpression *Expr, in SDDbgValue()
183 DIExpression *getExpression() const { return Expr; } in getExpression()
/freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXPrologEpilogPass.cpp79 const DIExpression *DIExpr = MI.getDebugExpression(); in runOnMachineFunction()
81 … DIExpr = TRI.prependOffsetExpression(MI.getDebugExpression(), DIExpression::ApplyOffset, Offset); in runOnMachineFunction()
86 DIExpr = DIExpression::appendOpsToArg(DIExpr, Ops, OpIdx); in runOnMachineFunction()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/LiveDebugValues/
H A DVarLocBasedImpl.cpp293 using FragmentInfo = DIExpression::FragmentInfo;
294 using OptFragmentInfo = std::optional<DIExpression::FragmentInfo>;
330 const DIExpression *Expr;
440 Expr = DIExpression::replaceArg(Expr, OpIdx, DuplicatingIdx); in VarLoc()
476 const DIExpression *EntryExpr, Register Reg) { in CreateEntryLoc()
491 const DIExpression *EntryExpr) { in CreateEntryBackupLoc()
504 const DIExpression *EntryExpr, in CreateEntryCopyBackupLoc()
556 const DIExpression *DIExpr = Expr; in BuildDbgValue()
583 auto Deref = Indirect ? DIExpression::DerefAfter : 0; in BuildDbgValue()
585 DIExpr, DIExpression::ApplyOffset | Deref, in BuildDbgValue()
[all …]
H A DInstrRefBasedImpl.h315 DbgValueProperties(const DIExpression *DIExpr, bool Indirect, bool IsVariadic)
329 return DIExpression::isEqualExpression(DIExpr, Indirect, Other.DIExpr,
346 const DIExpression *DIExpr;
1034 std::pair<const DILocalVariable *, DIExpression::FragmentInfo>;
1036 DenseMap<FragmentOfVar, SmallVector<DIExpression::FragmentInfo, 1>>;
1063 const DIExpression *EmptyExpr)
1098 std::optional<DIExpression::FragmentInfo> OptFragmentInfo = FragmentInfo;
1127 using FragmentInfo = DIExpression::FragmentInfo;
1128 using OptFragmentInfo = std::optional<DIExpression::FragmentInfo>;
1177 const DIExpression *EmptyExpr;
/freebsd/contrib/llvm-project/llvm/include/llvm/AsmParser/
H A DParser.h24 class DIExpression; variable
206 DIExpression *parseDIExpressionBodyAtBeginning(StringRef Asm, unsigned &Read,
/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/Scalar/
H A DSROA.cpp271 std::optional<DIExpression::FragmentInfo> StorageFragment, in calculateFragment()
272 std::optional<DIExpression::FragmentInfo> CurrentFragment, in calculateFragment()
273 DIExpression::FragmentInfo &Target) { in calculateFragment()
292 CurrentFragment = DIExpression::FragmentInfo(*Size, 0); in calculateFragment()
373 DenseMap<DebugVariable, std::optional<DIExpression::FragmentInfo>> in migrateDebugInfo()
397 std::optional<DIExpression::FragmentInfo> BaseFragment; in migrateDebugInfo()
404 std::optional<DIExpression::FragmentInfo> CurrentFragment = in migrateDebugInfo()
406 DIExpression::FragmentInfo NewFragment; in migrateDebugInfo()
422 if (auto E = DIExpression::createFragmentExpression( in migrateDebugInfo()
429 Expr = *DIExpression::createFragmentExpression( in migrateDebugInfo()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DMachineFunction.h51 class DIExpression; variable
419 const DIExpression *Expr;
422 VariableDbgInfo(const DILocalVariable *Var, const DIExpression *Expr,
426 VariableDbgInfo(const DILocalVariable *Var, const DIExpression *Expr,
1308 void setVariableDbgInfo(const DILocalVariable *Var, const DIExpression *Expr,
1315 void setVariableDbgInfo(const DILocalVariable *Var, const DIExpression *Expr,

1234