1 //===-- 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/Support/TargetRegistry.h" 13 14 using namespace llvm; 15 16 Target llvm::ThePTX32Target; 17 Target llvm::ThePTX64Target; 18 19 extern "C" void LLVMInitializePTXTargetInfo() { 20 // see llvm/ADT/Triple.h 21 RegisterTarget<Triple::ptx32> X32(ThePTX32Target, "ptx32", 22 "PTX (32-bit) [Experimental]"); 23 RegisterTarget<Triple::ptx64> X64(ThePTX64Target, "ptx64", 24 "PTX (64-bit) [Experimental]"); 25 } 26