Lines Matching refs:BAI

237   Value *createBitSetTest(IRBuilder<> &B, BitSetInfo &BSI, ByteArrayInfo *&BAI,
243 lowerBitSetCall(CallInst *CI, BitSetInfo &BSI, ByteArrayInfo *&BAI,
354 ByteArrayInfo *BAI = &ByteArrayInfos.back(); in createByteArray() local
356 BAI->Bits = BSI.Bits; in createByteArray()
357 BAI->BitSize = BSI.BitSize; in createByteArray()
358 BAI->ByteArray = ByteArrayGlobal; in createByteArray()
359 BAI->Mask = ConstantExpr::getPtrToInt(MaskGlobal, Int8Ty); in createByteArray()
360 return BAI; in createByteArray()
373 ByteArrayInfo *BAI = &ByteArrayInfos[I]; in allocateByteArrays() local
376 BAB.allocate(BAI->Bits, BAI->BitSize, ByteArrayOffsets[I], Mask); in allocateByteArrays()
378 BAI->Mask->replaceAllUsesWith(ConstantInt::get(Int8Ty, Mask)); in allocateByteArrays()
379 cast<GlobalVariable>(BAI->Mask->getOperand(0))->eraseFromParent(); in allocateByteArrays()
388 ByteArrayInfo *BAI = &ByteArrayInfos[I]; in allocateByteArrays() local
399 BAI->ByteArray->replaceAllUsesWith(GEP); in allocateByteArrays()
403 BAI->ByteArray->replaceAllUsesWith(Alias); in allocateByteArrays()
405 BAI->ByteArray->eraseFromParent(); in allocateByteArrays()
417 ByteArrayInfo *&BAI, Value *BitOffset) { in createBitSetTest() argument
433 if (!BAI) { in createBitSetTest()
435 BAI = createByteArray(BSI); in createBitSetTest()
438 Constant *ByteArray = BAI->ByteArray; in createBitSetTest()
439 Type *Ty = BAI->ByteArray->getValueType(); in createBitSetTest()
444 ByteArray = GlobalAlias::create(BAI->ByteArray->getValueType(), 0, in createBitSetTest()
452 Value *ByteAndMask = B.CreateAnd(Byte, BAI->Mask); in createBitSetTest()
460 CallInst *CI, BitSetInfo &BSI, ByteArrayInfo *&BAI, in lowerBitSetCall() argument
515 Value *Bit = createBitSetTest(ThenB, BSI, BAI, BitOffset); in lowerBitSetCall()
612 ByteArrayInfo *BAI = nullptr; in lowerBitSetCalls() local
618 lowerBitSetCall(CI, BSI, BAI, CombinedGlobalIntAddr, GlobalLayout); in lowerBitSetCalls()