Nick Lewycky | 4c82c6c | 2010-09-07 18:14:24 +0000 | [diff] [blame] | 1 | //===-- 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 | |
| 18 | using namespace llvm; |
| 19 | |
| 20 | extern "C" void LLVMInitializePTXTarget() |
| 21 | { |
| 22 | // Register the target |
| 23 | RegisterTargetMachine<PTXTargetMachine> X(ThePTXTarget); |
| 24 | } |
| 25 | |
| 26 | PTXTargetMachine::PTXTargetMachine(const Target &T, |
| 27 | const std::string &TT, |
| 28 | const std::string &FS) : |
| 29 | LLVMTargetMachine(T, TT) |
| 30 | { |
| 31 | } |