1*bdd1243dSDimitry Andric //===-- XtensaTargetInfo.cpp - Xtensa Target Implementation ---------------===// 2*bdd1243dSDimitry Andric // 3*bdd1243dSDimitry Andric // The LLVM Compiler Infrastructure 4*bdd1243dSDimitry Andric // 5*bdd1243dSDimitry Andric // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 6*bdd1243dSDimitry Andric // See https://llvm.org/LICENSE.txt for license information. 7*bdd1243dSDimitry Andric // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 8*bdd1243dSDimitry Andric // 9*bdd1243dSDimitry Andric //===----------------------------------------------------------------------===// 10*bdd1243dSDimitry Andric 11*bdd1243dSDimitry Andric #include "TargetInfo/XtensaTargetInfo.h" 12*bdd1243dSDimitry Andric #include "llvm/MC/TargetRegistry.h" 13*bdd1243dSDimitry Andric using namespace llvm; 14*bdd1243dSDimitry Andric getTheXtensaTarget()15*bdd1243dSDimitry AndricTarget &llvm::getTheXtensaTarget() { 16*bdd1243dSDimitry Andric static Target TheXtensaTarget; 17*bdd1243dSDimitry Andric return TheXtensaTarget; 18*bdd1243dSDimitry Andric } 19*bdd1243dSDimitry Andric LLVMInitializeXtensaTargetInfo()20*bdd1243dSDimitry Andricextern "C" LLVM_EXTERNAL_VISIBILITY void LLVMInitializeXtensaTargetInfo() { 21*bdd1243dSDimitry Andric RegisterTarget<Triple::xtensa> X(getTheXtensaTarget(), "xtensa", "Xtensa 32", 22*bdd1243dSDimitry Andric "XTENSA"); 23*bdd1243dSDimitry Andric } 24