Lines Matching refs:CharWidth
153 const uint64_t CharWidth = Context.getCharWidth(); in AppendBitField() local
210 Tmp = Tmp.zext(CharWidth); in AppendBitField()
215 Tmp = Tmp.shl(CharWidth - BitsInPreviousByte); in AppendBitField()
234 assert(AT->getElementType()->isIntegerTy(CharWidth) && in AppendBitField()
246 Elements.back()->getType()->isIntegerTy(CharWidth) && in AppendBitField()
257 while (FieldValue.getBitWidth() > CharWidth) { in AppendBitField()
263 FieldValue.lshr(FieldValue.getBitWidth() - CharWidth).trunc(CharWidth); in AppendBitField()
266 Tmp = FieldValue.trunc(CharWidth); in AppendBitField()
268 FieldValue = FieldValue.lshr(CharWidth); in AppendBitField()
274 FieldValue = FieldValue.trunc(FieldValue.getBitWidth() - CharWidth); in AppendBitField()
279 assert(FieldValue.getBitWidth() <= CharWidth && in AppendBitField()
282 if (FieldValue.getBitWidth() < CharWidth) { in AppendBitField()
286 FieldValue = FieldValue.zext(CharWidth) << (CharWidth - BitWidth); in AppendBitField()
288 FieldValue = FieldValue.zext(CharWidth); in AppendBitField()