Lines Matching defs:lhs
536 LLVMValueRef lhs, rhs, target;
539 lhs = get_ioperand(fn, insn->type, insn->src1);
547 target = LLVMBuildAdd(fn->builder, lhs, rhs, target_name);
550 target = LLVMBuildSub(fn->builder, lhs, rhs, target_name);
553 target = LLVMBuildMul(fn->builder, lhs, rhs, target_name);
556 target = LLVMBuildUDiv(fn->builder, lhs, rhs, target_name);
560 target = LLVMBuildSDiv(fn->builder, lhs, rhs, target_name);
564 target = LLVMBuildURem(fn->builder, lhs, rhs, target_name);
568 target = LLVMBuildSRem(fn->builder, lhs, rhs, target_name);
572 target = LLVMBuildShl(fn->builder, lhs, rhs, target_name);
576 target = LLVMBuildLShr(fn->builder, lhs, rhs, target_name);
580 target = LLVMBuildAShr(fn->builder, lhs, rhs, target_name);
585 target = LLVMBuildFAdd(fn->builder, lhs, rhs, target_name);
588 target = LLVMBuildFSub(fn->builder, lhs, rhs, target_name);
591 target = LLVMBuildFMul(fn->builder, lhs, rhs, target_name);
594 target = LLVMBuildFDiv(fn->builder, lhs, rhs, target_name);
600 target = LLVMBuildAnd(fn->builder, lhs, rhs, target_name);
604 target = LLVMBuildOr(fn->builder, lhs, rhs, target_name);
608 target = LLVMBuildXor(fn->builder, lhs, rhs, target_name);
621 LLVMValueRef lhs, rhs, target;
624 lhs = pseudo_to_value(fn, NULL, insn->src1);
626 rhs = constant_value(insn->src2->value, LLVMTypeOf(lhs));
636 switch (LLVMGetTypeKind(LLVMTypeOf(lhs))) {
638 lhs = value_to_pvalue(fn, &ptr_ctype, lhs);
646 LLVMTypeRef ltype = LLVMTypeOf(lhs);
649 target = LLVMBuildICmp(fn->builder, op, lhs, rhs, target_name);
660 target = LLVMBuildFCmp(fn->builder, op, lhs, rhs, target_name);