Nguyen Anh Quynh | 26ee41a | 2013-11-27 12:11:31 +0800 | [diff] [blame] | 1 | //===-- llvm/MC/SubtargetFeature.h - CPU characteristics --------*- C++ -*-===// |
| 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 defines and manages user or tool specified CPU characteristics. |
| 11 | // The intent is to be able to package specific features that should or should |
| 12 | // not be used on a specific target processor. A tool, such as llc, could, as |
| 13 | // as example, gather chip info from the command line, a long with features |
| 14 | // that should be used on that chip. |
| 15 | // |
| 16 | //===----------------------------------------------------------------------===// |
| 17 | |
| 18 | /* Second-Best Disassembler Engine */ |
| 19 | /* By Nguyen Anh Quynh <aquynh@gmail.com>, 2013> */ |
| 20 | |
| 21 | #ifndef CS_LLVM_MC_SUBTARGETFEATURE_H |
| 22 | #define CS_LLVM_MC_SUBTARGETFEATURE_H |
| 23 | |
| 24 | //===----------------------------------------------------------------------===// |
| 25 | /// |
| 26 | /// SubtargetFeatureKV - Used to provide key value pairs for feature and |
| 27 | /// CPU bit flags. |
| 28 | // |
| 29 | typedef struct SubtargetFeatureKV { |
| 30 | char *Key; // K-V key string |
| 31 | char *Desc; // Help descriptor |
| 32 | const uint64_t Value; // K-V integer value |
| 33 | const uint64_t Implies; // K-V bit mask |
| 34 | } SubtargetFeatureKV; |
| 35 | |
| 36 | #endif |