LLVM API Documentation

NVPTXTargetInfo.cpp
Go to the documentation of this file.
00001 //===-- NVPTXTargetInfo.cpp - NVPTX Target Implementation -----------------===//
00002 //
00003 //                     The LLVM Compiler Infrastructure
00004 //
00005 // This file is distributed under the University of Illinois Open Source
00006 // License. See LICENSE.TXT for details.
00007 //
00008 //===----------------------------------------------------------------------===//
00009 
00010 #include "NVPTX.h"
00011 #include "llvm/IR/Module.h"
00012 #include "llvm/Support/TargetRegistry.h"
00013 using namespace llvm;
00014 
00015 Target llvm::TheNVPTXTarget32;
00016 Target llvm::TheNVPTXTarget64;
00017 
00018 extern "C" void LLVMInitializeNVPTXTargetInfo() {
00019   RegisterTarget<Triple::nvptx> X(TheNVPTXTarget32, "nvptx",
00020                                   "NVIDIA PTX 32-bit");
00021   RegisterTarget<Triple::nvptx64> Y(TheNVPTXTarget64, "nvptx64",
00022                                     "NVIDIA PTX 64-bit");
00023 }