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