Lines Matching refs:SrcVar

739   if (const auto *SrcVar = llvm::dyn_cast<Variable>(Src)) {  in emitIASRegOpTyGPR()  local
740 if (SrcVar->hasReg()) { in emitIASRegOpTyGPR()
742 ? Traits::getEncodedGPR(SrcVar->getRegNum()) in emitIASRegOpTyGPR()
743 : Traits::getEncodedGPR(SrcVar->getRegNum()); in emitIASRegOpTyGPR()
746 Address SrcStackAddr = Target->stackVarToAsmOperand(SrcVar); in emitIASRegOpTyGPR()
780 if (const auto *SrcVar = llvm::dyn_cast<Variable>(Src)) { in emitIASAddrOpTyGPR() local
781 assert(SrcVar->hasReg()); in emitIASAddrOpTyGPR()
782 GPRRegister SrcReg = Traits::getEncodedGPR(SrcVar->getRegNum()); in emitIASAddrOpTyGPR()
835 if (const auto *SrcVar = llvm::dyn_cast<Variable>(Src)) { in emitIASGPRShift() local
836 assert(SrcVar->hasReg()); in emitIASGPRShift()
837 GPRRegister SrcReg = Traits::getEncodedGPR(SrcVar->getRegNum()); in emitIASGPRShift()
882 if (const auto *SrcVar = llvm::dyn_cast<Variable>(Src)) { in emitIASXmmShift() local
883 if (SrcVar->hasReg()) { in emitIASXmmShift()
884 XmmRegister SrcReg = Traits::getEncodedXmm(SrcVar->getRegNum()); in emitIASXmmShift()
887 Address SrcStackAddr = Target->stackVarToAsmOperand(SrcVar); in emitIASXmmShift()
909 if (const auto *SrcVar = llvm::dyn_cast<Variable>(Src)) { in emitIASRegOpTyXMM() local
910 if (SrcVar->hasReg()) { in emitIASRegOpTyXMM()
911 XmmRegister SrcReg = Traits::getEncodedXmm(SrcVar->getRegNum()); in emitIASRegOpTyXMM()
914 Address SrcStackAddr = Target->stackVarToAsmOperand(SrcVar); in emitIASRegOpTyXMM()
938 if (const auto *SrcVar = llvm::dyn_cast<Variable>(Src)) { in emitIASCastRegOp() local
939 if (SrcVar->hasReg()) { in emitIASCastRegOp()
940 SReg_t SrcReg = srcEnc(SrcVar->getRegNum()); in emitIASCastRegOp()
943 Address SrcStackAddr = Target->stackVarToAsmOperand(SrcVar); in emitIASCastRegOp()
967 if (const auto *SrcVar = llvm::dyn_cast<Variable>(Src0)) { in emitIASThreeOpImmOps() local
968 if (SrcVar->hasReg()) { in emitIASThreeOpImmOps()
969 SReg_t SrcReg = srcEnc(SrcVar->getRegNum()); in emitIASThreeOpImmOps()
972 Address SrcStackAddr = Target->stackVarToAsmOperand(SrcVar); in emitIASThreeOpImmOps()
993 if (const auto *SrcVar = llvm::dyn_cast<Variable>(Src)) { in emitIASMovlikeXMM() local
994 if (SrcVar->hasReg()) { in emitIASMovlikeXMM()
996 Traits::getEncodedXmm(SrcVar->getRegNum())); in emitIASMovlikeXMM()
998 Address StackAddr(Target->stackVarToAsmOperand(SrcVar)); in emitIASMovlikeXMM()
1010 const auto *SrcVar = llvm::cast<Variable>(Src); in emitIASMovlikeXMM() local
1011 assert(SrcVar->hasReg()); in emitIASMovlikeXMM()
1013 Traits::getEncodedXmm(SrcVar->getRegNum())); in emitIASMovlikeXMM()
1508 if (const auto *SrcVar = llvm::dyn_cast<Variable>(Src)) { in emitIAS() local
1509 if (SrcVar->hasReg()) { in emitIAS()
1512 Traits::getEncodedGPR(SrcVar->getRegNum())); in emitIAS()
1516 Target->stackVarToAsmOperand(SrcVar)); in emitIAS()
1565 const auto *SrcVar = llvm::cast<Variable>(this->getSrc(1)); in emitIAS() local
1566 if (SrcVar->hasReg()) { in emitIAS()
1569 Traits::getEncodedXmm(SrcVar->getRegNum()), Condition); in emitIAS()
1571 Address SrcStackAddr = Target->stackVarToAsmOperand(SrcVar); in emitIAS()
2036 const auto *SrcVar = llvm::cast<Variable>(Src); in emitIAS() local
2037 assert(SrcVar->hasReg()); in emitIAS()
2038 XmmRegister SrcReg = Traits::getEncodedXmm(SrcVar->getRegNum()); in emitIAS()
2088 const auto *SrcVar = llvm::cast<Variable>(this->getSrc(0)); in emitIAS() local
2091 assert(SrcVar->hasReg()); in emitIAS()
2094 Traits::getEncodedXmm(SrcVar->getRegNum())); in emitIAS()
2128 const auto *SrcVar = llvm::cast<Variable>(this->getSrc(0)); in emitIAS() local
2131 assert(SrcVar->hasReg()); in emitIAS()
2134 Traits::getEncodedXmm(SrcVar->getRegNum())); in emitIAS()
2168 const auto *SrcVar = llvm::cast<Variable>(this->getSrc(0)); in emitIAS() local
2171 assert(SrcVar->hasReg()); in emitIAS()
2173 Asm->movd(SrcVar->getType(), DestMem->toAsmAddress(Asm, Target), in emitIAS()
2174 Traits::getEncodedXmm(SrcVar->getRegNum())); in emitIAS()
2245 if (auto *SrcVar = llvm::dyn_cast<Variable>(Src)) { in emit() local
2247 if (SrcVar->hasReg()) in emit()
2248 NewRegNum = Traits::getGprForType(DestTy, SrcVar->getRegNum()); in emit()
2250 NewSrc = SrcVar->asType(Func, DestTy, NewRegNum); in emit()
2312 const auto *SrcVar = llvm::cast<Variable>(Src); in emitIAS() local
2313 assert(SrcVar->hasReg()); in emitIAS()
2315 Asm->movss(SrcTy, StackAddr, Traits::getEncodedXmm(SrcVar->getRegNum())); in emitIAS()
2359 if (const auto *SrcVar = llvm::dyn_cast<Variable>(this->getSrc(0))) { in emitIAS() local
2360 if (SrcVar->getType() == IceType_i32 || in emitIAS()
2361 (Traits::Is64Bit && SrcVar->getType() == IceType_i64)) { in emitIAS()
2364 typeWidthInBytes(SrcVar->getType()) == in emitIAS()
2368 if (SrcVar->hasReg()) { in emitIAS()
2369 Asm->movd(SrcVar->getType(), DestReg, in emitIAS()
2370 Traits::getEncodedGPR(SrcVar->getRegNum())); in emitIAS()
2372 Address StackAddr(Target->stackVarToAsmOperand(SrcVar)); in emitIAS()
2373 Asm->movd(SrcVar->getType(), DestReg, StackAddr); in emitIAS()
2376 assert(isVectorType(SrcVar->getType()) || in emitIAS()
2377 (isScalarFloatingType(SrcVar->getType()) && in emitIAS()
2378 typeWidthInBytes(SrcVar->getType()) == in emitIAS()
2380 assert(SrcVar->hasReg()); in emitIAS()
2383 XmmRegister SrcReg = Traits::getEncodedXmm(SrcVar->getRegNum()); in emitIAS()
2463 const auto *SrcVar = llvm::cast<Variable>(this->getSrc(1)); in emitIAS() local
2464 assert(Dest->hasReg() && SrcVar->hasReg()); in emitIAS()
2467 Traits::getEncodedXmm(SrcVar->getRegNum())); in emitIAS()