summaryrefslogtreecommitdiff
path: root/lib/Target/Hexagon/Hexagon.td
diff options
context:
space:
mode:
authorJyotsna Verma <jverma@codeaurora.org>2013-05-02 21:21:57 +0000
committerJyotsna Verma <jverma@codeaurora.org>2013-05-02 21:21:57 +0000
commit8a3f50038fa68e1c6697152ee08ad0f2faacb0b7 (patch)
treedb6fb2c474c587d37c55e0ea95cba6b7c7bc3867 /lib/Target/Hexagon/Hexagon.td
parent556dd3a9a9068337a84e3ba32253a10cd1ab67dc (diff)
downloadllvm-8a3f50038fa68e1c6697152ee08ad0f2faacb0b7.tar.gz
llvm-8a3f50038fa68e1c6697152ee08ad0f2faacb0b7.tar.bz2
llvm-8a3f50038fa68e1c6697152ee08ad0f2faacb0b7.tar.xz
Hexagon: Add multiclass/encoding bits for the New-Value Jump instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@180953 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Hexagon/Hexagon.td')
-rw-r--r--lib/Target/Hexagon/Hexagon.td24
1 files changed, 24 insertions, 0 deletions
diff --git a/lib/Target/Hexagon/Hexagon.td b/lib/Target/Hexagon/Hexagon.td
index af1c56b8b1..9b3a64316a 100644
--- a/lib/Target/Hexagon/Hexagon.td
+++ b/lib/Target/Hexagon/Hexagon.td
@@ -84,6 +84,30 @@ def getPredOpcode : InstrMapping {
}
//===----------------------------------------------------------------------===//
+// Generate mapping table to relate predicate-true instructions with their
+// predicate-false forms
+//
+def getFalsePredOpcode : InstrMapping {
+ let FilterClass = "PredRel";
+ let RowFields = ["BaseOpcode", "PNewValue", "isNVStore", "isBrTaken"];
+ let ColFields = ["PredSense"];
+ let KeyCol = ["true"];
+ let ValueCols = [["false"]];
+}
+
+//===----------------------------------------------------------------------===//
+// Generate mapping table to relate predicate-false instructions with their
+// predicate-true forms
+//
+def getTruePredOpcode : InstrMapping {
+ let FilterClass = "PredRel";
+ let RowFields = ["BaseOpcode", "PNewValue", "isNVStore", "isBrTaken"];
+ let ColFields = ["PredSense"];
+ let KeyCol = ["false"];
+ let ValueCols = [["true"]];
+}
+
+//===----------------------------------------------------------------------===//
// Generate mapping table to relate predicated instructions with their .new
// format.
//