[llvm-commits] [llvm] r136534 - /llvm/trunk/utils/TableGen/FixedLenDecoderEmitter.cpp
Owen Anderson
resistor at mac.com
Fri Jul 29 16:01:18 PDT 2011
Author: resistor
Date: Fri Jul 29 18:01:18 2011
New Revision: 136534
URL: http://llvm.org/viewvc/llvm-project?rev=136534&view=rev
Log:
Correctly handle scattered operands where the bits of the operand are contiguous, but out of order.
Modified:
llvm/trunk/utils/TableGen/FixedLenDecoderEmitter.cpp
Modified: llvm/trunk/utils/TableGen/FixedLenDecoderEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/FixedLenDecoderEmitter.cpp?rev=136534&r1=136533&r2=136534&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/FixedLenDecoderEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/FixedLenDecoderEmitter.cpp Fri Jul 29 18:01:18 2011
@@ -1295,6 +1295,11 @@
Base = bi;
Width = 1;
Offset = BI->getBitNum();
+ } else if (BI->getBitNum() != Offset + Width) {
+ OpInfo.addField(Base, Width, Offset);
+ Base = bi;
+ Width = 1;
+ Offset = BI->getBitNum();
} else {
++Width;
}
More information about the llvm-commits
mailing list