Lines Matching refs:LHS

219     ComplexPairTy LHS;  member
537 if (Op.LHS.first->getType()->isFloatingPointTy()) { in EmitBinAdd()
538 ResR = Builder.CreateFAdd(Op.LHS.first, Op.RHS.first, "add.r"); in EmitBinAdd()
539 if (Op.LHS.second && Op.RHS.second) in EmitBinAdd()
540 ResI = Builder.CreateFAdd(Op.LHS.second, Op.RHS.second, "add.i"); in EmitBinAdd()
542 ResI = Op.LHS.second ? Op.LHS.second : Op.RHS.second; in EmitBinAdd()
545 ResR = Builder.CreateAdd(Op.LHS.first, Op.RHS.first, "add.r"); in EmitBinAdd()
546 assert(Op.LHS.second && Op.RHS.second && in EmitBinAdd()
548 ResI = Builder.CreateAdd(Op.LHS.second, Op.RHS.second, "add.i"); in EmitBinAdd()
555 if (Op.LHS.first->getType()->isFloatingPointTy()) { in EmitBinSub()
556 ResR = Builder.CreateFSub(Op.LHS.first, Op.RHS.first, "sub.r"); in EmitBinSub()
557 if (Op.LHS.second && Op.RHS.second) in EmitBinSub()
558 ResI = Builder.CreateFSub(Op.LHS.second, Op.RHS.second, "sub.i"); in EmitBinSub()
560 ResI = Op.LHS.second ? Op.LHS.second in EmitBinSub()
564 ResR = Builder.CreateSub(Op.LHS.first, Op.RHS.first, "sub.r"); in EmitBinSub()
565 assert(Op.LHS.second && Op.RHS.second && in EmitBinSub()
567 ResI = Builder.CreateSub(Op.LHS.second, Op.RHS.second, "sub.i"); in EmitBinSub()
576 Args.add(RValue::get(Op.LHS.first), in EmitComplexBinOpLibCall()
578 Args.add(RValue::get(Op.LHS.second), in EmitComplexBinOpLibCall()
632 if (Op.LHS.first->getType()->isFloatingPointTy()) { in EmitBinMul()
641 if (Op.LHS.second && Op.RHS.second) { in EmitBinMul()
652 Value *AC = Builder.CreateFMul(Op.LHS.first, Op.RHS.first, "mul_ac"); in EmitBinMul()
653 Value *BD = Builder.CreateFMul(Op.LHS.second, Op.RHS.second, "mul_bd"); in EmitBinMul()
654 Value *AD = Builder.CreateFMul(Op.LHS.first, Op.RHS.second, "mul_ad"); in EmitBinMul()
655 Value *BC = Builder.CreateFMul(Op.LHS.second, Op.RHS.first, "mul_bc"); in EmitBinMul()
686 getComplexMultiplyLibCallName(Op.LHS.first->getType()), Op); in EmitBinMul()
702 assert((Op.LHS.second || Op.RHS.second) && in EmitBinMul()
708 ResR = Builder.CreateFMul(Op.LHS.first, Op.RHS.first, "mul.rl"); in EmitBinMul()
710 ResI = Op.LHS.second in EmitBinMul()
711 ? Builder.CreateFMul(Op.LHS.second, Op.RHS.first, "mul.il") in EmitBinMul()
712 : Builder.CreateFMul(Op.LHS.first, Op.RHS.second, "mul.ir"); in EmitBinMul()
714 assert(Op.LHS.second && Op.RHS.second && in EmitBinMul()
716 Value *ResRl = Builder.CreateMul(Op.LHS.first, Op.RHS.first, "mul.rl"); in EmitBinMul()
717 Value *ResRr = Builder.CreateMul(Op.LHS.second, Op.RHS.second, "mul.rr"); in EmitBinMul()
720 Value *ResIl = Builder.CreateMul(Op.LHS.second, Op.RHS.first, "mul.il"); in EmitBinMul()
721 Value *ResIr = Builder.CreateMul(Op.LHS.first, Op.RHS.second, "mul.ir"); in EmitBinMul()
730 llvm::Value *LHSr = Op.LHS.first, *LHSi = Op.LHS.second; in EmitBinDiv()
745 LibCallOp.LHS.second = llvm::Constant::getNullValue(LHSr->getType()); in EmitBinDiv()
770 assert(Op.LHS.second && Op.RHS.second && in EmitBinDiv()
803 Ops.LHS = ComplexPairTy(CGF.EmitScalarExpr(E->getLHS()), nullptr); in EmitBinOps()
805 Ops.LHS = Visit(E->getLHS()); in EmitBinOps()
846 LValue LHS = CGF.EmitLValue(E->getLHS()); in EmitCompoundAssignLValue() local
850 ComplexPairTy LHSVal = EmitLoadOfLValue(LHS, E->getExprLoc()); in EmitCompoundAssignLValue()
851 OpInfo.LHS = EmitComplexToComplexCast(LHSVal, LHSTy, OpInfo.Ty); in EmitCompoundAssignLValue()
853 llvm::Value *LHSVal = CGF.EmitLoadOfScalar(LHS, E->getExprLoc()); in EmitCompoundAssignLValue()
859 OpInfo.LHS = ComplexPairTy(LHSVal, nullptr); in EmitCompoundAssignLValue()
861 OpInfo.LHS = EmitScalarToComplexCast(LHSVal, LHSTy, OpInfo.Ty); in EmitCompoundAssignLValue()
871 EmitStoreOfComplex(ResVal, LHS, /*isInit*/ false); in EmitCompoundAssignLValue()
876 CGF.EmitStoreOfScalar(ResVal, LHS, /*isInit*/ false); in EmitCompoundAssignLValue()
880 return LHS; in EmitCompoundAssignLValue()
913 LValue LHS = CGF.EmitLValue(E->getLHS()); in EmitBinAssignLValue() local
916 EmitStoreOfComplex(Val, LHS, /*isInit*/ false); in EmitBinAssignLValue()
918 return LHS; in EmitBinAssignLValue()
959 ComplexPairTy LHS = Visit(E->getTrueExpr()); in VisitAbstractConditionalOperator() local
972 llvm::PHINode *RealPN = Builder.CreatePHI(LHS.first->getType(), 2, "cond.r"); in VisitAbstractConditionalOperator()
973 RealPN->addIncoming(LHS.first, LHSBlock); in VisitAbstractConditionalOperator()
977 llvm::PHINode *ImagPN = Builder.CreatePHI(LHS.first->getType(), 2, "cond.i"); in VisitAbstractConditionalOperator()
978 ImagPN->addIncoming(LHS.second, LHSBlock); in VisitAbstractConditionalOperator()