mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +00:00
[C++] Use 'nullptr'. Transforms edition.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207196 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -66,7 +66,7 @@ namespace llvm {
|
||||
/// dominates the rest, prepare a code extractor object for pulling this
|
||||
/// sequence out into its new function. When a DominatorTree is also given,
|
||||
/// extra checking and transformations are enabled.
|
||||
CodeExtractor(ArrayRef<BasicBlock *> BBs, DominatorTree *DT = 0,
|
||||
CodeExtractor(ArrayRef<BasicBlock *> BBs, DominatorTree *DT = nullptr,
|
||||
bool AggregateArgs = false);
|
||||
|
||||
/// \brief Create a code extractor for a loop body.
|
||||
|
||||
@@ -32,7 +32,7 @@ BasicBlock *InsertPreheaderForLoop(Loop *L, Pass *P);
|
||||
/// will optionally update \c AliasAnalysis and \c ScalarEvolution analyses if
|
||||
/// passed into it.
|
||||
bool simplifyLoop(Loop *L, DominatorTree *DT, LoopInfo *LI, Pass *PP,
|
||||
AliasAnalysis *AA = 0, ScalarEvolution *SE = 0);
|
||||
AliasAnalysis *AA = nullptr, ScalarEvolution *SE = nullptr);
|
||||
|
||||
/// \brief Put loop into LCSSA form.
|
||||
///
|
||||
@@ -45,7 +45,7 @@ bool simplifyLoop(Loop *L, DominatorTree *DT, LoopInfo *LI, Pass *PP,
|
||||
/// If ScalarEvolution is passed in, it will be preserved.
|
||||
///
|
||||
/// Returns true if any modifications are made to the loop.
|
||||
bool formLCSSA(Loop &L, DominatorTree &DT, ScalarEvolution *SE = 0);
|
||||
bool formLCSSA(Loop &L, DominatorTree &DT, ScalarEvolution *SE = nullptr);
|
||||
|
||||
/// \brief Put a loop nest into LCSSA form.
|
||||
///
|
||||
@@ -56,7 +56,8 @@ bool formLCSSA(Loop &L, DominatorTree &DT, ScalarEvolution *SE = 0);
|
||||
/// If ScalarEvolution is passed in, it will be preserved.
|
||||
///
|
||||
/// Returns true if any modifications are made to the loop.
|
||||
bool formLCSSARecursively(Loop &L, DominatorTree &DT, ScalarEvolution *SE = 0);
|
||||
bool formLCSSARecursively(Loop &L, DominatorTree &DT,
|
||||
ScalarEvolution *SE = nullptr);
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@ bool isAllocaPromotable(const AllocaInst *AI);
|
||||
/// If AST is specified, the specified tracker is updated to reflect changes
|
||||
/// made to the IR.
|
||||
void PromoteMemToReg(ArrayRef<AllocaInst *> Allocas, DominatorTree &DT,
|
||||
AliasSetTracker *AST = 0);
|
||||
AliasSetTracker *AST = nullptr);
|
||||
|
||||
} // End llvm namespace
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ protected:
|
||||
|
||||
virtual void anchor();
|
||||
public:
|
||||
IVVisitor(): DT(NULL), ShouldSplitOverflowIntrinsics(false) {}
|
||||
IVVisitor(): DT(nullptr), ShouldSplitOverflowIntrinsics(false) {}
|
||||
virtual ~IVVisitor() {}
|
||||
|
||||
const DominatorTree *getDomTree() const { return DT; }
|
||||
@@ -57,7 +57,7 @@ public:
|
||||
/// simplifyUsersOfIV - Simplify instructions that use this induction variable
|
||||
/// by using ScalarEvolution to analyze the IV's recurrence.
|
||||
bool simplifyUsersOfIV(PHINode *CurrIV, ScalarEvolution *SE, LPPassManager *LPM,
|
||||
SmallVectorImpl<WeakVH> &Dead, IVVisitor *V = NULL);
|
||||
SmallVectorImpl<WeakVH> &Dead, IVVisitor *V = nullptr);
|
||||
|
||||
/// SimplifyLoopIVs - Simplify users of induction variables within this
|
||||
/// loop. This does not actually change or add IVs.
|
||||
|
||||
@@ -27,7 +27,7 @@ struct UnifyFunctionExitNodes : public FunctionPass {
|
||||
public:
|
||||
static char ID; // Pass identification, replacement for typeid
|
||||
UnifyFunctionExitNodes() : FunctionPass(ID),
|
||||
ReturnBlock(0), UnwindBlock(0) {
|
||||
ReturnBlock(nullptr), UnwindBlock(nullptr) {
|
||||
initializeUnifyFunctionExitNodesPass(*PassRegistry::getPassRegistry());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user