Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-10 08:43:27

0001 //===-- CFIFixup.h - Insert CFI remember/restore instructions ---*- C++ -*-===//
0002 //
0003 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
0004 // See https://llvm.org/LICENSE.txt for license information.
0005 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
0006 //
0007 //===----------------------------------------------------------------------===//
0008 ///
0009 /// \file
0010 /// Contains definition of the base CFIFixup pass.
0011 ///
0012 //===----------------------------------------------------------------------===//
0013 
0014 #ifndef LLVM_CODEGEN_CFIFIXUP_H
0015 #define LLVM_CODEGEN_CFIFIXUP_H
0016 
0017 #include "llvm/CodeGen/MachineFunctionPass.h"
0018 #include "llvm/InitializePasses.h"
0019 
0020 namespace llvm {
0021 class CFIFixup : public MachineFunctionPass {
0022 public:
0023   static char ID;
0024 
0025   CFIFixup() : MachineFunctionPass(ID) {
0026     initializeCFIFixupPass(*PassRegistry::getPassRegistry());
0027   }
0028 
0029   void getAnalysisUsage(AnalysisUsage &AU) const override {
0030     AU.setPreservesAll();
0031     MachineFunctionPass::getAnalysisUsage(AU);
0032   }
0033 
0034   bool runOnMachineFunction(MachineFunction &MF) override;
0035 };
0036 } // namespace llvm
0037 
0038 #endif // LLVM_CODEGEN_CFIFIXUP_H