xref: /freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/TargetInfo/HexagonTargetInfo.cpp (revision 349cc55c9796c4596a5b9904cd3281af295f878f)
10b57cec5SDimitry Andric //===-- HexagonTargetInfo.cpp - Hexagon 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/HexagonTargetInfo.h"
10*349cc55cSDimitry Andric #include "llvm/MC/TargetRegistry.h"
110b57cec5SDimitry Andric using namespace llvm;
120b57cec5SDimitry Andric 
getTheHexagonTarget()130b57cec5SDimitry Andric Target &llvm::getTheHexagonTarget() {
140b57cec5SDimitry Andric   static Target TheHexagonTarget;
150b57cec5SDimitry Andric   return TheHexagonTarget;
160b57cec5SDimitry Andric }
170b57cec5SDimitry Andric 
LLVMInitializeHexagonTargetInfo()18480093f4SDimitry Andric extern "C" LLVM_EXTERNAL_VISIBILITY void LLVMInitializeHexagonTargetInfo() {
190b57cec5SDimitry Andric   RegisterTarget<Triple::hexagon, /*HasJIT=*/true> X(
200b57cec5SDimitry Andric       getTheHexagonTarget(), "hexagon", "Hexagon", "Hexagon");
210b57cec5SDimitry Andric }
22