Lines Matching defs:RHS

113                                    Value *RHS, const Twine &Name) {
118 return Builder.CreateNSWAdd(LHS, RHS, Name);
120 return Builder.CreateNSWSub(LHS, RHS, Name);
122 return Builder.CreateNSWMul(LHS, RHS, Name);
147 auto *ResultStruct = Builder.CreateCall(F, {LHS, RHS}, Name);
165 Value *IslExprBuilder::createAdd(Value *LHS, Value *RHS, const Twine &Name) {
166 return createBinOp(Instruction::Add, LHS, RHS, Name);
169 Value *IslExprBuilder::createSub(Value *LHS, Value *RHS, const Twine &Name) {
170 return createBinOp(Instruction::Sub, LHS, RHS, Name);
173 Value *IslExprBuilder::createMul(Value *LHS, Value *RHS, const Twine &Name) {
174 return createBinOp(Instruction::Mul, LHS, RHS, Name);
358 Value *LHS, *RHS, *Res;
370 RHS = create(isl_ast_expr_get_op_arg(Expr, 1));
373 Type *RHSType = RHS->getType();
401 if (MaxType != RHS->getType())
402 RHS = Builder.CreateSExt(RHS, MaxType);
411 Res = createAdd(LHS, RHS);
414 Res = createSub(LHS, RHS);
417 Res = createMul(LHS, RHS);
420 Res = Builder.CreateSDiv(LHS, RHS, "pexp.div", true);
423 Res = Builder.CreateUDiv(LHS, RHS, "pexp.p_div_q");
426 if (auto *Const = dyn_cast<ConstantInt>(RHS)) {
439 Value *Sum1 = createSub(LHS, RHS, "pexp.fdiv_q.0");
444 Res = Builder.CreateSDiv(Dividend, RHS, "pexp.fdiv_q.4");
448 Res = Builder.CreateURem(LHS, RHS, "pexp.pdiv_r");
452 Res = Builder.CreateSRem(LHS, RHS, "pexp.zdiv_r");
467 Value *LHS, *RHS, *Cond;
475 RHS = create(isl_ast_expr_get_op_arg(Expr, 2));
478 MaxType = getWidestType(MaxType, RHS->getType());
480 if (MaxType != RHS->getType())
481 RHS = Builder.CreateSExt(RHS, MaxType);
488 return Builder.CreateSelect(Cond, LHS, RHS);
495 Value *LHS, *RHS, *Res;
506 RHS = create(Op1);
509 auto *RHSTy = RHS->getType();
517 RHS = Builder.CreatePtrToInt(RHS, PtrAsIntTy);
519 if (LHS->getType() != RHS->getType()) {
521 MaxType = getWidestType(MaxType, RHS->getType());
523 if (MaxType != RHS->getType())
524 RHS = Builder.CreateSExt(RHS, MaxType);
545 LHS, RHS);
555 Value *LHS, *RHS, *Res;
564 RHS = create(isl_ast_expr_get_op_arg(Expr, 1));
580 if (!RHS->getType()->isIntegerTy(1))
581 RHS = Builder.CreateIsNotNull(RHS);
587 Res = Builder.CreateAnd(LHS, RHS);
590 Res = Builder.CreateOr(LHS, RHS);
603 Value *LHS, *RHS;
641 RHS = create(isl_ast_expr_get_op_arg(Expr, 1));
642 if (!RHS->getType()->isIntegerTy(1))
643 RHS = Builder.CreateIsNotNull(RHS);
651 PHI->addIncoming(RHS, RightBB);