1 //===--- AddressSpaces.h - Language-specific address spaces -----*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
11 /// \brief Provides definitions for the various language-specific address
14 //===----------------------------------------------------------------------===//
16 #ifndef LLVM_CLANG_BASIC_ADDRESSSPACES_H
17 #define LLVM_CLANG_BASIC_ADDRESSSPACES_H
23 /// \brief Defines the set of possible language-specific address spaces.
25 /// This uses a high starting offset so as not to conflict with any address
26 /// space used by a target.
30 opencl_global = Offset,
43 /// The type of a lookup table which maps from language-specific address spaces
44 /// to target-specific ones.
45 typedef unsigned Map[Count];