1c498ba3aSDylan McKay //===-- AVRTargetInfo.cpp - AVR Target Implementation ---------------------===// 2c498ba3aSDylan McKay // 32946cd70SChandler Carruth // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 42946cd70SChandler Carruth // See https://llvm.org/LICENSE.txt for license information. 52946cd70SChandler Carruth // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6c498ba3aSDylan McKay // 7c498ba3aSDylan McKay //===----------------------------------------------------------------------===// 8c498ba3aSDylan McKay 9e982b420SRichard Trieu #include "TargetInfo/AVRTargetInfo.h" 10*89b57061SReid Kleckner #include "llvm/MC/TargetRegistry.h" 11c498ba3aSDylan McKay namespace llvm { getTheAVRTarget()12f42454b9SMehdi AminiTarget &getTheAVRTarget() { 13f42454b9SMehdi Amini static Target TheAVRTarget; 14f42454b9SMehdi Amini return TheAVRTarget; 15f42454b9SMehdi Amini } 165449d2daSShivam Gupta } // namespace llvm 17c498ba3aSDylan McKay LLVMInitializeAVRTargetInfo()180dbcb363STom Stellardextern "C" LLVM_EXTERNAL_VISIBILITY void LLVMInitializeAVRTargetInfo() { 19f42454b9SMehdi Amini llvm::RegisterTarget<llvm::Triple::avr> X(llvm::getTheAVRTarget(), "avr", 20c5b8e8b9SLeslie Zhai "Atmel AVR Microcontroller", "AVR"); 21c498ba3aSDylan McKay } 22