Lines Matching refs:DIExpr
1042 static bool LdStHasDebugValue(DILocalVariable *DIVar, DIExpression *DIExpr, in LdStHasDebugValue() argument
1054 DVI->getExpression() == DIExpr) in LdStHasDebugValue()
1065 auto *DIExpr = DDI->getExpression(); in ConvertDebugDeclareToDebugValue() local
1086 if (DIExpr->isBitPiece()) { in ConvertDebugDeclareToDebugValue()
1087 Ops.append(DIExpr->elements_begin(), DIExpr->elements_end()-3); in ConvertDebugDeclareToDebugValue()
1088 PieceOffset = DIExpr->getBitPieceOffset(); in ConvertDebugDeclareToDebugValue()
1090 Ops.append(DIExpr->elements_begin(), DIExpr->elements_end()); in ConvertDebugDeclareToDebugValue()
1100 } else if (!LdStHasDebugValue(DIVar, DIExpr, SI)) in ConvertDebugDeclareToDebugValue()
1101 Builder.insertDbgValueIntrinsic(SI->getOperand(0), 0, DIVar, DIExpr, in ConvertDebugDeclareToDebugValue()
1111 auto *DIExpr = DDI->getExpression(); in ConvertDebugDeclareToDebugValue() local
1114 if (LdStHasDebugValue(DIVar, DIExpr, LI)) in ConvertDebugDeclareToDebugValue()
1122 LI, 0, DIVar, DIExpr, DDI->getDebugLoc(), (Instruction *)nullptr); in ConvertDebugDeclareToDebugValue()
1168 auto *DIExpr = DDI->getExpression(); in LowerDbgDeclare() local
1170 NewDIExpr.append(DIExpr->elements_begin(), DIExpr->elements_end()); in LowerDbgDeclare()
1209 DIExpression *DIExpr, bool Deref, in BuildReplacementDIExpr() argument
1212 return DIExpr; in BuildReplacementDIExpr()
1221 if (DIExpr) in BuildReplacementDIExpr()
1222 NewDIExpr.append(DIExpr->elements_begin(), DIExpr->elements_end()); in BuildReplacementDIExpr()
1234 auto *DIExpr = DDI->getExpression(); in replaceDbgDeclare() local
1237 DIExpr = BuildReplacementDIExpr(Builder, DIExpr, Deref, Offset); in replaceDbgDeclare()
1241 Builder.insertDeclare(NewAddress, DIVar, DIExpr, Loc, InsertBefore); in replaceDbgDeclare()
1256 auto *DIExpr = DVI->getExpression(); in replaceOneDbgValueForAlloca() local
1262 if (!DIExpr || DIExpr->getNumElements() < 1 || in replaceOneDbgValueForAlloca()
1263 DIExpr->getElement(0) != dwarf::DW_OP_deref) in replaceOneDbgValueForAlloca()
1272 NewDIExpr.append(DIExpr->elements_begin() + 1, DIExpr->elements_end()); in replaceOneDbgValueForAlloca()
1273 DIExpr = Builder.createExpression(NewDIExpr); in replaceOneDbgValueForAlloca()
1276 Builder.insertDbgValueIntrinsic(NewAddress, DVI->getOffset(), DIVar, DIExpr, in replaceOneDbgValueForAlloca()