Lines Matching refs:BI
47 int getVariableBit(const std::string &VarName, BitsInit *BI, int bit);
51 void AddCodeToMergeInOperand(Record *R, BitsInit *BI,
67 BitsInit *BI, int bit) {
68 if (VarBitInit *VBI = dyn_cast<VarBitInit>(BI->getBit(bit))) {
72 } else if (VarInit *VI = dyn_cast<VarInit>(BI->getBit(bit))) {
81 AddCodeToMergeInOperand(Record *R, BitsInit *BI, const std::string &VarName,
88 int bit = BI->getNumBits()-1;
92 if (getVariableBit(VarName, BI, bit) != -1)
174 int varBit = getVariableBit(VarName, BI, tmpBit);
187 varBit = getVariableBit(VarName, BI, tmpBit);
197 int varBit = getVariableBit(VarName, BI, bit);
211 varBit = getVariableBit(VarName, BI, bit);
291 BitsInit *BI = EncodingDef->getValueAsBitsInit("Inst");
317 AddCodeToMergeInOperand(R, BI, RV.getName(), NumberedOp,
374 BitsInit *BI = EncodingDef->getValueAsBitsInit("Inst");
378 for (unsigned i = 0, e = BI->getNumBits(); i != e; ++i) {
379 if (BitInit *B = dyn_cast<BitInit>(BI->getBit(e - i - 1)))
413 BitsInit *BI = KV.second->getValueAsBitsInit("Inst");
414 BitWidth = std::max(BitWidth, BI->getNumBits());
420 BitsInit *BI = R->getValueAsBitsInit("Inst");
421 BitWidth = std::max(BitWidth, BI->getNumBits());