Lines Matching refs:Index
823 // and the corresponding branch-weight data is at index 2. We swap the
937 // The default weight is at index 0, so weight for the ith case
938 // should be at index i+1. Scale the cases from successor by
3738 /// the phi node, and set PhiIndex to BB's index in the phi node.
4112 /// the position given by Index in the lookup table.
4113 Value *BuildLookup(Value *Index, IRBuilder<> &Builder);
4128 // For tables where there is a linear relationship between table index
4210 // table index.
4277 Value *SwitchLookupTable::BuildLookup(Value *Index, IRBuilder<> &Builder) {
4283 Value *Result = Builder.CreateIntCast(Index, LinearMultiplier->getType(),
4295 // Cast Index to the same type as the bitmap.
4296 // Note: The Index is <= the number of elements in the table, so
4298 Value *ShiftAmt = Builder.CreateZExtOrTrunc(Index, MapTy, "switch.cast");
4313 // Make sure the table index will not overflow when treated as signed.
4314 IntegerType *IT = cast<IntegerType>(Index->getType());
4318 Index = Builder.CreateZExt(Index,
4323 Value *GEPIndices[] = { Builder.getInt32(0), Index };
4389 /// Try to reuse the switch table index compare. Following pattern:
4575 // Compute the table index value.