10b57cec5SDimitry Andric //===-- MSP430TargetInfo.cpp - MSP430 Target Implementation ---------------===// 20b57cec5SDimitry Andric // 30b57cec5SDimitry Andric // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 40b57cec5SDimitry Andric // See https://llvm.org/LICENSE.txt for license information. 50b57cec5SDimitry Andric // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 60b57cec5SDimitry Andric // 70b57cec5SDimitry Andric //===----------------------------------------------------------------------===// 80b57cec5SDimitry Andric 90b57cec5SDimitry Andric #include "TargetInfo/MSP430TargetInfo.h" 10*349cc55cSDimitry Andric #include "llvm/MC/TargetRegistry.h" 110b57cec5SDimitry Andric using namespace llvm; 120b57cec5SDimitry Andric getTheMSP430Target()130b57cec5SDimitry AndricTarget &llvm::getTheMSP430Target() { 140b57cec5SDimitry Andric static Target TheMSP430Target; 150b57cec5SDimitry Andric return TheMSP430Target; 160b57cec5SDimitry Andric } 170b57cec5SDimitry Andric LLVMInitializeMSP430TargetInfo()18480093f4SDimitry Andricextern "C" LLVM_EXTERNAL_VISIBILITY void LLVMInitializeMSP430TargetInfo() { 190b57cec5SDimitry Andric RegisterTarget<Triple::msp430> X(getTheMSP430Target(), "msp430", 200b57cec5SDimitry Andric "MSP430 [experimental]", "MSP430"); 210b57cec5SDimitry Andric } 22