Silence -Wunused-variable in release builds.
[llvm/stm8.git] / lib / Target / PTX / PTX.h
blob6aaf0686c2f7788034c98c2e6e43377959a1391c
1 //===-- PTX.h - Top-level interface for PTX representation ------*- C++ -*-===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // This file contains the entry points for global functions defined in the LLVM
11 // PTX back-end.
13 //===----------------------------------------------------------------------===//
15 #ifndef PTX_H
16 #define PTX_H
18 #include "llvm/Target/TargetMachine.h"
20 namespace llvm {
21 class PTXTargetMachine;
22 class FunctionPass;
24 namespace PTX {
25 enum StateSpace {
26 GLOBAL = 0, // default to global state space
27 CONSTANT = 1,
28 LOCAL = 2,
29 PARAMETER = 3,
30 SHARED = 4
33 enum Predicate {
34 PRED_NORMAL = 0,
35 PRED_NEGATE = 1
37 } // namespace PTX
39 FunctionPass *createPTXISelDag(PTXTargetMachine &TM,
40 CodeGenOpt::Level OptLevel);
42 FunctionPass *createPTXMFInfoExtract(PTXTargetMachine &TM,
43 CodeGenOpt::Level OptLevel);
45 extern Target ThePTX32Target;
46 extern Target ThePTX64Target;
47 } // namespace llvm;
49 // Defines symbolic names for PTX registers.
50 #define GET_REGINFO_ENUM
51 #include "PTXGenRegisterInfo.inc"
53 // Defines symbolic names for the PTX instructions.
54 #define GET_INSTRINFO_ENUM
55 #include "PTXGenInstrInfo.inc"
57 #endif // PTX_H