1 //===-- PTX.h - Top-level interface for PTX representation ------*- 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 the entry points for global functions defined in the LLVM
13 //===----------------------------------------------------------------------===//
18 #include "llvm/Target/TargetMachine.h"
21 class PTXTargetMachine
;
26 GLOBAL
= 0, // default to global state space
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
;
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"