xref: /freebsd/contrib/llvm-project/llvm/lib/Target/Xtensa/TargetInfo/XtensaTargetInfo.cpp (revision bdd1243df58e60e85101c09001d9812a789b6bc4)
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 
getTheXtensaTarget()15 Target &llvm::getTheXtensaTarget() {
16   static Target TheXtensaTarget;
17   return TheXtensaTarget;
18 }
19 
LLVMInitializeXtensaTargetInfo()20 extern "C" LLVM_EXTERNAL_VISIBILITY void LLVMInitializeXtensaTargetInfo() {
21   RegisterTarget<Triple::xtensa> X(getTheXtensaTarget(), "xtensa", "Xtensa 32",
22                                    "XTENSA");
23 }
24