[ORC] Add std::tuple support to SimplePackedSerialization.
[llvm-project.git] / llvm / lib / Target / ARM / ARMMachineFunctionInfo.cpp
blob507c3e69b3a4a7ab3fb6d4ec7b67390e8b9127c7
1 //===-- ARMMachineFunctionInfo.cpp - ARM machine function info ------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
9 #include "ARMMachineFunctionInfo.h"
10 #include "ARMSubtarget.h"
12 using namespace llvm;
14 void ARMFunctionInfo::anchor() {}
16 ARMFunctionInfo::ARMFunctionInfo(MachineFunction &MF)
17 : isThumb(MF.getSubtarget<ARMSubtarget>().isThumb()),
18 hasThumb2(MF.getSubtarget<ARMSubtarget>().hasThumb2()),
19 IsCmseNSEntry(MF.getFunction().hasFnAttribute("cmse_nonsecure_entry")),
20 IsCmseNSCall(MF.getFunction().hasFnAttribute("cmse_nonsecure_call")) {}