xref: /freebsd/contrib/llvm-project/llvm/lib/Target/ARM/ARMMachineFunctionInfo.cpp (revision 5ffd83dbcc34f10e07f6d3e968ae6365869615f4)
10b57cec5SDimitry Andric //===-- ARMMachineFunctionInfo.cpp - ARM machine function info ------------===//
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 "ARMMachineFunctionInfo.h"
100b57cec5SDimitry Andric #include "ARMSubtarget.h"
110b57cec5SDimitry Andric 
120b57cec5SDimitry Andric using namespace llvm;
130b57cec5SDimitry Andric 
140b57cec5SDimitry Andric void ARMFunctionInfo::anchor() {}
150b57cec5SDimitry Andric 
160b57cec5SDimitry Andric ARMFunctionInfo::ARMFunctionInfo(MachineFunction &MF)
170b57cec5SDimitry Andric     : isThumb(MF.getSubtarget<ARMSubtarget>().isThumb()),
18*5ffd83dbSDimitry Andric       hasThumb2(MF.getSubtarget<ARMSubtarget>().hasThumb2()),
19*5ffd83dbSDimitry Andric       IsCmseNSEntry(MF.getFunction().hasFnAttribute("cmse_nonsecure_entry")),
20*5ffd83dbSDimitry Andric       IsCmseNSCall(MF.getFunction().hasFnAttribute("cmse_nonsecure_call")) {}
21