[llvm-commits] CVS: llvm/utils/TableGen/DAGISelEmitter.cpp
Chris Lattner
lattner at cs.uiuc.edu
Tue Sep 13 15:03:48 PDT 2005
Changes in directory llvm/utils/TableGen:
DAGISelEmitter.cpp updated: 1.12 -> 1.13
---
Log message:
Emit code suitable for emission into the ISel class, allowing us to use/define
methods.
---
Diffs of the changes: (+4 -4)
DAGISelEmitter.cpp | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
Index: llvm/utils/TableGen/DAGISelEmitter.cpp
diff -u llvm/utils/TableGen/DAGISelEmitter.cpp:1.12 llvm/utils/TableGen/DAGISelEmitter.cpp:1.13
--- llvm/utils/TableGen/DAGISelEmitter.cpp:1.12 Tue Sep 13 16:59:15 2005
+++ llvm/utils/TableGen/DAGISelEmitter.cpp Tue Sep 13 17:03:37 2005
@@ -509,11 +509,11 @@
SDNodeXForms.insert(std::make_pair(XFormNode,
std::make_pair(SDNode, Code)));
- if (0 && !Code.empty()) {
+ if (!Code.empty()) {
std::string ClassName = getSDNodeInfo(SDNode).getSDClassName();
const char *C2 = ClassName == "SDNode" ? "N" : "inN";
- OS << "static inline SDOperand Transform_" << XFormNode->getName()
+ OS << "inline SDOperand Transform_" << XFormNode->getName()
<< "(SDNode *" << C2 << ") {\n";
if (ClassName != "SDNode")
OS << " " << ClassName << " *N = cast<" << ClassName << ">(inN);\n";
@@ -585,7 +585,7 @@
getSDNodeInfo(P->getOnlyTree()->getOperator()).getSDClassName();
const char *C2 = ClassName == "SDNode" ? "N" : "inN";
- OS << "static inline bool Predicate_" << Fragments[i]->getName()
+ OS << "inline bool Predicate_" << Fragments[i]->getName()
<< "(SDNode *" << C2 << ") {\n";
if (ClassName != "SDNode")
OS << " " << ClassName << " *N = cast<" << ClassName << ">(inN);\n";
@@ -671,7 +671,7 @@
// Emit boilerplate.
OS << "// The main instruction selector code.\n"
<< "SDOperand " << Target.getName()
- << "DAGToDAGISel::SelectCode(SDOperand Op) {\n"
+ << "SelectCode(SDOperand Op) {\n"
<< " SDNode *N = Op.Val;\n"
<< " if (N->getOpcode() >= ISD::BUILTIN_OP_END &&\n"
<< " N->getOpcode() < PPCISD::FIRST_NUMBER)\n"
More information about the llvm-commits
mailing list