Lines Matching refs:BI
36 int getVariableBit(const std::string &VarName, BitsInit *BI, int bit);
38 void AddCodeToMergeInOperand(Record *R, BitsInit *BI,
49 BitsInit *BI, int bit) { in getVariableBit() argument
50 if (VarBitInit *VBI = dyn_cast<VarBitInit>(BI->getBit(bit))) { in getVariableBit()
54 } else if (VarInit *VI = dyn_cast<VarInit>(BI->getBit(bit))) { in getVariableBit()
63 AddCodeToMergeInOperand(Record *R, BitsInit *BI, const std::string &VarName, in AddCodeToMergeInOperand() argument
70 int bit = BI->getNumBits()-1; in AddCodeToMergeInOperand()
74 if (getVariableBit(VarName, BI, bit) != -1) in AddCodeToMergeInOperand()
140 int varBit = getVariableBit(VarName, BI, bit); in AddCodeToMergeInOperand()
154 varBit = getVariableBit(VarName, BI, bit); in AddCodeToMergeInOperand()
182 BitsInit *BI = R->getValueAsBitsInit("Inst"); in getInstructionCase() local
209 AddCodeToMergeInOperand(R, BI, Vals[i].getName(), NumberedOp, in getInstructionCase()
254 BitsInit *BI = R->getValueAsBitsInit("Inst"); in run() local
258 for (unsigned i = 0, e = BI->getNumBits(); i != e; ++i) { in run()
259 if (BitInit *B = dyn_cast<BitInit>(BI->getBit(e-i-1))) in run()