Home | History | Annotate | Download | only in TargetInfo
      1 //===-- NVPTXTargetInfo.cpp - NVPTX 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 "NVPTX.h"
     11 #include "llvm/IR/Module.h"
     12 #include "llvm/Support/TargetRegistry.h"
     13 using namespace llvm;
     14 
     15 Target llvm::TheNVPTXTarget32;
     16 Target llvm::TheNVPTXTarget64;
     17 
     18 extern "C" void LLVMInitializeNVPTXTargetInfo() {
     19   RegisterTarget<Triple::nvptx> X(TheNVPTXTarget32, "nvptx",
     20                                   "NVIDIA PTX 32-bit");
     21   RegisterTarget<Triple::nvptx64> Y(TheNVPTXTarget64, "nvptx64",
     22                                     "NVIDIA PTX 64-bit");
     23 }
     24