Lines Matching defs:FieldValue
173 llvm::APInt FieldValue = CI->getValue();
175 // Promote the size of FieldValue if necessary
179 if (FieldSize > FieldValue.getBitWidth())
180 FieldValue = FieldValue.zext(FieldSize);
182 // Truncate the size of FieldValue to the bit field size.
183 if (FieldSize < FieldValue.getBitWidth())
184 FieldValue = FieldValue.trunc(FieldSize);
195 BitsInPreviousByte >= FieldValue.getBitWidth();
197 llvm::APInt Tmp = FieldValue;
207 FieldValue = FieldValue.trunc(NewFieldWidth);
212 FieldValue = FieldValue.lshr(BitsInPreviousByte);
213 FieldValue = FieldValue.trunc(NewFieldWidth);
220 Tmp = Tmp.shl(BitsInPreviousByte - FieldValue.getBitWidth());
264 while (FieldValue.getBitWidth() > CharWidth) {
270 FieldValue.lshr(FieldValue.getBitWidth() - CharWidth).trunc(CharWidth);
273 Tmp = FieldValue.trunc(CharWidth);
275 FieldValue = FieldValue.lshr(CharWidth);
281 FieldValue = FieldValue.trunc(FieldValue.getBitWidth() - CharWidth);
284 assert(FieldValue.getBitWidth() > 0 &&
286 assert(FieldValue.getBitWidth() <= CharWidth &&
289 if (FieldValue.getBitWidth() < CharWidth) {
291 unsigned BitWidth = FieldValue.getBitWidth();
293 FieldValue = FieldValue.zext(CharWidth) << (CharWidth - BitWidth);
295 FieldValue = FieldValue.zext(CharWidth);
300 FieldValue));
478 const APValue &FieldValue =
481 CGM.EmitConstantValueForMemory(FieldValue, Field->getType(), CGF);