Ulrich Weigand | 5f613df | 2013-05-06 16:15:19 +0000 | [diff] [blame] | 1 | //===-- SystemZTargetInfo.cpp - SystemZ target implementation -------------===// |
| 2 | // |
Chandler Carruth | 2946cd7 | 2019-01-19 08:50:56 +0000 | [diff] [blame] | 3 | // 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 Weigand | 5f613df | 2013-05-06 16:15:19 +0000 | [diff] [blame] | 6 | // |
| 7 | //===----------------------------------------------------------------------===// |
| 8 | |
| 9 | #include "SystemZ.h" |
| 10 | #include "llvm/Support/TargetRegistry.h" |
| 11 | |
| 12 | using namespace llvm; |
| 13 | |
Mehdi Amini | f42454b | 2016-10-09 23:00:34 +0000 | [diff] [blame] | 14 | Target &llvm::getTheSystemZTarget() { |
| 15 | static Target TheSystemZTarget; |
| 16 | return TheSystemZTarget; |
| 17 | } |
Ulrich Weigand | 5f613df | 2013-05-06 16:15:19 +0000 | [diff] [blame] | 18 | |
| 19 | extern "C" void LLVMInitializeSystemZTargetInfo() { |
Daniel Sanders | 725584e | 2017-11-15 23:55:44 +0000 | [diff] [blame] | 20 | RegisterTarget<Triple::systemz, /*HasJIT=*/true> X( |
| 21 | getTheSystemZTarget(), "systemz", "SystemZ", "SystemZ"); |
Ulrich Weigand | 5f613df | 2013-05-06 16:15:19 +0000 | [diff] [blame] | 22 | } |