Lines Matching defs:bit
12 // returns the (currently, 32-bit unsigned) value of the instruction.
36 int getVariableBit(const std::string &VarName, BitsInit *BI, int bit);
46 // If the VarBitInit at position 'bit' matches the specified variable then
47 // return the variable bit position. Otherwise return -1.
49 BitsInit *BI, int bit) {
50 if (VarBitInit *VBI = dyn_cast<VarBitInit>(BI->getBit(bit))) {
54 } else if (VarInit *VI = dyn_cast<VarInit>(BI->getBit(bit))) {
70 int bit = BI->getNumBits()-1;
72 // Scan for a bit that this contributed to.
73 for (; bit >= 0; ) {
74 if (getVariableBit(VarName, BI, bit) != -1)
77 --bit;
82 if (bit < 0) return;
139 for (; bit >= 0; ) {
140 int varBit = getVariableBit(VarName, BI, bit);
142 // If this bit isn't from a variable, skip it.
144 --bit;
150 int beginInstBit = bit;
153 for (--bit; bit >= 0;) {
154 varBit = getVariableBit(VarName, BI, bit);
157 --bit;
227 // For little-endian instruction bit encodings, reverse the bit order