1 //===-- NVPTXBaseInfo.h - Top-level definitions for NVPTX -------*- 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 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..
15 //===----------------------------------------------------------------------===//
17 #ifndef LLVM_LIB_TARGET_NVPTX_MCTARGETDESC_NVPTXBASEINFO_H
18 #define LLVM_LIB_TARGET_NVPTX_MCTARGETDESC_NVPTXBASEINFO_H
23 ADDRESS_SPACE_GENERIC = 0,
24 ADDRESS_SPACE_GLOBAL = 1,
25 ADDRESS_SPACE_SHARED = 3,
26 ADDRESS_SPACE_CONST = 4,
27 ADDRESS_SPACE_LOCAL = 5,
30 ADDRESS_SPACE_PARAM = 101
35 // These must be kept in sync with TSFlags in NVPTXInstrFormats.td
40 IsSurfTexQueryFlag = 0x800,
41 IsTexModeUnifiedFlag = 0x1000
43 } // namespace NVPTXII