1e1c38dd5SZi Xuan Wu //===-- CSKYTargetInfo.cpp - CSKY Target Implementation -------------------===//
2e1c38dd5SZi Xuan Wu //
3e1c38dd5SZi Xuan Wu // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4e1c38dd5SZi Xuan Wu // See https://llvm.org/LICENSE.txt for license information.
5e1c38dd5SZi Xuan Wu // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6e1c38dd5SZi Xuan Wu //
7e1c38dd5SZi Xuan Wu //===----------------------------------------------------------------------===//
8e1c38dd5SZi Xuan Wu 
9e1c38dd5SZi Xuan Wu #include "TargetInfo/CSKYTargetInfo.h"
10*89b57061SReid Kleckner #include "llvm/MC/TargetRegistry.h"
11e1c38dd5SZi Xuan Wu using namespace llvm;
12e1c38dd5SZi Xuan Wu 
getTheCSKYTarget()13e1c38dd5SZi Xuan Wu Target &llvm::getTheCSKYTarget() {
14e1c38dd5SZi Xuan Wu   static Target TheCSKYTarget;
15e1c38dd5SZi Xuan Wu   return TheCSKYTarget;
16e1c38dd5SZi Xuan Wu }
17e1c38dd5SZi Xuan Wu 
LLVMInitializeCSKYTargetInfo()18cddd3fafSZi Xuan Wu extern "C" LLVM_EXTERNAL_VISIBILITY void LLVMInitializeCSKYTargetInfo() {
19e1c38dd5SZi Xuan Wu   RegisterTarget<Triple::csky> X(getTheCSKYTarget(), "csky", "C-SKY", "CSKY");
20e1c38dd5SZi Xuan Wu }
21