1 //===-- NVPTXTargetInfo.cpp - NVPTX Target Implementation -----------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
11 #include "llvm/IR/Module.h"
12 #include "llvm/Support/TargetRegistry.h"
15 Target &llvm::getTheNVPTXTarget32() {
16 static Target TheNVPTXTarget32;
17 return TheNVPTXTarget32;
19 Target &llvm::getTheNVPTXTarget64() {
20 static Target TheNVPTXTarget64;
21 return TheNVPTXTarget64;
24 extern "C" void LLVMInitializeNVPTXTargetInfo() {
25 RegisterTarget<Triple::nvptx> X(getTheNVPTXTarget32(), "nvptx",
27 RegisterTarget<Triple::nvptx64> Y(getTheNVPTXTarget64(), "nvptx64",