aboutsummaryrefslogtreecommitdiffstats
path: root/utils/TableGen/InstrInfoEmitter.cpp
diff options
context:
space:
mode:
authorSebastian Pop <spop@codeaurora.org>2012-10-25 15:54:06 +0000
committerSebastian Pop <spop@codeaurora.org>2012-10-25 15:54:06 +0000
commitbecdf4d7cd0d5a3079339b6e177066b143d2f84c (patch)
tree5a847ef4568ea6aa317758c4c4c59c5a014101dd /utils/TableGen/InstrInfoEmitter.cpp
parent18560fae0bb122857a61bb36f22628901cdc3dde (diff)
downloadexternal_llvm-becdf4d7cd0d5a3079339b6e177066b143d2f84c.zip
external_llvm-becdf4d7cd0d5a3079339b6e177066b143d2f84c.tar.gz
external_llvm-becdf4d7cd0d5a3079339b6e177066b143d2f84c.tar.bz2
add TableGen support to create relationship maps between instructions
Relationship maps are represented as InstrMapping records which are parsed by TableGen and the information is used to construct mapping tables to represent appropriate relations between instructions. These tables are emitted into XXXGenInstrInfo.inc file along with the functions to query them. Patch by Jyotsna Verma <jverma@codeaurora.org>. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166685 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/InstrInfoEmitter.cpp')
-rw-r--r--utils/TableGen/InstrInfoEmitter.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/TableGen/InstrInfoEmitter.cpp b/utils/TableGen/InstrInfoEmitter.cpp
index e447c16..8e670e3 100644
--- a/utils/TableGen/InstrInfoEmitter.cpp
+++ b/utils/TableGen/InstrInfoEmitter.cpp
@@ -16,6 +16,7 @@
#include "CodeGenDAGPatterns.h"
#include "CodeGenSchedule.h"
#include "CodeGenTarget.h"
+#include "TableGenBackends.h"
#include "SequenceToOffsetTable.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/TableGen/Record.h"
@@ -415,6 +416,7 @@ namespace llvm {
void EmitInstrInfo(RecordKeeper &RK, raw_ostream &OS) {
InstrInfoEmitter(RK).run(OS);
+ EmitMapTable(RK, OS);
}
} // End llvm namespace