xref: /freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/TargetInfo/SystemZTargetInfo.cpp (revision 5f757f3ff9144b609b3c433dfd370cc6bdc191ad)
10b57cec5SDimitry Andric //===-- SystemZTargetInfo.cpp - SystemZ target implementation -------------===//
20b57cec5SDimitry Andric //
30b57cec5SDimitry Andric // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
40b57cec5SDimitry Andric // See https://llvm.org/LICENSE.txt for license information.
50b57cec5SDimitry Andric // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
60b57cec5SDimitry Andric //
70b57cec5SDimitry Andric //===----------------------------------------------------------------------===//
80b57cec5SDimitry Andric 
90b57cec5SDimitry Andric #include "TargetInfo/SystemZTargetInfo.h"
10349cc55cSDimitry Andric #include "llvm/MC/TargetRegistry.h"
110b57cec5SDimitry Andric 
120b57cec5SDimitry Andric using namespace llvm;
130b57cec5SDimitry Andric 
140b57cec5SDimitry Andric Target &llvm::getTheSystemZTarget() {
150b57cec5SDimitry Andric   static Target TheSystemZTarget;
160b57cec5SDimitry Andric   return TheSystemZTarget;
170b57cec5SDimitry Andric }
180b57cec5SDimitry Andric 
19*5f757f3fSDimitry Andric // NOLINTNEXTLINE(readability-identifier-naming)
20480093f4SDimitry Andric extern "C" LLVM_EXTERNAL_VISIBILITY void LLVMInitializeSystemZTargetInfo() {
210b57cec5SDimitry Andric   RegisterTarget<Triple::systemz, /*HasJIT=*/true> X(
220b57cec5SDimitry Andric       getTheSystemZTarget(), "systemz", "SystemZ", "SystemZ");
230b57cec5SDimitry Andric }
24