projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a606b70
)
Clean up.
author
Jim Laskey
<jlaskey@mac.com>
Thu, 13 Jul 2006 22:17:08 +0000
(22:17 +0000)
committer
Jim Laskey
<jlaskey@mac.com>
Thu, 13 Jul 2006 22:17:08 +0000
(22:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29137
91177308
-0d34-0410-b5e6-
96231b3b80d8
utils/TableGen/CodeEmitterGen.cpp
patch
|
blob
|
history
diff --git
a/utils/TableGen/CodeEmitterGen.cpp
b/utils/TableGen/CodeEmitterGen.cpp
index 24235381b951a3d455941474ae5cb950b41245bd..f0a02872cebe0b386e3f85154d1d0b95e90f79d3 100644
(file)
--- a/
utils/TableGen/CodeEmitterGen.cpp
+++ b/
utils/TableGen/CodeEmitterGen.cpp
@@
-49,7
+49,10
@@
void CodeEmitterGen::reverseBits(std::vector<Record*> &Insts) {
}
-int CodeEmitterGen::getVariableBit(const std::string &VarName, BitsInit *BI, int bit){
+// If the VarBitInit at position 'bit' matches the specified variable then
+// return the variable bit position. Otherwise return -1.
+int CodeEmitterGen::getVariableBit(const std::string &VarName,
+ BitsInit *BI, int bit) {
if (VarBitInit *VBI = dynamic_cast<VarBitInit*>(BI->getBit(bit))) {
TypedInit *TI = VBI->getVariable();