LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
NVPTXBaseInfo.h
Go to the documentation of this file.
1 //===-- NVPTXBaseInfo.h - Top-level definitions for NVPTX -------*- 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 contains small standalone helper functions and enum definitions for
11 // the NVPTX 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 NVPTXBASEINFO_H
18 #define NVPTXBASEINFO_H
19 
20 namespace llvm {
21 
28 
29  // NVVM Internal
31 };
32 
48 
49  // last property
51 };
52 
53 const unsigned AnnotationNameLen = 8; // length of each annotation name
55  "maxntidx", // PROPERTY_MAXNTID_X
56  "maxntidy", // PROPERTY_MAXNTID_Y
57  "maxntidz", // PROPERTY_MAXNTID_Z
58  "reqntidx", // PROPERTY_REQNTID_X
59  "reqntidy", // PROPERTY_REQNTID_Y
60  "reqntidz", // PROPERTY_REQNTID_Z
61  "minctasm", // PROPERTY_MINNCTAPERSM
62  "texture", // PROPERTY_ISTEXTURE
63  "surface", // PROPERTY_ISSURFACE
64  "sampler", // PROPERTY_ISSAMPLER
65  "rdoimage", // PROPERTY_ISREADONLY_IMAGE_PARAM
66  "wroimage", // PROPERTY_ISWRITEONLY_IMAGE_PARAM
67  "kernel", // PROPERTY_ISKERNEL_FUNCTION
68  "align", // PROPERTY_ALIGN
69 
70  // last property
71  "proplast", // PROPERTY_LAST
72 };
73 
74 // name of named metadata used for global annotations
75 #if defined(__GNUC__)
76 // As this is declared to be static but some of the .cpp files that
77 // include NVVM.h do not use this array, gcc gives a warning when
78 // compiling those .cpp files, hence __attribute__((unused)).
79 __attribute__((unused))
80 #endif
81  static const char *NamedMDForAnnotations = "nvvm.annotations";
82 
83 }
84 
85 #endif
const char PropertyAnnotationNames[PROPERTY_LAST+1][AnnotationNameLen+1]
Definition: NVPTXBaseInfo.h:54
PropertyAnnotation
Definition: NVPTXBaseInfo.h:33
const unsigned AnnotationNameLen
Definition: NVPTXBaseInfo.h:53
AddressSpace
Definition: NVPTXBaseInfo.h:22
static const char * NamedMDForAnnotations
Definition: NVPTXBaseInfo.h:81
void *__dso_handle __attribute__((__visibility__("hidden")))