Lines Matching refs:BAI

216   Value *createBitSetTest(IRBuilder<> &B, BitSetInfo &BSI, ByteArrayInfo *&BAI,
219 lowerBitSetCall(CallInst *CI, BitSetInfo &BSI, ByteArrayInfo *&BAI,
314 ByteArrayInfo *BAI = &ByteArrayInfos.back(); in createByteArray() local
316 BAI->Bits = BSI.Bits; in createByteArray()
317 BAI->BitSize = BSI.BitSize; in createByteArray()
318 BAI->ByteArray = ByteArrayGlobal; in createByteArray()
319 BAI->Mask = ConstantExpr::getPtrToInt(MaskGlobal, Int8Ty); in createByteArray()
320 return BAI; in createByteArray()
333 ByteArrayInfo *BAI = &ByteArrayInfos[I]; in allocateByteArrays() local
336 BAB.allocate(BAI->Bits, BAI->BitSize, ByteArrayOffsets[I], Mask); in allocateByteArrays()
338 BAI->Mask->replaceAllUsesWith(ConstantInt::get(Int8Ty, Mask)); in allocateByteArrays()
339 cast<GlobalVariable>(BAI->Mask->getOperand(0))->eraseFromParent(); in allocateByteArrays()
348 ByteArrayInfo *BAI = &ByteArrayInfos[I]; in allocateByteArrays() local
359 BAI->ByteArray->replaceAllUsesWith(GEP); in allocateByteArrays()
363 BAI->ByteArray->replaceAllUsesWith(Alias); in allocateByteArrays()
365 BAI->ByteArray->eraseFromParent(); in allocateByteArrays()
377 ByteArrayInfo *&BAI, Value *BitOffset) { in createBitSetTest() argument
393 if (!BAI) { in createBitSetTest()
395 BAI = createByteArray(BSI); in createBitSetTest()
398 Constant *ByteArray = BAI->ByteArray; in createBitSetTest()
399 Type *Ty = BAI->ByteArray->getValueType(); in createBitSetTest()
404 ByteArray = GlobalAlias::create(BAI->ByteArray->getValueType(), 0, in createBitSetTest()
412 Value *ByteAndMask = B.CreateAnd(Byte, BAI->Mask); in createBitSetTest()
420 CallInst *CI, BitSetInfo &BSI, ByteArrayInfo *&BAI, in lowerBitSetCall() argument
476 Value *Bit = createBitSetTest(ThenB, BSI, BAI, BitOffset); in lowerBitSetCall()
533 ByteArrayInfo *BAI = 0; in buildBitSetsFromGlobals() local
538 Value *Lowered = lowerBitSetCall(CI, BSI, BAI, CombinedGlobal, GlobalLayout); in buildBitSetsFromGlobals()