Home | History | Annotate | Download | only in CodeGen

Lines Matching refs:FieldValue

178   llvm::APInt FieldValue = CI->getValue();
180 // Promote the size of FieldValue if necessary
184 if (FieldSize > FieldValue.getBitWidth())
185 FieldValue = FieldValue.zext(FieldSize);
187 // Truncate the size of FieldValue to the bit field size.
188 if (FieldSize < FieldValue.getBitWidth())
189 FieldValue = FieldValue.trunc(FieldSize);
200 BitsInPreviousByte >= FieldValue.getBitWidth();
202 llvm::APInt Tmp = FieldValue;
212 FieldValue = FieldValue.trunc(NewFieldWidth);
217 FieldValue = FieldValue.lshr(BitsInPreviousByte);
218 FieldValue = FieldValue.trunc(NewFieldWidth);
225 Tmp = Tmp.shl(BitsInPreviousByte - FieldValue.getBitWidth());
269 while (FieldValue.getBitWidth() > CharWidth) {
275 FieldValue.lshr(FieldValue.getBitWidth() - CharWidth).trunc(CharWidth);
278 Tmp = FieldValue.trunc(CharWidth);
280 FieldValue = FieldValue.lshr(CharWidth);
286 FieldValue = FieldValue.trunc(FieldValue.getBitWidth() - CharWidth);
289 assert(FieldValue.getBitWidth() > 0 &&
291 assert(FieldValue.getBitWidth() <= CharWidth &&
294 if (FieldValue.getBitWidth() < CharWidth) {
296 unsigned BitWidth = FieldValue.getBitWidth();
298 FieldValue = FieldValue.zext(CharWidth) << (CharWidth - BitWidth);
300 FieldValue = FieldValue.zext(CharWidth);
305 FieldValue));
474 const APValue &FieldValue =
477 CGM.EmitConstantValueForMemory(FieldValue, Field->getType(), CGF);