Add isLittleEndianEncoding to InstrInfo class, defaults to `off'
llvm-svn: 16976
diff --git a/llvm/lib/Target/Target.td b/llvm/lib/Target/Target.td
index 522a46c..bdc30c0 100644
--- a/llvm/lib/Target/Target.td
+++ b/llvm/lib/Target/Target.td
@@ -170,6 +170,12 @@
//
list<string> TSFlagsFields = [];
list<int> TSFlagsShifts = [];
+
+ // Target can specify its instructions in either big or little-endian formats.
+ // For instance, while both Sparc and PowerPC are big-endian platforms, the
+ // Sparc manual specifies its instructions in the format [31..0] (big), while
+ // PowerPC specifies them using the format [0..31] (little).
+ bit isLittleEndianEncoding = 0;
}
//===----------------------------------------------------------------------===//