Lines Matching refs:lhs

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