• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //===------------------------- ManglingUtils.h ---------------------------===//
2 //
3 //                              SPIR Tools
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===---------------------------------------------------------------------===//
9 /*
10  * Contributed by: Intel Corporation.
11  */
12 
13 #ifndef __MANGLING_UTILS_H__
14 #define __MANGLING_UTILS_H__
15 
16 #include "ParameterType.h"
17 
18 namespace SPIR {
19 
20   const char* mangledPrimitiveString(TypePrimitiveEnum primitive);
21   const char* readablePrimitiveString(TypePrimitiveEnum primitive);
22 
23   const char* getMangledAttribute(TypeAttributeEnum attribute);
24   const char* getReadableAttribute(TypeAttributeEnum attribute);
25 
26   SPIRversion getSupportedVersion(TypePrimitiveEnum t);
27   const char* getSPIRVersionAsString(SPIRversion version);
28 
29   const char* mangledPrimitiveStringfromName(std::string type);
30 } // End SPIR namespace
31 
32 #endif //__MANGLING_UTILS_H__
33