Brendon Cahoon | 6f35837 | 2012-02-08 18:25:47 +0000 | [diff] [blame] | 1 | //===-- HexagonBaseInfo.h - Top level definitions for Hexagon -------------===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | // |
| 10 | // This file contains small standalone helper functions and enum definitions for |
| 11 | // the Hexagon target useful for the compiler back-end and the MC libraries. |
| 12 | // As such, it deliberately does not include references to LLVM core |
| 13 | // code gen types, passes, etc.. |
| 14 | // |
| 15 | //===----------------------------------------------------------------------===// |
| 16 | |
| 17 | #ifndef HEXAGONBASEINFO_H |
| 18 | #define HEXAGONBASEINFO_H |
| 19 | |
| 20 | namespace llvm { |
| 21 | |
| 22 | /// HexagonII - This namespace holds all of the target specific flags that |
| 23 | /// instruction info tracks. |
| 24 | /// |
| 25 | namespace HexagonII { |
| 26 | |
Sirish Pande | 545983e | 2012-02-09 15:20:33 +0000 | [diff] [blame^] | 27 | // *** The code below must match HexagonInstrFormat*.td *** // |
Brendon Cahoon | 6f35837 | 2012-02-08 18:25:47 +0000 | [diff] [blame] | 28 | |
| 29 | // MCInstrDesc TSFlags |
| 30 | enum { |
| 31 | |
| 32 | // Predicated instructions. |
| 33 | PredicatedPos = 1, |
| 34 | PredicatedMask = 0x1 |
| 35 | }; |
| 36 | |
Sirish Pande | 545983e | 2012-02-09 15:20:33 +0000 | [diff] [blame^] | 37 | // *** The code above must match HexagonInstrFormat*.td *** // |
Brendon Cahoon | 6f35837 | 2012-02-08 18:25:47 +0000 | [diff] [blame] | 38 | |
| 39 | } // End namespace HexagonII. |
| 40 | |
| 41 | } // End namespace llvm. |
| 42 | |
| 43 | #endif |