blob: 07093dcf9f30148f9e0400a98f3d077cc695d3f4 [file] [log] [blame]
Ulrich Weigand5f613df2013-05-06 16:15:19 +00001//===-- SystemZTargetInfo.cpp - SystemZ target implementation -------------===//
2//
Chandler Carruth2946cd72019-01-19 08:50:56 +00003// 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
Ulrich Weigand5f613df2013-05-06 16:15:19 +00006//
7//===----------------------------------------------------------------------===//
8
9#include "SystemZ.h"
10#include "llvm/Support/TargetRegistry.h"
11
12using namespace llvm;
13
Mehdi Aminif42454b2016-10-09 23:00:34 +000014Target &llvm::getTheSystemZTarget() {
15 static Target TheSystemZTarget;
16 return TheSystemZTarget;
17}
Ulrich Weigand5f613df2013-05-06 16:15:19 +000018
19extern "C" void LLVMInitializeSystemZTargetInfo() {
Daniel Sanders725584e2017-11-15 23:55:44 +000020 RegisterTarget<Triple::systemz, /*HasJIT=*/true> X(
21 getTheSystemZTarget(), "systemz", "SystemZ", "SystemZ");
Ulrich Weigand5f613df2013-05-06 16:15:19 +000022}