xref: /freebsd/contrib/llvm-project/llvm/lib/Target/ARM/TargetInfo/ARMTargetInfo.cpp (revision 349cc55c9796c4596a5b9904cd3281af295f878f)
10b57cec5SDimitry Andric //===-- ARMTargetInfo.cpp - ARM 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/ARMTargetInfo.h"
10*349cc55cSDimitry Andric #include "llvm/MC/TargetRegistry.h"
110b57cec5SDimitry Andric using namespace llvm;
120b57cec5SDimitry Andric 
getTheARMLETarget()130b57cec5SDimitry Andric Target &llvm::getTheARMLETarget() {
140b57cec5SDimitry Andric   static Target TheARMLETarget;
150b57cec5SDimitry Andric   return TheARMLETarget;
160b57cec5SDimitry Andric }
getTheARMBETarget()170b57cec5SDimitry Andric Target &llvm::getTheARMBETarget() {
180b57cec5SDimitry Andric   static Target TheARMBETarget;
190b57cec5SDimitry Andric   return TheARMBETarget;
200b57cec5SDimitry Andric }
getTheThumbLETarget()210b57cec5SDimitry Andric Target &llvm::getTheThumbLETarget() {
220b57cec5SDimitry Andric   static Target TheThumbLETarget;
230b57cec5SDimitry Andric   return TheThumbLETarget;
240b57cec5SDimitry Andric }
getTheThumbBETarget()250b57cec5SDimitry Andric Target &llvm::getTheThumbBETarget() {
260b57cec5SDimitry Andric   static Target TheThumbBETarget;
270b57cec5SDimitry Andric   return TheThumbBETarget;
280b57cec5SDimitry Andric }
290b57cec5SDimitry Andric 
LLVMInitializeARMTargetInfo()30480093f4SDimitry Andric extern "C" LLVM_EXTERNAL_VISIBILITY void LLVMInitializeARMTargetInfo() {
310b57cec5SDimitry Andric   RegisterTarget<Triple::arm, /*HasJIT=*/true> X(getTheARMLETarget(), "arm",
320b57cec5SDimitry Andric                                                  "ARM", "ARM");
330b57cec5SDimitry Andric   RegisterTarget<Triple::armeb, /*HasJIT=*/true> Y(getTheARMBETarget(), "armeb",
340b57cec5SDimitry Andric                                                    "ARM (big endian)", "ARM");
350b57cec5SDimitry Andric 
360b57cec5SDimitry Andric   RegisterTarget<Triple::thumb, /*HasJIT=*/true> A(getTheThumbLETarget(),
370b57cec5SDimitry Andric                                                    "thumb", "Thumb", "ARM");
380b57cec5SDimitry Andric   RegisterTarget<Triple::thumbeb, /*HasJIT=*/true> B(
390b57cec5SDimitry Andric       getTheThumbBETarget(), "thumbeb", "Thumb (big endian)", "ARM");
400b57cec5SDimitry Andric }
41