blob: 1889df41dcb378c9a0b284bae288ca7678e5c7a5 [file] [log] [blame]
Nick Lewycky4c82c6c2010-09-07 18:14:24 +00001//===-- PTXTargetMachine.cpp - Define TargetMachine for PTX ---------------===//
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// Top-level implementation for the PTX target.
11//
12//===----------------------------------------------------------------------===//
13
14#include "PTX.h"
15#include "PTXTargetMachine.h"
16#include "llvm/Target/TargetRegistry.h"
17
18using namespace llvm;
19
20extern "C" void LLVMInitializePTXTarget()
21{
22 // Register the target
23 RegisterTargetMachine<PTXTargetMachine> X(ThePTXTarget);
24}
25
26PTXTargetMachine::PTXTargetMachine(const Target &T,
27 const std::string &TT,
28 const std::string &FS) :
29 LLVMTargetMachine(T, TT)
30{
31}