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 //===----------------------------------------------------------------------===//
10 // This file provides definitions for the various language-specific address
13 //===----------------------------------------------------------------------===//
15 #ifndef LLVM_CLANG_BASIC_ADDRESSSPACES_H
16 #define LLVM_CLANG_BASIC_ADDRESSSPACES_H
22 /// This enum defines the set of possible language-specific address spaces.
23 /// It uses a high starting offset so as not to conflict with any address
24 /// space used by a target.
28 opencl_global = Offset,
36 /// The type of a lookup table which maps from language-specific address spaces
37 /// to target-specific ones.
38 typedef unsigned Map[Count];