blob: 9df6c7567bd1095c60c71ad73c82aeea6f805e1b [file] [log] [blame]
Nick Lewyckyf7a3c502010-09-07 18:14:24 +00001//===-- PTXTargetInfo.cpp - PTX Target Implementation ---------------------===//
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#include "PTX.h"
11#include "llvm/Module.h"
12#include "llvm/Target/TargetRegistry.h"
13
14using namespace llvm;
15
Justin Holewinskie1fee482011-04-20 15:37:17 +000016Target llvm::ThePTX32Target;
17Target llvm::ThePTX64Target;
Nick Lewyckyf7a3c502010-09-07 18:14:24 +000018
Eric Christopher50880d02010-09-18 18:52:28 +000019extern "C" void LLVMInitializePTXTargetInfo() {
Nick Lewyckyf7a3c502010-09-07 18:14:24 +000020 // see llvm/ADT/Triple.h
Justin Holewinskie1fee482011-04-20 15:37:17 +000021 RegisterTarget<Triple::ptx32> X32(ThePTX32Target, "ptx32",
22 "PTX (32-bit) [Experimental]");
23 RegisterTarget<Triple::ptx64> X64(ThePTX64Target, "ptx64",
24 "PTX (64-bit) [Experimental]");
Nick Lewyckyf7a3c502010-09-07 18:14:24 +000025}