projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Generalize the register matching code in DAGISel a bit.
[oota-llvm.git]
/
utils
/
TableGen
/
AsmWriterEmitter.h
diff --git
a/utils/TableGen/AsmWriterEmitter.h
b/utils/TableGen/AsmWriterEmitter.h
index 302722d6df06fbd0ec763374a16a2b6dcfc6d6b9..5e8d6f5b7fe7529cd90b1b6a176d56becc6bef54 100644
(file)
--- a/
utils/TableGen/AsmWriterEmitter.h
+++ b/
utils/TableGen/AsmWriterEmitter.h
@@
-32,9
+32,14
@@
namespace llvm {
AsmWriterEmitter(RecordKeeper &R) : Records(R) {}
// run - Output the asmwriter, returning true on failure.
AsmWriterEmitter(RecordKeeper &R) : Records(R) {}
// run - Output the asmwriter, returning true on failure.
- void run(
std::
ostream &o);
+ void run(
raw_
ostream &o);
private:
private:
+ void EmitPrintInstruction(raw_ostream &o);
+ void EmitGetRegisterName(raw_ostream &o);
+ void EmitGetInstructionName(raw_ostream &o);
+ void EmitPrintAliasInstruction(raw_ostream &O);
+
AsmWriterInst *getAsmWriterInstByID(unsigned ID) const {
assert(ID < NumberedInstructions.size());
std::map<const CodeGenInstruction*, AsmWriterInst*>::const_iterator I =
AsmWriterInst *getAsmWriterInstByID(unsigned ID) const {
assert(ID < NumberedInstructions.size());
std::map<const CodeGenInstruction*, AsmWriterInst*>::const_iterator I =