LLVM  13.0.0git
ARMMachineFunctionInfo.cpp
Go to the documentation of this file.
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 //===----------------------------------------------------------------------===//
8 
10 #include "ARMSubtarget.h"
11 
12 using namespace llvm;
13 
14 void ARMFunctionInfo::anchor() {}
15 
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")) {}
ARMSubtarget.h
llvm
---------------------— PointerInfo ------------------------------------—
Definition: AllocatorList.h:23
llvm::ARMSubtarget
Definition: ARMSubtarget.h:46
getFunction
static Function * getFunction(Constant *C)
Definition: Evaluator.cpp:255
ARMMachineFunctionInfo.h
llvm::ARMFunctionInfo::ARMFunctionInfo
ARMFunctionInfo()=default
isThumb
static bool isThumb(const MCSubtargetInfo &STI)
Definition: ARMAsmPrinter.cpp:470
llvm::MachineFunction
Definition: MachineFunction.h:230