diff options
author | Sirish Pande <spande@codeaurora.org> | 2012-05-03 21:52:53 +0000 |
---|---|---|
committer | Sirish Pande <spande@codeaurora.org> | 2012-05-03 21:52:53 +0000 |
commit | 26f61a158b3cce69252c05cc0e79f500d6c3d92e (patch) | |
tree | b3324a781f77ce12e2e208bff093187bb293e00e /lib/Target/Hexagon/MCTargetDesc/HexagonBaseInfo.h | |
parent | ff9229ecf09c1909adafcdd58134d3ac1414b565 (diff) | |
download | llvm-26f61a158b3cce69252c05cc0e79f500d6c3d92e.tar.gz llvm-26f61a158b3cce69252c05cc0e79f500d6c3d92e.tar.bz2 llvm-26f61a158b3cce69252c05cc0e79f500d6c3d92e.tar.xz |
Support for target dependent Hexagon VLIW packetizer.
This patch creates and optimizes packets as per Hexagon ISA rules.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156109 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Hexagon/MCTargetDesc/HexagonBaseInfo.h')
-rw-r--r-- | lib/Target/Hexagon/MCTargetDesc/HexagonBaseInfo.h | 31 |
1 files changed, 29 insertions, 2 deletions
diff --git a/lib/Target/Hexagon/MCTargetDesc/HexagonBaseInfo.h b/lib/Target/Hexagon/MCTargetDesc/HexagonBaseInfo.h index ed55c3c1c1..7221e90634 100644 --- a/lib/Target/Hexagon/MCTargetDesc/HexagonBaseInfo.h +++ b/lib/Target/Hexagon/MCTargetDesc/HexagonBaseInfo.h @@ -23,14 +23,41 @@ namespace llvm { /// instruction info tracks. /// namespace HexagonII { - // *** The code below must match HexagonInstrFormat*.td *** // + // Insn types. + // *** Must match HexagonInstrFormat*.td *** + enum Type { + TypePSEUDO = 0, + TypeALU32 = 1, + TypeCR = 2, + TypeJR = 3, + TypeJ = 4, + TypeLD = 5, + TypeST = 6, + TypeSYSTEM = 7, + TypeXTYPE = 8, + TypeMEMOP = 9, + TypeNV = 10, + TypePREFIX = 30, // Such as extenders. + TypeMARKER = 31 // Such as end of a HW loop. + }; + + + // MCInstrDesc TSFlags + // *** Must match HexagonInstrFormat*.td *** enum { + // This 5-bit field describes the insn type. + TypePos = 0, + TypeMask = 0x1f, + + // Solo instructions. + SoloPos = 5, + SoloMask = 0x1, // Predicated instructions. - PredicatedPos = 1, + PredicatedPos = 6, PredicatedMask = 0x1 }; |