Lines Matching refs:R

17 Type *VPTypeAnalysis::inferScalarTypeForRecipe(const VPBlendRecipe *R) {  in inferScalarTypeForRecipe()  argument
18 Type *ResTy = inferScalarType(R->getIncomingValue(0)); in inferScalarTypeForRecipe()
19 for (unsigned I = 1, E = R->getNumIncomingValues(); I != E; ++I) { in inferScalarTypeForRecipe()
20 VPValue *Inc = R->getIncomingValue(I); in inferScalarTypeForRecipe()
28 Type *VPTypeAnalysis::inferScalarTypeForRecipe(const VPInstruction *R) { in inferScalarTypeForRecipe() argument
29 switch (R->getOpcode()) { in inferScalarTypeForRecipe()
31 Type *ResTy = inferScalarType(R->getOperand(1)); in inferScalarTypeForRecipe()
32 VPValue *OtherV = R->getOperand(2); in inferScalarTypeForRecipe()
39 Type *ResTy = inferScalarType(R->getOperand(0)); in inferScalarTypeForRecipe()
40 VPValue *OtherV = R->getOperand(1); in inferScalarTypeForRecipe()
52 R->getVPSingleValue()->dump(); in inferScalarTypeForRecipe()
57 Type *VPTypeAnalysis::inferScalarTypeForRecipe(const VPWidenRecipe *R) { in inferScalarTypeForRecipe() argument
58 unsigned Opcode = R->getOpcode(); in inferScalarTypeForRecipe()
81 Type *ResTy = inferScalarType(R->getOperand(0)); in inferScalarTypeForRecipe()
82 assert(ResTy == inferScalarType(R->getOperand(1)) && in inferScalarTypeForRecipe()
84 CachedTypes[R->getOperand(1)] = ResTy; in inferScalarTypeForRecipe()
89 return inferScalarType(R->getOperand(0)); in inferScalarTypeForRecipe()
97 R->getVPSingleValue()->dump(); in inferScalarTypeForRecipe()
102 Type *VPTypeAnalysis::inferScalarTypeForRecipe(const VPWidenCallRecipe *R) { in inferScalarTypeForRecipe() argument
103 auto &CI = *cast<CallInst>(R->getUnderlyingInstr()); in inferScalarTypeForRecipe()
108 const VPWidenMemoryInstructionRecipe *R) { in inferScalarTypeForRecipe() argument
109 assert(!R->isStore() && "Store recipes should not define any values"); in inferScalarTypeForRecipe()
110 return cast<LoadInst>(&R->getIngredient())->getType(); in inferScalarTypeForRecipe()
113 Type *VPTypeAnalysis::inferScalarTypeForRecipe(const VPWidenSelectRecipe *R) { in inferScalarTypeForRecipe() argument
114 Type *ResTy = inferScalarType(R->getOperand(1)); in inferScalarTypeForRecipe()
115 VPValue *OtherV = R->getOperand(2); in inferScalarTypeForRecipe()
122 Type *VPTypeAnalysis::inferScalarTypeForRecipe(const VPReplicateRecipe *R) { in inferScalarTypeForRecipe() argument
123 switch (R->getUnderlyingInstr()->getOpcode()) { in inferScalarTypeForRecipe()
125 unsigned CallIdx = R->getNumOperands() - (R->isPredicated() ? 2 : 1); in inferScalarTypeForRecipe()
126 return cast<Function>(R->getOperand(CallIdx)->getLiveInIRValue()) in inferScalarTypeForRecipe()
147 Type *ResTy = inferScalarType(R->getOperand(0)); in inferScalarTypeForRecipe()
148 assert(ResTy == inferScalarType(R->getOperand(1)) && in inferScalarTypeForRecipe()
150 CachedTypes[R->getOperand(1)] = ResTy; in inferScalarTypeForRecipe()
154 Type *ResTy = inferScalarType(R->getOperand(1)); in inferScalarTypeForRecipe()
155 assert(ResTy == inferScalarType(R->getOperand(2)) && in inferScalarTypeForRecipe()
157 CachedTypes[R->getOperand(2)] = ResTy; in inferScalarTypeForRecipe()
177 return R->getUnderlyingInstr()->getType(); in inferScalarTypeForRecipe()
181 return inferScalarType(R->getOperand(0)); in inferScalarTypeForRecipe()
183 return cast<LoadInst>(R->getUnderlyingInstr())->getType(); in inferScalarTypeForRecipe()
195 R->getVPSingleValue()->dump(); in inferScalarTypeForRecipe()
211 [this](const auto *R) { in inferScalarType() argument
216 return inferScalarType(R->getStartValue()); in inferScalarType()
219 [](const auto *R) { return R->getScalarType(); }) in inferScalarType() argument
221 VPWidenGEPRecipe>([this](const VPRecipeBase *R) { in inferScalarType() argument
222 return inferScalarType(R->getOperand(0)); in inferScalarType()
227 [this](const auto *R) { return inferScalarTypeForRecipe(R); }) in inferScalarType() argument
228 .Case<VPInterleaveRecipe>([V](const VPInterleaveRecipe *R) { in inferScalarType() argument
233 [](const VPWidenCastRecipe *R) { return R->getResultType(); }); in inferScalarType() argument