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