PHIEliminationUtils.h 972 B

123456789101112131415161718192021222324
  1. //=- PHIEliminationUtils.h - Helper functions for PHI elimination -*- C++ -*-=//
  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. #ifndef LLVM_LIB_CODEGEN_PHIELIMINATIONUTILS_H
  9. #define LLVM_LIB_CODEGEN_PHIELIMINATIONUTILS_H
  10. #include "llvm/CodeGen/MachineBasicBlock.h"
  11. namespace llvm {
  12. /// findPHICopyInsertPoint - Find a safe place in MBB to insert a copy from
  13. /// SrcReg when following the CFG edge to SuccMBB. This needs to be after
  14. /// any def of SrcReg, but before any subsequent point where control flow
  15. /// might jump out of the basic block.
  16. MachineBasicBlock::iterator
  17. findPHICopyInsertPoint(MachineBasicBlock* MBB, MachineBasicBlock* SuccMBB,
  18. unsigned SrcReg);
  19. }
  20. #endif