clang
3.9.0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
llvm.src
tools
clang
include
clang
Basic
AddressSpaces.h
Go to the documentation of this file.
1
//===--- AddressSpaces.h - Language-specific address spaces -----*- 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
/// \file
11
/// \brief Provides definitions for the various language-specific address
12
/// spaces.
13
///
14
//===----------------------------------------------------------------------===//
15
16
#ifndef LLVM_CLANG_BASIC_ADDRESSSPACES_H
17
#define LLVM_CLANG_BASIC_ADDRESSSPACES_H
18
19
namespace
clang {
20
21
namespace
LangAS {
22
23
/// \brief Defines the set of possible language-specific address spaces.
24
///
25
/// This uses a high starting offset so as not to conflict with any address
26
/// space used by a target.
27
enum
ID
{
28
Offset
= 0x7FFF00,
29
30
opencl_global
=
Offset
,
31
opencl_local
,
32
opencl_constant
,
33
opencl_generic
,
34
35
cuda_device
,
36
cuda_constant
,
37
cuda_shared
,
38
39
Last
,
40
Count
=
Last
-
Offset
41
};
42
43
/// The type of a lookup table which maps from language-specific address spaces
44
/// to target-specific ones.
45
typedef
unsigned
Map
[
Count
];
46
47
}
48
49
}
50
51
#endif
clang::LangAS::opencl_constant
Definition:
AddressSpaces.h:32
clang::LangAS::cuda_constant
Definition:
AddressSpaces.h:36
clang::LangAS::cuda_shared
Definition:
AddressSpaces.h:37
Offset
uint32_t Offset
Definition:
CacheTokens.cpp:44
clang::LangAS::ID
ID
Defines the set of possible language-specific address spaces.
Definition:
AddressSpaces.h:27
clang::LangAS::opencl_global
Definition:
AddressSpaces.h:30
clang::LangAS::Count
Definition:
AddressSpaces.h:40
clang::LangAS::Offset
Definition:
AddressSpaces.h:28
clang::LangAS::opencl_local
Definition:
AddressSpaces.h:31
clang::LangAS::Map
unsigned Map[Count]
The type of a lookup table which maps from language-specific address spaces to target-specific ones...
Definition:
AddressSpaces.h:45
clang::LangAS::Last
Definition:
AddressSpaces.h:39
clang::LangAS::opencl_generic
Definition:
AddressSpaces.h:33
clang::LangAS::cuda_device
Definition:
AddressSpaces.h:35
Generated on Wed Aug 31 2016 16:57:52 for clang by
1.8.6