]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - opencl/llvm.git/blob - lib/CodeGen/PHIEliminationUtils.h
Debug info: Further simplify the implementation of buildLocationList by
[opencl/llvm.git] / lib / CodeGen / PHIEliminationUtils.h
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 //===----------------------------------------------------------------------===//
10 #ifndef LLVM_CODEGEN_PHIELIMINATIONUTILS_H
11 #define LLVM_CODEGEN_PHIELIMINATIONUTILS_H
13 #include "llvm/CodeGen/MachineBasicBlock.h"
15 namespace 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 }
25 #endif