Lines Matching defs:FieldValue
157 llvm::APInt FieldValue = CI->getValue();
159 // Promote the size of FieldValue if necessary
163 if (FieldSize > FieldValue.getBitWidth())
164 FieldValue = FieldValue.zext(FieldSize);
166 // Truncate the size of FieldValue to the bit field size.
167 if (FieldSize < FieldValue.getBitWidth())
168 FieldValue = FieldValue.trunc(FieldSize);
179 BitsInPreviousByte >= FieldValue.getBitWidth();
181 llvm::APInt Tmp = FieldValue;
191 FieldValue = FieldValue.trunc(NewFieldWidth);
196 FieldValue = FieldValue.lshr(BitsInPreviousByte);
197 FieldValue = FieldValue.trunc(NewFieldWidth);
204 Tmp = Tmp.shl(BitsInPreviousByte - FieldValue.getBitWidth());
248 while (FieldValue.getBitWidth() > CharWidth) {
254 FieldValue.lshr(FieldValue.getBitWidth() - CharWidth).trunc(CharWidth);
257 Tmp = FieldValue.trunc(CharWidth);
259 FieldValue = FieldValue.lshr(CharWidth);
265 FieldValue = FieldValue.trunc(FieldValue.getBitWidth() - CharWidth);
268 assert(FieldValue.getBitWidth() > 0 &&
270 assert(FieldValue.getBitWidth() <= CharWidth &&
273 if (FieldValue.getBitWidth() < CharWidth) {
275 unsigned BitWidth = FieldValue.getBitWidth();
277 FieldValue = FieldValue.zext(CharWidth) << (CharWidth - BitWidth);
279 FieldValue = FieldValue.zext(CharWidth);
284 FieldValue));
457 const APValue &FieldValue =
460 CGM.EmitConstantValueForMemory(FieldValue, Field->getType(), CGF);