Lines Matching refs:FieldValue
173 llvm::APInt FieldValue = CI->getValue(); in AppendBitField() local
179 if (FieldSize > FieldValue.getBitWidth()) in AppendBitField()
180 FieldValue = FieldValue.zext(FieldSize); in AppendBitField()
183 if (FieldSize < FieldValue.getBitWidth()) in AppendBitField()
184 FieldValue = FieldValue.trunc(FieldSize); in AppendBitField()
195 BitsInPreviousByte >= FieldValue.getBitWidth(); in AppendBitField()
197 llvm::APInt Tmp = FieldValue; in AppendBitField()
207 FieldValue = FieldValue.trunc(NewFieldWidth); in AppendBitField()
212 FieldValue = FieldValue.lshr(BitsInPreviousByte); in AppendBitField()
213 FieldValue = FieldValue.trunc(NewFieldWidth); in AppendBitField()
220 Tmp = Tmp.shl(BitsInPreviousByte - FieldValue.getBitWidth()); in AppendBitField()
264 while (FieldValue.getBitWidth() > CharWidth) { in AppendBitField()
270 FieldValue.lshr(FieldValue.getBitWidth() - CharWidth).trunc(CharWidth); in AppendBitField()
273 Tmp = FieldValue.trunc(CharWidth); in AppendBitField()
275 FieldValue = FieldValue.lshr(CharWidth); in AppendBitField()
281 FieldValue = FieldValue.trunc(FieldValue.getBitWidth() - CharWidth); in AppendBitField()
284 assert(FieldValue.getBitWidth() > 0 && in AppendBitField()
286 assert(FieldValue.getBitWidth() <= CharWidth && in AppendBitField()
289 if (FieldValue.getBitWidth() < CharWidth) { in AppendBitField()
291 unsigned BitWidth = FieldValue.getBitWidth(); in AppendBitField()
293 FieldValue = FieldValue.zext(CharWidth) << (CharWidth - BitWidth); in AppendBitField()
295 FieldValue = FieldValue.zext(CharWidth); in AppendBitField()
300 FieldValue)); in AppendBitField()
485 const APValue &FieldValue = in Build() local
488 CGM.EmitConstantValueForMemory(FieldValue, Field->getType(), CGF); in Build()