Lines Matching refs:SelType
131 Type *SelType = Sel.getType();
132 if (SelType->isVectorTy() != Cmp->getType()->isVectorTy())
177 V = Builder.CreateAnd(V, ConstantInt::get(SelType, AndMask));
184 Constant *C = ConstantInt::get(SelType, TC);
191 Constant *C = ConstantInt::get(SelType, FC);
214 V = Builder.CreateZExtOrTrunc(V, SelType);
218 V = Builder.CreateZExtOrTrunc(V, SelType);
220 V = Builder.CreateZExtOrTrunc(V, SelType);
501 static Instruction *foldSelectICmpAndAnd(Type *SelType, const ICmpInst *Cmp,
526 Constant *One = ConstantInt::get(SelType, 1);
531 return new ZExtInst(ICmpNeZero, SelType);
1898 Type *SelType = Sel.getType();
1900 Constant *ExtC = ConstantExpr::getCast(ExtOpcode, TruncC, SelType);
1909 return CastInst::Create(Instruction::CastOps(ExtOpcode), NewSel, SelType);
1919 Constant *AllOnesOrOne = ConstantExpr::getCast(ExtOpcode, One, SelType);
1924 Constant *Zero = ConstantInt::getNullValue(SelType);
2330 Type *SelType = SI.getType();
2375 if (SelType->isIntOrIntVectorTy(1) &&
2417 if (SelType->isIntOrIntVectorTy() &&
2418 CondVal->getType()->isVectorTy() == SelType->isVectorTy()) {
2421 return new ZExtInst(CondVal, SelType);
2425 return new SExtInst(CondVal, SelType);
2430 return new ZExtInst(NotCond, SelType);
2436 return new SExtInst(NotCond, SelType);
2535 if (SelType->isIntOrIntVectorTy() || SelType->isFPOrFPVectorTy()) {
2562 bool IsCastNeeded = LHS->getType() != SelType;
2586 Value *NewCast = Builder.CreateCast(CastOp, NewSI, SelType);
2756 if (VectorType *VecTy = dyn_cast<VectorType>(SelType)) {