LLVM API Documentation

PHIEliminationUtils.h
Go to the documentation of this file.
00001 //=- PHIEliminationUtils.h - Helper functions for PHI elimination -*- C++ -*-=//
00002 //
00003 //                     The LLVM Compiler Infrastructure
00004 //
00005 // This file is distributed under the University of Illinois Open Source
00006 // License. See LICENSE.TXT for details.
00007 //
00008 //===----------------------------------------------------------------------===//
00009 
00010 #ifndef LLVM_LIB_CODEGEN_PHIELIMINATIONUTILS_H
00011 #define LLVM_LIB_CODEGEN_PHIELIMINATIONUTILS_H
00012 
00013 #include "llvm/CodeGen/MachineBasicBlock.h"
00014 
00015 namespace llvm {
00016     /// findPHICopyInsertPoint - Find a safe place in MBB to insert a copy from
00017     /// SrcReg when following the CFG edge to SuccMBB. This needs to be after
00018     /// any def of SrcReg, but before any subsequent point where control flow
00019     /// might jump out of the basic block.
00020     MachineBasicBlock::iterator
00021     findPHICopyInsertPoint(MachineBasicBlock* MBB, MachineBasicBlock* SuccMBB,
00022                            unsigned SrcReg);
00023 }
00024 
00025 #endif