forked from OSchip/llvm-project
Use C++11 formatting
clang-formats behaviour has changed for a couple of C++11 formattings. We adapt Polly to ensure our formatting checks are clean again. llvm-svn: 202650
This commit is contained in:
parent
23077e3e0a
commit
45bac0d953
|
@ -111,7 +111,7 @@ typedef std::map<const Loop *, const SCEV *> LoopBoundMapType;
|
|||
/// Mapping BBs to its condition constrains
|
||||
typedef std::map<const BasicBlock *, BBCond> BBCondMapType;
|
||||
|
||||
typedef std::vector<std::pair<IRAccess, Instruction *> > AccFuncSetType;
|
||||
typedef std::vector<std::pair<IRAccess, Instruction *>> AccFuncSetType;
|
||||
typedef std::map<const BasicBlock *, AccFuncSetType> AccFuncMapType;
|
||||
|
||||
//===---------------------------------------------------------------------===//
|
||||
|
|
|
@ -134,17 +134,17 @@ void OMPGenerator::createCallParallelLoopStart(
|
|||
Type *LongTy = getIntPtrTy();
|
||||
GlobalValue::LinkageTypes Linkage = Function::ExternalLinkage;
|
||||
|
||||
Type *Params[] = { PointerType::getUnqual(FunctionType::get(
|
||||
Builder.getVoidTy(), Builder.getInt8PtrTy(), false)),
|
||||
Builder.getInt8PtrTy(), Builder.getInt32Ty(), LongTy,
|
||||
LongTy, LongTy, };
|
||||
Type *Params[] = {PointerType::getUnqual(FunctionType::get(
|
||||
Builder.getVoidTy(), Builder.getInt8PtrTy(), false)),
|
||||
Builder.getInt8PtrTy(), Builder.getInt32Ty(), LongTy,
|
||||
LongTy, LongTy};
|
||||
|
||||
FunctionType *Ty = FunctionType::get(Builder.getVoidTy(), Params, false);
|
||||
F = Function::Create(Ty, Linkage, Name, M);
|
||||
}
|
||||
|
||||
Value *Args[] = { SubFunction, SubfunctionParam, NumberOfThreads,
|
||||
LowerBound, UpperBound, Stride };
|
||||
Value *Args[] = {SubFunction, SubfunctionParam, NumberOfThreads,
|
||||
LowerBound, UpperBound, Stride};
|
||||
|
||||
Builder.CreateCall(F, Args);
|
||||
}
|
||||
|
@ -160,13 +160,13 @@ Value *OMPGenerator::createCallLoopNext(Value *LowerBoundPtr,
|
|||
Type *LongPtrTy = PointerType::getUnqual(getIntPtrTy());
|
||||
GlobalValue::LinkageTypes Linkage = Function::ExternalLinkage;
|
||||
|
||||
Type *Params[] = { LongPtrTy, LongPtrTy, };
|
||||
Type *Params[] = {LongPtrTy, LongPtrTy};
|
||||
|
||||
FunctionType *Ty = FunctionType::get(Builder.getInt8Ty(), Params, false);
|
||||
F = Function::Create(Ty, Linkage, Name, M);
|
||||
}
|
||||
|
||||
Value *Args[] = { LowerBoundPtr, UpperBoundPtr, };
|
||||
Value *Args[] = {LowerBoundPtr, UpperBoundPtr};
|
||||
|
||||
Value *Return = Builder.CreateCall(F, Args);
|
||||
Return = Builder.CreateICmpNE(
|
||||
|
|
|
@ -154,7 +154,7 @@ void IndependentBlocks::moveOperandTree(Instruction *Inst, const Region *R,
|
|||
// Depth first traverse the operand tree (or operand dag, because we will
|
||||
// stop at PHINodes, so there are no cycle).
|
||||
typedef Instruction::op_iterator ChildIt;
|
||||
std::vector<std::pair<Instruction *, ChildIt> > WorkStack;
|
||||
std::vector<std::pair<Instruction *, ChildIt>> WorkStack;
|
||||
|
||||
WorkStack.push_back(std::make_pair(Inst, Inst->op_begin()));
|
||||
DenseSet<Instruction *> VisitedSet;
|
||||
|
|
Loading…
Reference in New Issue