Skip to content

Commit

Permalink
Stop special-casing annul and predict bits (which are Sparc-specific …
Browse files Browse the repository at this point in the history
…anyway)

since those bits are now hard-coded in Sparc*.td files.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7593 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
mbrukman committed Aug 5, 2003
1 parent c3cd8af commit d88ba5a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
9 changes: 1 addition & 8 deletions support/tools/TableGen/CodeEmitterGen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,7 @@ void CodeEmitterGen::run(std::ostream &o) {
std::map<std::string, unsigned> OpOrder;
std::map<std::string, bool> OpContinuous;
for (unsigned i = 0, e = Vals.size(); i != e; ++i) {
if (!Vals[i].getPrefix() && !Vals[i].getValue()->isComplete() &&
// ignore annul and predict bits since no one sets them yet
Vals[i].getName() != "annul" && Vals[i].getName() != "predict") {
if (!Vals[i].getPrefix() && !Vals[i].getValue()->isComplete()) {
// Is the operand continuous? If so, we can just mask and OR it in
// instead of doing it bit-by-bit, saving a lot in runtime cost.
const BitsInit *InstInit = BI;
Expand Down Expand Up @@ -199,11 +197,6 @@ void CodeEmitterGen::run(std::ostream &o) {
}
}
}
} else {
// ignore annul and predict bits since no one sets them yet
if (Vals[f].getName() == "annul" || Vals[f].getName() == "predict") {
o << " // found " << Vals[f].getName() << "\n";
}
}
}

Expand Down
9 changes: 1 addition & 8 deletions utils/TableGen/CodeEmitterGen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,7 @@ void CodeEmitterGen::run(std::ostream &o) {
std::map<std::string, unsigned> OpOrder;
std::map<std::string, bool> OpContinuous;
for (unsigned i = 0, e = Vals.size(); i != e; ++i) {
if (!Vals[i].getPrefix() && !Vals[i].getValue()->isComplete() &&
// ignore annul and predict bits since no one sets them yet
Vals[i].getName() != "annul" && Vals[i].getName() != "predict") {
if (!Vals[i].getPrefix() && !Vals[i].getValue()->isComplete()) {
// Is the operand continuous? If so, we can just mask and OR it in
// instead of doing it bit-by-bit, saving a lot in runtime cost.
const BitsInit *InstInit = BI;
Expand Down Expand Up @@ -199,11 +197,6 @@ void CodeEmitterGen::run(std::ostream &o) {
}
}
}
} else {
// ignore annul and predict bits since no one sets them yet
if (Vals[f].getName() == "annul" || Vals[f].getName() == "predict") {
o << " // found " << Vals[f].getName() << "\n";
}
}
}

Expand Down

0 comments on commit d88ba5a

Please sign in to comment.