• Home
  • Raw
  • Download

Lines Matching refs:ops

502       llvm::Value* ops[2];  in llvm_expression()  local
504 ops[i] = llvm_value(ir->operands[i]); in llvm_expression()
526 vec = llvm::UndefValue::get(ops[vecidx]->getType()); in llvm_expression()
528 vec = bld.CreateInsertElement(vec, ops[scaidx], llvm_int(i), "sca2vec"); in llvm_expression()
529 ops[scaidx] = vec; in llvm_expression()
535 return bld.CreateNot(ops[0]); in llvm_expression()
541 return bld.CreateNeg(ops[0]); in llvm_expression()
543 return bld.CreateFNeg(ops[0]); in llvm_expression()
551 return ops[0]; in llvm_expression()
554 … bld.CreateICmpSGE(ops[0], llvm_imm(ops[0]->getType(), 0), "sabs.ge"), in llvm_expression()
555 ops[0], bld.CreateNeg(ops[0], "sabs.neg"), "sabs.select"); in llvm_expression()
558 … bld.CreateFCmpUGE(ops[0], llvm_imm(ops[0]->getType(), 0), "fabs.ge"), in llvm_expression()
559 ops[0], bld.CreateFNeg(ops[0], "fabs.neg"), "fabs.select"); in llvm_expression()
566 return ops[0]; in llvm_expression()
568 …return bld.CreateZExt(bld.CreateICmpNE(ops[0], llvm_imm(ops[0]->getType(), 0), "usign.ne"), ops[0]… in llvm_expression()
570 … return bld.CreateSelect(bld.CreateICmpNE(ops[0], llvm_imm(ops[0]->getType(), 0), "ssign.ne"), in llvm_expression()
571 …ateSelect(bld.CreateICmpSGE(ops[0], llvm_imm(ops[0]->getType(), 0), "ssign.ge"), llvm_imm(ops[0]->… in llvm_expression()
572 llvm_imm(ops[0]->getType(), 0), "sabs.select0"); in llvm_expression()
574 … return bld.CreateSelect(bld.CreateFCmpONE(ops[0], llvm_imm(ops[0]->getType(), 0), "fsign.ne"), in llvm_expression()
575 …ateSelect(bld.CreateFCmpUGE(ops[0], llvm_imm(ops[0]->getType(), 0), "fsign.ge"), llvm_imm(ops[0]->… in llvm_expression()
576 llvm_imm(ops[0]->getType(), 0), "fabs.select0"); in llvm_expression()
582 return bld.CreateFDiv(llvm_imm(ops[0]->getType(), 1), ops[0]); in llvm_expression()
590 return llvm_intrinsic_unop(ir->operation, ops[0]); in llvm_expression()
604 return bld.CreateAdd(ops[0], ops[1]); in llvm_expression()
606 return bld.CreateFAdd(ops[0], ops[1]); in llvm_expression()
616 return bld.CreateSub(ops[0], ops[1]); in llvm_expression()
618 return bld.CreateFSub(ops[0], ops[1]); in llvm_expression()
630 llvm::Value * value = bld.CreateExtractValue(ops[1], i, "vec*mat_col"); in llvm_expression()
631 …value = create_dot_product(value, ops[0], ir->operands[1]->type->base_type, ir->operands[1]->type-… in llvm_expression()
641 return bld.CreateAnd(ops[0], ops[1]); in llvm_expression()
644 return bld.CreateMul(ops[0], ops[1]); in llvm_expression()
646 return bld.CreateFMul(ops[0], ops[1]); in llvm_expression()
655 return bld.CreateUDiv(ops[0], ops[1]); in llvm_expression()
657 return bld.CreateSDiv(ops[0], ops[1]); in llvm_expression()
659 return bld.CreateFDiv(ops[0], ops[1]); in llvm_expression()
668 return bld.CreateURem(ops[0], ops[1]); in llvm_expression()
670 return bld.CreateSRem(ops[0], ops[1]); in llvm_expression()
672 return bld.CreateFRem(ops[0], ops[1]); in llvm_expression()
681 return bld.CreateICmpULT(ops[0], ops[1]); in llvm_expression()
683 return bld.CreateICmpSLT(ops[0], ops[1]); in llvm_expression()
685 return bld.CreateFCmpOLT(ops[0], ops[1]); in llvm_expression()
694 return bld.CreateICmpUGT(ops[0], ops[1]); in llvm_expression()
696 return bld.CreateICmpSGT(ops[0], ops[1]); in llvm_expression()
698 return bld.CreateFCmpOGT(ops[0], ops[1]); in llvm_expression()
707 return bld.CreateICmpULE(ops[0], ops[1]); in llvm_expression()
709 return bld.CreateICmpSLE(ops[0], ops[1]); in llvm_expression()
711 return bld.CreateFCmpOLE(ops[0], ops[1]); in llvm_expression()
720 return bld.CreateICmpUGE(ops[0], ops[1]); in llvm_expression()
722 return bld.CreateICmpSGE(ops[0], ops[1]); in llvm_expression()
724 return bld.CreateFCmpOGE(ops[0], ops[1]); in llvm_expression()
734 return bld.CreateICmpEQ(ops[0], ops[1]); in llvm_expression()
736 return bld.CreateFCmpOEQ(ops[0], ops[1]); in llvm_expression()
746 return bld.CreateICmpNE(ops[0], ops[1]); in llvm_expression()
748 return bld.CreateFCmpONE(ops[0], ops[1]); in llvm_expression()
754 return bld.CreateICmpNE(ops[0], ops[1]); in llvm_expression()
757 return bld.CreateOr(ops[0], ops[1]); in llvm_expression()
760 return bld.CreateAnd(ops[0], ops[1]); in llvm_expression()
762 …return create_dot_product(ops[0], ops[1], ir->operands[0]->type->base_type, ir->operands[0]->type-… in llvm_expression()
783 return llvm_intrinsic_unop(ir->operation, ops[0]); in llvm_expression()
786 …return bld.CreateFDiv(llvm_imm(ops[0]->getType(), 1), llvm_intrinsic_unop(ir_unop_sqrt, ops[0]), "… in llvm_expression()
788 return bld.CreateSIToFP(ops[0], llvm_type(ir->type)); in llvm_expression()
791 return bld.CreateUIToFP(ops[0], llvm_type(ir->type)); in llvm_expression()
793 return bld.CreateZExt(ops[0], llvm_type(ir->type)); in llvm_expression()
795 return bld.CreateFPToSI(ops[0], llvm_type(ir->type)); in llvm_expression()
797 return bld.CreateFCmpONE(ops[0], llvm_imm(ops[0]->getType(), 0)); in llvm_expression()
799 return bld.CreateICmpNE(ops[0], llvm_imm(ops[0]->getType(), 0)); in llvm_expression()
803 return ops[0]; in llvm_expression()
806 …return bld.CreateSIToFP(bld.CreateFPToSI(ops[0], llvm_type(&int_type), "trunc.fptosi"),ops[0]->get… in llvm_expression()
811 return ops[0]; in llvm_expression()
812 llvm::Value* one = llvm_imm(ops[0]->getType(), 1); in llvm_expression()
813 return bld.CreateFSub(ops[0], bld.CreateFRem(ops[0], one)); in llvm_expression()
818 return ops[0]; in llvm_expression()
819 llvm::Value* one = llvm_imm(ops[0]->getType(), 1); in llvm_expression()
820 return bld.CreateFAdd(bld.CreateFSub(ops[0], bld.CreateFRem(ops[0], one)), one); in llvm_expression()
825 return llvm_imm(ops[0]->getType(), 0); in llvm_expression()
826 llvm::Value* one = llvm_imm(ops[0]->getType(), 1); in llvm_expression()
827 return bld.CreateFRem(ops[0], one); in llvm_expression()
834 return bld.CreateAnd(ops[0], ops[1], "bmin"); in llvm_expression()
836 …return bld.CreateSelect(bld.CreateICmpULE(ops[0], ops[1], "umin.le"), ops[0], ops[1], "umin.select… in llvm_expression()
838 …return bld.CreateSelect(bld.CreateICmpSLE(ops[0], ops[1], "smin.le"), ops[0], ops[1], "smin.select… in llvm_expression()
840 …return bld.CreateSelect(bld.CreateFCmpULE(ops[0], ops[1], "fmin.le"), ops[0], ops[1], "fmin.select… in llvm_expression()
848 return bld.CreateOr(ops[0], ops[1], "bmax"); in llvm_expression()
850 …return bld.CreateSelect(bld.CreateICmpUGE(ops[0], ops[1], "umax.ge"), ops[0], ops[1], "umax.select… in llvm_expression()
852 …return bld.CreateSelect(bld.CreateICmpSGE(ops[0], ops[1], "smax.ge"), ops[0], ops[1], "smax.select… in llvm_expression()
854 …return bld.CreateSelect(bld.CreateFCmpUGE(ops[0], ops[1], "fmax.ge"), ops[0], ops[1], "fmax.select… in llvm_expression()
861 return llvm_intrinsic_binop(ir_binop_pow, ops[0], ops[1]); in llvm_expression()
863 return bld.CreateNot(ops[0]); in llvm_expression()
865 return bld.CreateAnd(ops[0], ops[1]); in llvm_expression()
867 return bld.CreateXor(ops[0], ops[1]); in llvm_expression()
869 return bld.CreateOr(ops[0], ops[1]); in llvm_expression()
876 return bld.CreateLShr(ops[0], ops[1]); in llvm_expression()
885 return bld.CreateLShr(ops[0], ops[1]); in llvm_expression()
887 return bld.CreateAShr(ops[0], ops[1]); in llvm_expression()