brintos

brintos / llvm-project-archived public Read only

0
0
Text · 832 B · 2bed4c1 Raw
24 lines · cpp
1//===-- XtensaTargetInfo.cpp - Xtensa Target Implementation ---------------===//2//3//                     The LLVM Compiler Infrastructure4//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-exception8//9//===----------------------------------------------------------------------===//10 11#include "TargetInfo/XtensaTargetInfo.h"12#include "llvm/MC/TargetRegistry.h"13using namespace llvm;14 15Target &llvm::getTheXtensaTarget() {16  static Target TheXtensaTarget;17  return TheXtensaTarget;18}19 20extern "C" LLVM_EXTERNAL_VISIBILITY void LLVMInitializeXtensaTargetInfo() {21  RegisterTarget<Triple::xtensa> X(getTheXtensaTarget(), "xtensa", "Xtensa 32",22                                   "XTENSA");23}24