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