mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
95c770abfc
Differential Revision: https://reviews.llvm.org/D22688 llvm-svn: 276449
30 lines
1.1 KiB
C++
30 lines
1.1 KiB
C++
//===- BreakCriticalEdges.h - Critical Edge Elimination Pass --------------===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// BreakCriticalEdges pass - Break all of the critical edges in the CFG by
|
|
// inserting a dummy basic block. This pass may be "required" by passes that
|
|
// cannot deal with critical edges. For this usage, the structure type is
|
|
// forward declared. This pass obviously invalidates the CFG, but can update
|
|
// dominator trees.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef LLVM_TRANSFORMS_UTILS_BREAKCRITICALEDGES_H
|
|
#define LLVM_TRANSFORMS_UTILS_BREAKCRITICALEDGES_H
|
|
|
|
#include "llvm/IR/Function.h"
|
|
#include "llvm/IR/PassManager.h"
|
|
|
|
namespace llvm {
|
|
struct BreakCriticalEdgesPass : public PassInfoMixin<BreakCriticalEdgesPass> {
|
|
PreservedAnalyses run(Function &F, FunctionAnalysisManager &AM);
|
|
};
|
|
} // namespace llvm
|
|
#endif // LLVM_TRANSFORMS_UTILS_BREAKCRITICALEDGES_H
|