Add isLittleEndianEncoding to InstrInfo class, defaults to `off'
authorMisha Brukman <brukman+llvm@gmail.com>
Thu, 14 Oct 2004 05:53:40 +0000 (05:53 +0000)
committerMisha Brukman <brukman+llvm@gmail.com>
Thu, 14 Oct 2004 05:53:40 +0000 (05:53 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16976 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Target.td

index 522a46cbc2164211cf9eb5f62ddd78744ee8382e..bdc30c06cd32b4ed1717ad3464b1b15f1e9e4dd5 100644 (file)
@@ -170,6 +170,12 @@ class InstrInfo {
   //
   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;
 }
 
 //===----------------------------------------------------------------------===//