Lines Matching refs:ByteStart
196 static Constant *ExtractConstantBytes(Constant *C, unsigned ByteStart, in ExtractConstantBytes() argument
203 assert(ByteStart+ByteSize <= CSize && "Extracting invalid piece from input"); in ExtractConstantBytes()
209 if (ByteStart) in ExtractConstantBytes()
210 V = V.lshr(ByteStart*8); in ExtractConstantBytes()
223 Constant *RHS = ExtractConstantBytes(CE->getOperand(1), ByteStart,ByteSize); in ExtractConstantBytes()
232 Constant *LHS = ExtractConstantBytes(CE->getOperand(0), ByteStart,ByteSize); in ExtractConstantBytes()
238 Constant *RHS = ExtractConstantBytes(CE->getOperand(1), ByteStart,ByteSize); in ExtractConstantBytes()
246 Constant *LHS = ExtractConstantBytes(CE->getOperand(0), ByteStart,ByteSize); in ExtractConstantBytes()
262 if (ByteStart >= CSize-ShAmt) in ExtractConstantBytes()
266 if (ByteStart+ByteSize+ShAmt <= CSize) in ExtractConstantBytes()
267 return ExtractConstantBytes(CE->getOperand(0), ByteStart+ShAmt, ByteSize); in ExtractConstantBytes()
284 if (ByteStart+ByteSize <= ShAmt) in ExtractConstantBytes()
288 if (ByteStart >= ShAmt) in ExtractConstantBytes()
289 return ExtractConstantBytes(CE->getOperand(0), ByteStart-ShAmt, ByteSize); in ExtractConstantBytes()
300 if (ByteStart*8 >= SrcBitSize) in ExtractConstantBytes()
305 if (ByteStart == 0 && ByteSize*8 == SrcBitSize) in ExtractConstantBytes()
310 if ((SrcBitSize&7) == 0 && (ByteStart+ByteSize)*8 <= SrcBitSize) in ExtractConstantBytes()
311 return ExtractConstantBytes(CE->getOperand(0), ByteStart, ByteSize); in ExtractConstantBytes()
315 if ((ByteStart+ByteSize)*8 < SrcBitSize) { in ExtractConstantBytes()
318 if (ByteStart) in ExtractConstantBytes()
320 ConstantInt::get(Res->getType(), ByteStart*8)); in ExtractConstantBytes()