1284c1978SDimitry Andric //===-- SystemZTargetInfo.cpp - SystemZ target implementation -------------===//
2284c1978SDimitry Andric //
3284c1978SDimitry Andric //                     The LLVM Compiler Infrastructure
4284c1978SDimitry Andric //
5284c1978SDimitry Andric // This file is distributed under the University of Illinois Open Source
6284c1978SDimitry Andric // License. See LICENSE.TXT for details.
7284c1978SDimitry Andric //
8284c1978SDimitry Andric //===----------------------------------------------------------------------===//
9284c1978SDimitry Andric 
10284c1978SDimitry Andric #include "SystemZ.h"
11284c1978SDimitry Andric #include "llvm/Support/TargetRegistry.h"
12284c1978SDimitry Andric 
13284c1978SDimitry Andric using namespace llvm;
14284c1978SDimitry Andric 
getTheSystemZTarget()15d88c1a5aSDimitry Andric Target &llvm::getTheSystemZTarget() {
16d88c1a5aSDimitry Andric   static Target TheSystemZTarget;
17d88c1a5aSDimitry Andric   return TheSystemZTarget;
18d88c1a5aSDimitry Andric }
19284c1978SDimitry Andric 
LLVMInitializeSystemZTargetInfo()20284c1978SDimitry Andric extern "C" void LLVMInitializeSystemZTargetInfo() {
21*2cab237bSDimitry Andric   RegisterTarget<Triple::systemz, /*HasJIT=*/true> X(
22*2cab237bSDimitry Andric       getTheSystemZTarget(), "systemz", "SystemZ", "SystemZ");
23284c1978SDimitry Andric }
24