Ulrich Weigand | 5f613df | 2013-05-06 16:15:19 +0000 | [diff] [blame] | 1 | //===-- SystemZTargetInfo.cpp - SystemZ target implementation -------------===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | |
| 10 | #include "SystemZ.h" |
| 11 | #include "llvm/Support/TargetRegistry.h" |
| 12 | |
| 13 | using namespace llvm; |
| 14 | |
Mehdi Amini | f42454b | 2016-10-09 23:00:34 +0000 | [diff] [blame] | 15 | Target &llvm::getTheSystemZTarget() { |
| 16 | static Target TheSystemZTarget; |
| 17 | return TheSystemZTarget; |
| 18 | } |
Ulrich Weigand | 5f613df | 2013-05-06 16:15:19 +0000 | [diff] [blame] | 19 | |
| 20 | extern "C" void LLVMInitializeSystemZTargetInfo() { |
Daniel Sanders | 725584e | 2017-11-15 23:55:44 +0000 | [diff] [blame] | 21 | RegisterTarget<Triple::systemz, /*HasJIT=*/true> X( |
| 22 | getTheSystemZTarget(), "systemz", "SystemZ", "SystemZ"); |
Ulrich Weigand | 5f613df | 2013-05-06 16:15:19 +0000 | [diff] [blame] | 23 | } |