blob: b997d7ac5f4fe8f971c75f19d3769b01b581765e [file] [log] [blame]
Michael Gottesman8711b762013-08-12 20:52:06 +00001//=- PHIEliminationUtils.h - Helper functions for PHI elimination -*- C++ -*-=//
Cameron Zwaricha4746852010-12-05 19:51:05 +00002//
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
Benjamin Kramer00e08fc2014-08-13 16:26:38 +000010#ifndef LLVM_LIB_CODEGEN_PHIELIMINATIONUTILS_H
11#define LLVM_LIB_CODEGEN_PHIELIMINATIONUTILS_H
Cameron Zwaricha4746852010-12-05 19:51:05 +000012
13#include "llvm/CodeGen/MachineBasicBlock.h"
14
15namespace llvm {
16 /// findPHICopyInsertPoint - Find a safe place in MBB to insert a copy from
17 /// SrcReg when following the CFG edge to SuccMBB. This needs to be after
18 /// any def of SrcReg, but before any subsequent point where control flow
19 /// might jump out of the basic block.
20 MachineBasicBlock::iterator
21 findPHICopyInsertPoint(MachineBasicBlock* MBB, MachineBasicBlock* SuccMBB,
22 unsigned SrcReg);
23}
24
25#endif