[obj2yaml] - Fix BB after r373315.
[llvm-complete.git] / lib / Target / NVPTX / TargetInfo / NVPTXTargetInfo.cpp
blob2c71ec58ec421d136a95f4f17d4ff34f22976307
1 //===-- NVPTXTargetInfo.cpp - NVPTX Target Implementation -----------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
9 #include "TargetInfo/NVPTXTargetInfo.h"
10 #include "llvm/Support/TargetRegistry.h"
11 using namespace llvm;
13 Target &llvm::getTheNVPTXTarget32() {
14 static Target TheNVPTXTarget32;
15 return TheNVPTXTarget32;
17 Target &llvm::getTheNVPTXTarget64() {
18 static Target TheNVPTXTarget64;
19 return TheNVPTXTarget64;
22 extern "C" void LLVMInitializeNVPTXTargetInfo() {
23 RegisterTarget<Triple::nvptx> X(getTheNVPTXTarget32(), "nvptx",
24 "NVIDIA PTX 32-bit", "NVPTX");
25 RegisterTarget<Triple::nvptx64> Y(getTheNVPTXTarget64(), "nvptx64",
26 "NVIDIA PTX 64-bit", "NVPTX");