blob: 9000ae70e4194029e2bad0db5aa4d5fb02dfa54d [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
16Target llvm::ThePTXTarget;
17
18extern "C" void LLVMInitializePTXTargetInfo()
19{
20 // see llvm/ADT/Triple.h
21 RegisterTarget<Triple::ptx> X(ThePTXTarget, "ptx", "PTX");
22}