blob: 3db63a3b3b1f0ec7f9649af43c7946787ace468d [file] [log] [blame]
Nick Lewyckyf7a3c502010-09-07 18:14:24 +00001//===-- 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.
12//
13//===----------------------------------------------------------------------===//
14
15#ifndef PTX_H
16#define PTX_H
17
18#include "llvm/Target/TargetMachine.h"
19
20namespace llvm {
Eric Christopher50880d02010-09-18 18:52:28 +000021 class PTXTargetMachine;
22 class FunctionPass;
23
24 FunctionPass *createPTXISelDag(PTXTargetMachine &TM,
25 CodeGenOpt::Level OptLevel);
26
Che-Liang Chiou3278c422010-11-08 03:00:52 +000027 FunctionPass *createPTXMFInfoExtract(PTXTargetMachine &TM,
28 CodeGenOpt::Level OptLevel);
29
Nick Lewyckyf7a3c502010-09-07 18:14:24 +000030 extern Target ThePTXTarget;
31} // namespace llvm;
32
Eric Christopher50880d02010-09-18 18:52:28 +000033// Defines symbolic names for PTX registers.
34#include "PTXGenRegisterNames.inc"
35
36// Defines symbolic names for the PTX instructions.
37#include "PTXGenInstrNames.inc"
38
Nick Lewyckyf7a3c502010-09-07 18:14:24 +000039#endif // PTX_H