ARMMachineFunctionInfo.cpp 821 B

1234567891011121314151617181920
  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. #include "ARMMachineFunctionInfo.h"
  9. #include "ARMSubtarget.h"
  10. using namespace llvm;
  11. void ARMFunctionInfo::anchor() {}
  12. ARMFunctionInfo::ARMFunctionInfo(MachineFunction &MF)
  13. : isThumb(MF.getSubtarget<ARMSubtarget>().isThumb()),
  14. hasThumb2(MF.getSubtarget<ARMSubtarget>().hasThumb2()),
  15. IsCmseNSEntry(MF.getFunction().hasFnAttribute("cmse_nonsecure_entry")),
  16. IsCmseNSCall(MF.getFunction().hasFnAttribute("cmse_nonsecure_call")) {}