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 AndricTarget &llvm::getTheCSKYTarget() { 14e8d8bef9SDimitry Andric static Target TheCSKYTarget; 15e8d8bef9SDimitry Andric return TheCSKYTarget; 16e8d8bef9SDimitry Andric } 17e8d8bef9SDimitry Andric LLVMInitializeCSKYTargetInfo()18e8d8bef9SDimitry Andricextern "C" LLVM_EXTERNAL_VISIBILITY void LLVMInitializeCSKYTargetInfo() { 19e8d8bef9SDimitry Andric RegisterTarget<Triple::csky> X(getTheCSKYTarget(), "csky", "C-SKY", "CSKY"); 20e8d8bef9SDimitry Andric } 21