Home | History | Annotate | Download | only in CodeGen

Lines Matching defs:Info

1357   const CGBitFieldInfo &Info = LV.getBitFieldInfo();
1365 cast<llvm::LoadInst>(Val)->setAlignment(Info.StorageAlignment);
1367 if (Info.IsSigned) {
1368 assert(static_cast<unsigned>(Info.Offset + Info.Size) <= Info.StorageSize);
1369 unsigned HighBits = Info.StorageSize - Info.Offset - Info.Size;
1372 if (Info.Offset + HighBits)
1373 Val = Builder.CreateAShr(Val, Info.Offset + HighBits, "bf.ashr");
1375 if (Info.Offset)
1376 Val = Builder.CreateLShr(Val, Info.Offset, "bf.lshr");
1377 if (static_cast<unsigned>(Info.Offset) + Info.Size < Info.StorageSize)
1378 Val = Builder.CreateAnd(Val, llvm::APInt::getLowBitsSet(Info.StorageSize,
1379 Info.Size),
1382 Val = Builder.CreateIntCast(Val, ResLTy, Info.IsSigned, "bf.cast");
1560 const CGBitFieldInfo &Info = Dst.getBitFieldInfo();
1575 if (Info.StorageSize != Info.Size) {
1576 assert(Info.StorageSize > Info.Size && "Invalid bitfield size.");
1579 cast<llvm::LoadInst>(Val)->setAlignment(Info.StorageAlignment);
1584 llvm::APInt::getLowBitsSet(Info.StorageSize,
1585 Info.Size),
1588 if (Info.Offset)
1589 SrcVal = Builder.CreateShl(SrcVal, Info.Offset, "bf.shl");
1593 ~llvm::APInt::getBitsSet(Info.StorageSize,
1594 Info.Offset,
1595 Info.Offset + Info.Size),
1601 assert(Info.Offset == 0);
1607 Store->setAlignment(Info.StorageAlignment);
1614 if (Info.IsSigned) {
1615 assert(Info.Size <= Info.StorageSize);
1616 unsigned HighBits = Info.StorageSize - Info.Size;
1623 ResultVal = Builder.CreateIntCast(ResultVal, ResLTy, Info.IsSigned,
2347 llvm::Constant *Info = llvm::ConstantStruct::getAnon(StaticArgs);
2349 new llvm::GlobalVariable(CGM.getModule(), Info->getType(), false,
2350 llvm::GlobalVariable::PrivateLinkage, Info);
2672 const CGBitFieldInfo &Info = RL.getBitFieldInfo(field);
2680 getLLVMContext(), Info.StorageSize,
2687 return LValue::MakeBitfield(Addr, Info, fieldType, base.getAlignment());