[llvm-commits] CVS: llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp AlphaInstrInfo.td
Andrew Lenharth
alenhar2 at cs.uiuc.edu
Thu Dec 7 09:39:28 PST 2006
Changes in directory llvm/lib/Target/Alpha:
AlphaAsmPrinter.cpp updated: 1.56 -> 1.57
AlphaInstrInfo.td updated: 1.135 -> 1.136
---
Log message:
Be sure to grab weak functions too, and make implicit defs comments
---
Diffs of the changes: (+10 -3)
AlphaAsmPrinter.cpp | 7 +++++++
AlphaInstrInfo.td | 6 +++---
2 files changed, 10 insertions(+), 3 deletions(-)
Index: llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp
diff -u llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp:1.56 llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp:1.57
--- llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp:1.56 Wed Dec 6 12:19:53 2006
+++ llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp Thu Dec 7 11:39:14 2006
@@ -285,6 +285,13 @@
}
}
+ for (Module::const_iterator I = M.begin(), E = M.end(); I != E; ++I)
+ if (I->hasExternalWeakLinkage()) {
+ O << "\n\n";
+ std::string name = Mang->getValueName(I);
+ O << "\t.weak " << name << "\n";
+ }
+
AsmPrinter::doFinalization(M);
return false;
}
Index: llvm/lib/Target/Alpha/AlphaInstrInfo.td
diff -u llvm/lib/Target/Alpha/AlphaInstrInfo.td:1.135 llvm/lib/Target/Alpha/AlphaInstrInfo.td:1.136
--- llvm/lib/Target/Alpha/AlphaInstrInfo.td:1.135 Thu Nov 2 19:18:29 2006
+++ llvm/lib/Target/Alpha/AlphaInstrInfo.td Thu Dec 7 11:39:14 2006
@@ -140,11 +140,11 @@
//Pseudo ops for selection
-def IDEF_I : PseudoInstAlpha<(ops GPRC:$RA), "#idef $RA",
+def IDEF_I : PseudoInstAlpha<(ops GPRC:$RA), ";#idef $RA",
[(set GPRC:$RA, (undef))], s_pseudo>;
-def IDEF_F32 : PseudoInstAlpha<(ops F4RC:$RA), "#idef $RA",
+def IDEF_F32 : PseudoInstAlpha<(ops F4RC:$RA), ";#idef $RA",
[(set F4RC:$RA, (undef))], s_pseudo>;
-def IDEF_F64 : PseudoInstAlpha<(ops F8RC:$RA), "#idef $RA",
+def IDEF_F64 : PseudoInstAlpha<(ops F8RC:$RA), ";#idef $RA",
[(set F8RC:$RA, (undef))], s_pseudo>;
def WTF : PseudoInstAlpha<(ops variable_ops), "#wtf", [], s_pseudo>;
More information about the llvm-commits
mailing list