Home
last modified time | relevance | path

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

123

/netbsd-src/external/apache2/llvm/dist/llvm/lib/IR/
H A DDebugInfoMetadata.cpp33 const DIExpression::FragmentInfo DebugVariable::DefaultFragment = {
375 isa<DIExpression>(CB)) && in getCount()
384 if (auto *MD = dyn_cast<DIExpression>(CB)) in getCount()
396 isa<DIExpression>(LB)) && in getLowerBound()
405 if (auto *MD = dyn_cast<DIExpression>(LB)) in getLowerBound()
417 isa<DIExpression>(UB)) && in getUpperBound()
426 if (auto *MD = dyn_cast<DIExpression>(UB)) in getUpperBound()
438 isa<DIExpression>(ST)) && in getStride()
447 if (auto *MD = dyn_cast<DIExpression>(ST)) in getStride()
468 assert((isa<DIVariable>(CB) || isa<DIExpression>(CB)) && in getCount()
[all …]
H A DDIBuilder.cpp542 PointerUnion<DIExpression *, DIVariable *> DL, in createArrayType() argument
543 PointerUnion<DIExpression *, DIVariable *> AS, in createArrayType()
544 PointerUnion<DIExpression *, DIVariable *> AL, in createArrayType()
545 PointerUnion<DIExpression *, DIVariable *> RK) { in createArrayType()
550 DL.is<DIExpression *>() ? (Metadata *)DL.get<DIExpression *>() in createArrayType()
552 AS.is<DIExpression *>() ? (Metadata *)AS.get<DIExpression *>() in createArrayType()
554 AL.is<DIExpression *>() ? (Metadata *)AL.get<DIExpression *>() in createArrayType()
556 RK.is<DIExpression *>() ? (Metadata *)RK.get<DIExpression *>() in createArrayType()
680 return Bound.is<DIExpression *>() ? (Metadata *)Bound.get<DIExpression *>() in getOrCreateGenericSubrange()
700 bool isDefined, DIExpression *Expr, in createGlobalVariableExpression()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/AsmPrinter/
H A DDwarfExpression.h38 DIExpression::expr_op_iterator Start, End;
41 DIExpressionCursor(const DIExpression *Expr) { in DIExpressionCursor()
56 Optional<DIExpression::ExprOperand> take() { in take()
66 Optional<DIExpression::ExprOperand> peek() const { in peek()
73 Optional<DIExpression::ExprOperand> peekNext() const { in peekNext()
87 DIExpression::expr_op_iterator begin() const { return Start; } in begin()
88 DIExpression::expr_op_iterator end() const { return End; } in end()
91 Optional<DIExpression::FragmentInfo> getFragmentInfo() const { in getFragmentInfo()
92 return DIExpression::getFragmentInfo(Start, End); in getFragmentInfo()
157 void setLocation(const MachineLocation &Loc, const DIExpression *DIExpr);
[all …]
H A DDebugLocEntry.h110 const DIExpression *Expression;
117 DbgValueLoc(const DIExpression *Expr, ArrayRef<DbgValueLocEntry> Locs) in DbgValueLoc()
127 DbgValueLoc(const DIExpression *Expr, ArrayRef<DbgValueLocEntry> Locs, in DbgValueLoc()
132 assert(cast<DIExpression>(Expr)->isValid() || in DbgValueLoc()
144 DbgValueLoc(const DIExpression *Expr, DbgValueLocEntry Loc) in DbgValueLoc()
153 const DIExpression *getExpression() const { return Expression; } in getExpression()
H A DDwarfExpression.cpp316 if (any_of(ExprCursor, [](DIExpression::ExprOperand Op) -> bool { in addMachineRegExpression()
381 const DIExpression *DIExpr) { in setLocation()
481 Optional<DIExpression::ExprOperand> PrevConvertOp = None; in addExpression()
655 void DwarfExpression::addFragmentOffset(const DIExpression *Expr) { in addFragmentOffset()
H A DDwarfCompileUnit.cpp207 const DIExpression *Expr = GE.Expr; in addLocationAttribute()
217 DIExpression::SignedOrUnsignedConstant::UnsignedConstant == in addLocationAttribute()
251 const DIExpression *NewExpr = in addLocationAttribute()
252 DIExpression::extractAddressClass(Expr, LocalNVPTXAddressSpace); in addLocationAttribute()
773 const DIExpression *Expr = DV.getSingleExpression(); in constructVariableDIEImpl()
832 const DIExpression *Expr = Fragment.Expr; in constructVariableDIEImpl()
850 const DIExpression *NewExpr = in constructVariableDIEImpl()
851 DIExpression::extractAddressClass(Expr, LocalNVPTXAddressSpace); in constructVariableDIEImpl()
1445 const DIExpression *DIExpr = DV.getSingleExpression(); in addComplexAddress()
H A DDwarfDebug.cpp237 const DIExpression *Expr = MI->getDebugExpression(); in getDebugLocValue()
606 const DIExpression *Expr;
613 static const DIExpression *combineDIExpressions(const DIExpression *Original, in combineDIExpressions()
614 const DIExpression *Addition) { in combineDIExpressions()
619 const DIExpression *CombinedExpr = in combineDIExpressions()
620 (Elts.size() > 0) ? DIExpression::append(Original, Elts) : Original; in combineDIExpressions()
627 static void finishCallSiteParams(ValT Val, const DIExpression *Expr, in finishCallSiteParams()
642 const DIExpression *CombinedExpr = in finishCallSiteParams()
659 const DIExpression *Expr, in addToFwdRegWorklist()
674 const DIExpression *CombinedExpr = combineDIExpressions(Expr, Param.Expr); in addToFwdRegWorklist()
[all …]
H A DDwarfDebug.h127 const DIExpression *Expr;
141 void initializeMMI(const DIExpression *E, int FI) { in initializeMMI()
171 const DIExpression *getSingleExpression() const { in getSingleExpression()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/IR/
H A DDIBuilder.h82 DIExpression *Expr, const DILocation *DL,
92 DIExpression *Expr, const DILocation *DL,
511 PointerUnion<DIExpression *, DIVariable *> DataLocation = nullptr,
512 PointerUnion<DIExpression *, DIVariable *> Associated = nullptr,
513 PointerUnion<DIExpression *, DIVariable *> Allocated = nullptr,
514 PointerUnion<DIExpression *, DIVariable *> Rank = nullptr);
636 DIExpression *Expr = nullptr, MDNode *Decl = nullptr,
688 DIExpression *createExpression(ArrayRef<uint64_t> Addr = None);
689 DIExpression *createExpression(ArrayRef<int64_t> Addr);
693 DIExpression *createConstantValueExpression(uint64_t Val) { in createConstantValueExpression()
[all …]
H A DDebugInfoMetadata.h347 typedef PointerUnion<ConstantInt *, DIVariable *, DIExpression *> BoundType;
396 using BoundType = PointerUnion<DIVariable *, DIExpression *>;
900 DIExpression *getStringLengthExp() const { in getStringLengthExp()
901 return cast_or_null<DIExpression>(getRawStringLengthExp()); in getStringLengthExp()
1204 DIExpression *getDataLocationExp() const { in getDataLocationExp()
1205 return dyn_cast_or_null<DIExpression>(getRawDataLocation()); in getDataLocationExp()
1211 DIExpression *getAssociatedExp() const { in getAssociatedExp()
1212 return dyn_cast_or_null<DIExpression>(getRawAssociated()); in getAssociatedExp()
1218 DIExpression *getAllocatedExp() const { in getAllocatedExp()
1219 return dyn_cast_or_null<DIExpression>(getRawAllocated()); in getAllocatedExp()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/
H A DTargetRegisterInfo.cpp645 DIExpression::appendOffset(Ops, Offset.getFixed()); in getOffsetOpcodes()
648 DIExpression *
649 TargetRegisterInfo::prependOffsetExpression(const DIExpression *Expr, in prependOffsetExpression()
653 ~(DIExpression::DerefBefore | DIExpression::DerefAfter | in prependOffsetExpression()
654 DIExpression::StackValue | DIExpression::EntryValue)) == 0 && in prependOffsetExpression()
657 if (PrependFlags & DIExpression::DerefBefore) in prependOffsetExpression()
660 if (PrependFlags & DIExpression::DerefAfter) in prependOffsetExpression()
662 return DIExpression::prependOpcodes(Expr, OffsetExpr, in prependOffsetExpression()
663 PrependFlags & DIExpression::StackValue, in prependOffsetExpression()
664 PrependFlags & DIExpression::EntryValue); in prependOffsetExpression()
H A DLiveDebugVariables.cpp104 const DIExpression &Expr) in DbgVariableValue()
119 DIExpression::replaceArg(Expression, OpIdx, DuplicatingIdx); in DbgVariableValue()
141 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 Optional<DIExpression::FragmentInfo> Fragment;
323 Optional<DIExpression::FragmentInfo> Fragment, DebugLoc L, in UserValue()
415 bool IsList, const DIExpression &Expr) { in addDef()
540 const DIExpression *, DebugLoc>;
[all …]
H A DMachineInstr.cpp871 const DIExpression *MachineInstr::getDebugExpression() const { in getDebugExpression()
872 return cast<DIExpression>(getDebugExpressionOp().getMetadata()); in getDebugExpression()
2111 assert(cast<DIExpression>(Expr)->isValid() && "not an expression"); in BuildMI()
2127 assert(cast<DIExpression>(Expr)->isValid() && "not an expression"); in BuildMI()
2146 assert(cast<DIExpression>(Expr)->isValid() && "not an expression"); in BuildMI()
2197 static const DIExpression *
2203 const DIExpression *Expr = MI.getDebugExpression(); in computeExprForSpill()
2207 Expr = DIExpression::prepend(Expr, DIExpression::DerefBefore); in computeExprForSpill()
2214 Expr = DIExpression::appendOpsToArg(Expr, Ops, OpIdx); in computeExprForSpill()
2219 static const DIExpression *computeExprForSpill(const MachineInstr &MI, in computeExprForSpill()
[all …]
H A DPrologEpilogInserter.cpp196 const DIExpression *Expr = MI.getDebugExpression(); in stashEntryDbgValues()
1236 const DIExpression *DIExpr = MI.getDebugExpression(); in replaceFrameIndices()
1245 unsigned PrependFlags = DIExpression::ApplyOffset; in replaceFrameIndices()
1247 PrependFlags |= DIExpression::StackValue; in replaceFrameIndices()
1256 DIExpr = DIExpression::prependOpcodes(DIExpr, Ops, WithStackValue); in replaceFrameIndices()
1268 DIExpr = DIExpression::appendOpsToArg(DIExpr, Ops, DebugOpIndex); in replaceFrameIndices()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/SelectionDAG/
H A DSDNodeDbgValue.h23 class DIExpression; variable
146 DIExpression *Expr;
155 SDDbgValue(BumpPtrAllocator &Alloc, DIVariable *Var, DIExpression *Expr, in SDDbgValue()
182 DIExpression *getExpression() const { return Expr; } in getExpression()
H A DSelectionDAGBuilder.h57 class DIExpression; variable
503 const DIExpression *Expr);
517 DIExpression *Expr, DebugLoc CurDL, DebugLoc InstDL,
803 DIExpression *Expr, DILocation *DL,
815 DIExpression *Expr, const DebugLoc &dl,
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/NVPTX/
H A DNVPTXPrologEpilogPass.cpp78 const DIExpression *DIExpr = MI.getDebugExpression(); in runOnMachineFunction()
80 … DIExpr = TRI.prependOffsetExpression(MI.getDebugExpression(), DIExpression::ApplyOffset, Offset); in runOnMachineFunction()
85 DIExpr = DIExpression::appendOpsToArg(DIExpr, Ops, OpIdx); in runOnMachineFunction()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/LiveDebugValues/
H A DVarLocBasedImpl.cpp301 using FragmentInfo = DIExpression::FragmentInfo;
302 using OptFragmentInfo = Optional<DIExpression::FragmentInfo>;
323 const DIExpression *Expr;
425 Expr = DIExpression::replaceArg(Expr, OpIdx, DuplicatingIdx); in VarLoc()
458 const DIExpression *EntryExpr, Register Reg) { in CreateEntryLoc()
474 const DIExpression *EntryExpr) { in CreateEntryBackupLoc()
488 const DIExpression *EntryExpr, in CreateEntryCopyBackupLoc()
540 const DIExpression *DIExpr = Expr; in BuildDbgValue()
569 TRI->prependOffsetExpression(DIExpr, DIExpression::ApplyOffset, in BuildDbgValue()
576 DIExpr = DIExpression::appendOpsToArg(DIExpr, Ops, I); in BuildDbgValue()
[all …]
H A DInstrRefBasedImpl.cpp366 DbgValueProperties(const DIExpression *DIExpr, bool Indirect) in DbgValueProperties()
384 const DIExpression *DIExpr;
764 const DIExpression *Expr = Properties.DIExpr; in emitLoc()
774 Expr = TRI->prependOffsetExpression(Expr, DIExpression::ApplyOffset, in emitLoc()
884 std::pair<const DILocalVariable *, DIExpression::FragmentInfo>;
886 DenseMap<FragmentOfVar, SmallVector<DIExpression::FragmentInfo, 1>>;
1239 const DIExpression *Expr = ActiveVLocIt->second.Properties.DIExpr; in clobberMloc()
1303 using FragmentInfo = DIExpression::FragmentInfo;
1304 using OptFragmentInfo = Optional<DIExpression::FragmentInfo>;
1594 const DIExpression *Expr = MI.getDebugExpression(); in transferDebugValue()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/X86/
H A DX86OptimizeLEAs.cpp582 const DIExpression *Expr = MI.getDebugExpression(); in replaceDebugValue()
586 DIExpression::prepend(Expr, DIExpression::StackValue, AddrDispShift); in replaceDebugValue()
591 DIExpression::appendOffset(Ops, AddrDispShift); in replaceDebugValue()
594 Expr = DIExpression::appendOpsToArg(Expr, Ops, OpIdx); in replaceDebugValue()
/netbsd-src/external/apache2/llvm/dist/llvm/docs/
H A DHowToUpdateDebugInfo.rst164 instruction by describing its effect as a ``DIExpression``.
265 … call void @llvm.dbg.value(metadata i32** %x.addr, metadata !9, metadata !DIExpression()), !dbg !12
268 call void @llvm.dbg.value(metadata i32* %0, metadata !11, metadata !DIExpression()), !dbg !14
424 DBG_VALUE %0(s32), $noreg, !9, !DIExpression(), debug-location !12
426 DBG_VALUE %1(s32), $noreg, !11, !DIExpression(), debug-location !13
428 DBG_VALUE %2(s32), $noreg, !9, !DIExpression(), debug-location !14
430 …DBG_VALUE %3(s32), $noreg, !9, !DIExpression(), debug-location !DILocation(line: 4, column: 1, sco…
432 …DBG_VALUE %4(s32), $noreg, !9, !DIExpression(), debug-location !DILocation(line: 5, column: 1, sco…
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Transforms/Utils/
H A DLocal.h300 DIExpression *salvageDebugInfoImpl(Instruction &I, DIExpression *DIExpr,
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/
H A DLocal.cpp1365 DIExpression *DIExpr, in PhiHasDebugValue()
1583 DIExpression::append(DDI->getExpression(), dwarf::DW_OP_deref); in LowerDbgDeclare()
1676 DIExpr = DIExpression::prepend(DIExpr, DIExprFlags, Offset); in replaceDbgDeclare()
1702 DIExpr = DIExpression::prepend(DIExpr, 0, Offset); in replaceOneDbgValueForAlloca()
1740 DIExpression *SalvagedExpr = salvageDebugInfoImpl( in salvageDebugInfoForDbgValues()
1794 DIExpression::appendOffset(Opcodes, ConstantOffset.getSExtValue()); in getSalvageOpsForGEP()
1845 DIExpression::appendOffset(Opcodes, Offset); in getSalvageOpsForBinOp()
1868 DIExpression *
1869 llvm::salvageDebugInfoImpl(Instruction &I, DIExpression *SrcDIExpr, in salvageDebugInfoImpl()
1877 auto doSalvage = [&](SmallVectorImpl<uint64_t> &Ops) -> DIExpression * { in salvageDebugInfoImpl()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/CodeGen/
H A DMachineFunction.h50 class DIExpression; variable
385 const DIExpression *Expr;
390 VariableDbgInfo(const DILocalVariable *Var, const DIExpression *Expr,
1087 void setVariableDbgInfo(const DILocalVariable *Var, const DIExpression *Expr,
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/Mips/
H A DMipsInstrInfo.cpp848 DIExpression *Expr = in describeLoadedValue()
849 DIExpression::get(MI.getMF()->getFunction().getContext(), {}); in describeLoadedValue()
860 Expr = DIExpression::prepend(Expr, DIExpression::ApplyOffset, Offset); in describeLoadedValue()

123