1 //===-- PTXBaseInfo.h - Top level definitions for PTX -------- --*- 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 PTX 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 //===----------------------------------------------------------------------===//
20 #include "PTXMCTargetDesc.h"
23 namespace PTXStateSpace {
25 Global = 0, // default to global state space
31 } // namespace PTXStateSpace
33 namespace PTXPredicate {
39 } // namespace PTXPredicate
41 /// Namespace to hold all target-specific flags.
42 namespace PTXRoundingMode {
45 // Rounding Mode Flags
47 RndDefault = 0, // ---
48 RndNone = 1, // <NONE>
49 RndNearestEven = 2, // .rn
50 RndTowardsZero = 3, // .rz
53 RndApprox = 6, // .approx
54 RndNearestEvenInt = 7, // .rni
55 RndTowardsZeroInt = 8, // .rzi
56 RndNegInfInt = 9, // .rmi
57 RndPosInfInt = 10 // .rpi
61 namespace PTXRegisterType {
62 // Register type encoded in MCOperands
71 } // namespace PTXRegisterType