Home | History | Annotate | Download | only in TableGen

Lines Matching defs:bit

12 // returns the (currently, 32-bit unsigned) value of the instruction.
47 int getVariableBit(const std::string &VarName, BitsInit *BI, int bit);
70 for (unsigned bit = 0, end = numBits / 2; bit != end; ++bit) {
71 unsigned bitSwapIdx = numBits - bit - 1;
72 Init *OrigBit = BI->getBit(bit);
74 NewBits[bit] = BitSwap;
90 // If the VarBitInit at position 'bit' matches the specified variable then
91 // return the variable bit position. Otherwise return -1.
93 BitsInit *BI, int bit) {
94 if (VarBitInit *VBI = dyn_cast<VarBitInit>(BI->getBit(bit))) {
98 } else if (VarInit *VI = dyn_cast<VarInit>(BI->getBit(bit))) {
113 int bit = BI->getNumBits()-1;
115 // Scan for a bit that this contributed to.
116 for (; bit >= 0; ) {
117 if (getVariableBit(VarName, BI, bit) != -1)
120 --bit;
125 if (bit < 0) return;
171 for (; bit >= 0; ) {
172 int varBit = getVariableBit(VarName, BI, bit);
174 // If this bit isn't from a variable, skip it.
176 --bit;
182 int beginInstBit = bit;
185 for (--bit; bit >= 0;) {
186 varBit = getVariableBit(VarName, BI, bit);
189 --bit;
240 // For little-endian instruction bit encodings, reverse the bit order