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