2012-05-05 04:18:50 +08:00
|
|
|
//===-- NVPTXBaseInfo.h - Top-level definitions for NVPTX -------*- C++ -*-===//
|
|
|
|
//
|
2019-01-19 16:50:56 +08:00
|
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
2012-05-05 04:18:50 +08:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// This file contains small standalone helper functions and enum definitions for
|
|
|
|
// the NVPTX target useful for the compiler back-end and the MC libraries.
|
|
|
|
// As such, it deliberately does not include references to LLVM core
|
|
|
|
// code gen types, passes, etc..
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2014-08-14 00:26:38 +08:00
|
|
|
#ifndef LLVM_LIB_TARGET_NVPTX_MCTARGETDESC_NVPTXBASEINFO_H
|
|
|
|
#define LLVM_LIB_TARGET_NVPTX_MCTARGETDESC_NVPTXBASEINFO_H
|
2012-05-05 04:18:50 +08:00
|
|
|
|
|
|
|
namespace llvm {
|
|
|
|
|
|
|
|
enum AddressSpace {
|
|
|
|
ADDRESS_SPACE_GENERIC = 0,
|
|
|
|
ADDRESS_SPACE_GLOBAL = 1,
|
|
|
|
ADDRESS_SPACE_SHARED = 3,
|
|
|
|
ADDRESS_SPACE_CONST = 4,
|
|
|
|
ADDRESS_SPACE_LOCAL = 5,
|
|
|
|
|
|
|
|
// NVVM Internal
|
|
|
|
ADDRESS_SPACE_PARAM = 101
|
|
|
|
};
|
|
|
|
|
2014-07-17 19:59:04 +08:00
|
|
|
namespace NVPTXII {
|
|
|
|
enum {
|
|
|
|
// These must be kept in sync with TSFlags in NVPTXInstrFormats.td
|
|
|
|
IsTexFlag = 0x80,
|
|
|
|
IsSuldMask = 0x300,
|
|
|
|
IsSuldShift = 8,
|
|
|
|
IsSustFlag = 0x400,
|
|
|
|
IsSurfTexQueryFlag = 0x800,
|
|
|
|
IsTexModeUnifiedFlag = 0x1000
|
|
|
|
};
|
2016-12-15 06:32:44 +08:00
|
|
|
} // namespace NVPTXII
|
2012-05-05 04:18:50 +08:00
|
|
|
|
2016-12-15 06:32:44 +08:00
|
|
|
} // namespace llvm
|
2012-05-05 04:18:50 +08:00
|
|
|
#endif
|