Lines Matching defs:SD
608 const ConstantSDNode *SD = cast<ConstantSDNode>(N0);
609 MIB.addImm(SD->getZExtValue());
700 InstrEmitter::EmitDbgValue(SDDbgValue *SD,
702 DebugLoc DL = SD->getDebugLoc();
703 assert(cast<DILocalVariable>(SD->getVariable())
707 SD->setIsEmitted();
709 assert(!SD->getLocationOps().empty() &&
712 if (SD->isInvalidated())
713 return EmitDbgNoLocation(SD);
717 if (auto *InstrRef = EmitDbgInstrRef(SD, VRBaseMap))
722 if (SD->isVariadic())
723 return EmitDbgValueList(SD, VRBaseMap);
727 return EmitDbgValueFromSingleOp(SD, VRBaseMap);
783 InstrEmitter::EmitDbgInstrRef(SDDbgValue *SD,
785 MDNode *Var = SD->getVariable();
786 const DIExpression *Expr = (DIExpression *)SD->getExpression();
787 DebugLoc DL = SD->getDebugLoc();
803 if (any_of(SD->getLocationOps(), IsInvalidOp) ||
804 all_of(SD->getLocationOps(), IsNonInstrRefOp)) {
805 if (SD->isVariadic())
806 return EmitDbgValueList(SD, VRBaseMap);
807 return EmitDbgValueFromSingleOp(SD, VRBaseMap);
812 if (SD->isIndirect())
816 if (!SD->isVariadic())
837 unsigned OpCount = SD->getLocationOps().size();
839 SDDbgOperand DbgOperand = SD->getLocationOps()[OpIdx];
907 return EmitDbgNoLocation(SD);
912 MachineInstr *InstrEmitter::EmitDbgNoLocation(SDDbgValue *SD) {
916 DIVariable *Var = SD->getVariable();
918 DIExpression::convertToUndefExpression(SD->getExpression());
919 DebugLoc DL = SD->getDebugLoc();
925 InstrEmitter::EmitDbgValueList(SDDbgValue *SD,
927 MDNode *Var = SD->getVariable();
928 DIExpression *Expr = SD->getExpression();
929 DebugLoc DL = SD->getDebugLoc();
936 AddDbgValueLocationOps(MIB, DbgValDesc, SD->getLocationOps(), VRBaseMap);
941 InstrEmitter::EmitDbgValueFromSingleOp(SDDbgValue *SD,
943 MDNode *Var = SD->getVariable();
944 DIExpression *Expr = SD->getExpression();
945 DebugLoc DL = SD->getDebugLoc();
948 assert(SD->getLocationOps().size() == 1 &&
953 SmallVector<SDDbgOperand, 1> LocationOps(1, SD->getLocationOps()[0]);
967 if (SD->isIndirect())
976 InstrEmitter::EmitDbgLabel(SDDbgLabel *SD) {
977 MDNode *Label = SD->getLabel();
978 DebugLoc DL = SD->getDebugLoc();