PHIEliminationUtils.h 944 B

12345678910111213141516171819202122232425
  1. //=- PHIEliminationUtils.h - Helper functions for PHI elimination -*- C++ -*-=//
  2. //
  3. // The LLVM Compiler Infrastructure
  4. //
  5. // This file is distributed under the University of Illinois Open Source
  6. // License. See LICENSE.TXT for details.
  7. //
  8. //===----------------------------------------------------------------------===//
  9. #ifndef LLVM_LIB_CODEGEN_PHIELIMINATIONUTILS_H
  10. #define LLVM_LIB_CODEGEN_PHIELIMINATIONUTILS_H
  11. #include "llvm/CodeGen/MachineBasicBlock.h"
  12. namespace llvm {
  13. /// findPHICopyInsertPoint - Find a safe place in MBB to insert a copy from
  14. /// SrcReg when following the CFG edge to SuccMBB. This needs to be after
  15. /// any def of SrcReg, but before any subsequent point where control flow
  16. /// might jump out of the basic block.
  17. MachineBasicBlock::iterator
  18. findPHICopyInsertPoint(MachineBasicBlock* MBB, MachineBasicBlock* SuccMBB,
  19. unsigned SrcReg);
  20. }
  21. #endif