[Hexagon] Creating HexagonMCInstrInfo namespace as landing zone for static functions...
[oota-llvm.git] / lib / Target / Hexagon / MCTargetDesc / HexagonMCInstrInfo.h
1 //===- HexagonMCInstrInfo.cpp - Hexagon sub-class of MCInst ---------------===//
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 // Utility functions for Hexagon specific MCInst queries
11 //
12 //===----------------------------------------------------------------------===//
13
14 #ifndef LLVM_LIB_TARGET_HEXAGON_MCTARGETDESC_HEXAGONMCINSTRINFO_H
15 #define LLVM_LIB_TARGET_HEXAGON_MCTARGETDESC_HEXAGONMCINSTRINFO_H
16
17 namespace llvm {
18 class MCInstrDesc;
19 class MCInstrInfo;
20 class MCInst;
21 namespace HexagonMCInstrInfo {
22 MCInstrDesc const &getDesc(MCInstrInfo const &MCII, MCInst const &MCI);
23 // Return the max value that a constant extendable operand can have
24 // without being extended.
25 int getMaxValue(MCInstrInfo const &MCII, MCInst const &MCI);
26 }
27 }
28
29 #endif // LLVM_LIB_TARGET_HEXAGON_MCTARGETDESC_HEXAGONMCINSTRINFO_H