xref: /freebsd/contrib/llvm-project/llvm/lib/Target/VE/TargetInfo/VETargetInfo.cpp (revision 349cc55c9796c4596a5b9904cd3281af295f878f)
1480093f4SDimitry Andric //===-- VETargetInfo.cpp - VE Target Implementation -----------------------===//
2480093f4SDimitry Andric //
3480093f4SDimitry Andric // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4480093f4SDimitry Andric // See https://llvm.org/LICENSE.txt for license information.
5480093f4SDimitry Andric // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6480093f4SDimitry Andric //
7480093f4SDimitry Andric //===----------------------------------------------------------------------===//
8480093f4SDimitry Andric 
95ffd83dbSDimitry Andric #include "TargetInfo/VETargetInfo.h"
10*349cc55cSDimitry Andric #include "llvm/MC/TargetRegistry.h"
11480093f4SDimitry Andric 
12480093f4SDimitry Andric using namespace llvm;
13480093f4SDimitry Andric 
getTheVETarget()14480093f4SDimitry Andric Target &llvm::getTheVETarget() {
15480093f4SDimitry Andric   static Target TheVETarget;
16480093f4SDimitry Andric   return TheVETarget;
17480093f4SDimitry Andric }
18480093f4SDimitry Andric 
LLVMInitializeVETargetInfo()19e8d8bef9SDimitry Andric extern "C" LLVM_EXTERNAL_VISIBILITY void LLVMInitializeVETargetInfo() {
20480093f4SDimitry Andric   RegisterTarget<Triple::ve, /*HasJIT=*/false> X(getTheVETarget(), "ve",
21480093f4SDimitry Andric                                                  "VE", "VE");
22480093f4SDimitry Andric }
23