149683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinski//===-- NVPTXTargetInfo.cpp - NVPTX Target Implementation -----------------===//
249683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinski//
349683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinski//                     The LLVM Compiler Infrastructure
449683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinski//
549683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinski// This file is distributed under the University of Illinois Open Source
649683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinski// License. See LICENSE.TXT for details.
749683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinski//
849683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinski//===----------------------------------------------------------------------===//
949683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinski
1049683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinski#include "NVPTX.h"
110b8c9a80f20772c3793201ab5b251d3520b9cea3Chandler Carruth#include "llvm/IR/Module.h"
1249683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinski#include "llvm/Support/TargetRegistry.h"
1349683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinskiusing namespace llvm;
1449683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinski
1549683f3c961379fbc088871a5d6304950f1f1cbcJustin HolewinskiTarget llvm::TheNVPTXTarget32;
1649683f3c961379fbc088871a5d6304950f1f1cbcJustin HolewinskiTarget llvm::TheNVPTXTarget64;
1749683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinski
1849683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinskiextern "C" void LLVMInitializeNVPTXTargetInfo() {
1949683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinski  RegisterTarget<Triple::nvptx> X(TheNVPTXTarget32, "nvptx",
203639ce2575660a0e6938d2e84e8bd9a738fd7051Justin Holewinski                                  "NVIDIA PTX 32-bit");
2149683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinski  RegisterTarget<Triple::nvptx64> Y(TheNVPTXTarget64, "nvptx64",
223639ce2575660a0e6938d2e84e8bd9a738fd7051Justin Holewinski                                    "NVIDIA PTX 64-bit");
2349683f3c961379fbc088871a5d6304950f1f1cbcJustin Holewinski}
24