Lines Matching refs:bit
12 // returns the (currently, 32-bit unsigned) value of the instruction.
44 int getVariableBit(const std::string &VarName, BitsInit *BI, int bit);
54 // If the VarBitInit at position 'bit' matches the specified variable then
55 // return the variable bit position. Otherwise return -1.
57 BitsInit *BI, int bit) {
58 if (VarBitInit *VBI = dyn_cast<VarBitInit>(BI->getBit(bit))) {
62 } else if (VarInit *VI = dyn_cast<VarInit>(BI->getBit(bit))) {
78 int bit = BI->getNumBits()-1;
80 // Scan for a bit that this contributed to.
81 for (; bit >= 0; ) {
82 if (getVariableBit(VarName, BI, bit) != -1)
85 --bit;
90 if (bit < 0) return;
149 for (; bit >= 0; ) {
150 int varBit = getVariableBit(VarName, BI, bit);
152 // If this bit isn't from a variable, skip it.
154 --bit;
160 int beginInstBit = bit;
163 for (--bit; bit >= 0;) {
164 varBit = getVariableBit(VarName, BI, bit);
167 --bit;
238 // For little-endian instruction bit encodings, reverse the bit order