diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2018-04-13 17:31:06 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2018-04-13 17:31:06 +0000 |
commit | ddf3db9b5eddc6c7cc75fd30eea545c22ad70dcd (patch) | |
tree | aa1ff6351dbf0700b29c8c06be6853a803584493 /clang/lib/CodeGen/CodeGenFunction.h | |
parent | fe6a0b9a6530edec99c7ce82d432b036de076efe (diff) | |
download | bcm5719-llvm-ddf3db9b5eddc6c7cc75fd30eea545c22ad70dcd.tar.gz bcm5719-llvm-ddf3db9b5eddc6c7cc75fd30eea545c22ad70dcd.zip |
[OPENMP] Code cleanup + formatting, NFC.
llvm-svn: 330040
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h index d251d64f5e9..27b0677d49b 100644 --- a/clang/lib/CodeGen/CodeGenFunction.h +++ b/clang/lib/CodeGen/CodeGenFunction.h @@ -788,7 +788,7 @@ public: /// \return true if the variable is registered as private, false if it has /// been privatized already. bool addPrivate(const VarDecl *LocalVD, - llvm::function_ref<Address()> PrivateGen) { + const llvm::function_ref<Address()> PrivateGen) { assert(PerformCleanup && "adding private to dead scope"); return MappedVars.setVarAddr(CGF, LocalVD, PrivateGen()); } @@ -1146,7 +1146,7 @@ private: /// Emits exit block with special codegen procedure specific for the related /// OpenMP construct + emits code for normal construct cleanup. void emitExit(CodeGenFunction &CGF, OpenMPDirectiveKind Kind, - const llvm::function_ref<void(CodeGenFunction &)> &CodeGen) { + const llvm::function_ref<void(CodeGenFunction &)> CodeGen) { if (Stack.back().Kind == Kind && getExitBlock().isValid()) { assert(CGF.getOMPCancelDestination(Kind).isValid()); assert(CGF.HaveInsertPoint()); @@ -2771,7 +2771,7 @@ public: /// to another single array element. void EmitOMPAggregateAssign( Address DestAddr, Address SrcAddr, QualType OriginalType, - const llvm::function_ref<void(Address, Address)> &CopyGen); + const llvm::function_ref<void(Address, Address)> CopyGen); /// \brief Emit proper copying of data from one variable to another. /// /// \param OriginalType Original type of the copied variables. @@ -2803,7 +2803,7 @@ public: std::pair<bool, RValue> EmitOMPAtomicSimpleUpdateExpr( LValue X, RValue E, BinaryOperatorKind BO, bool IsXLHSInRHSPart, llvm::AtomicOrdering AO, SourceLocation Loc, - const llvm::function_ref<RValue(RValue)> &CommonGen); + const llvm::function_ref<RValue(RValue)> CommonGen); bool EmitOMPFirstprivateClause(const OMPExecutableDirective &D, OMPPrivateScope &PrivateScope); void EmitOMPPrivateClause(const OMPExecutableDirective &D, @@ -2854,7 +2854,7 @@ public: /// linear clause. void EmitOMPLinearClauseFinal( const OMPLoopDirective &D, - const llvm::function_ref<llvm::Value *(CodeGenFunction &)> &CondGen); + const llvm::function_ref<llvm::Value *(CodeGenFunction &)> CondGen); /// \brief Emit initial code for reduction variables. Creates reduction copies /// and initializes them with the values according to OpenMP standard. /// @@ -3016,8 +3016,8 @@ public: void EmitOMPInnerLoop( const Stmt &S, bool RequiresCleanup, const Expr *LoopCond, const Expr *IncExpr, - const llvm::function_ref<void(CodeGenFunction &)> &BodyGen, - const llvm::function_ref<void(CodeGenFunction &)> &PostIncGen); + const llvm::function_ref<void(CodeGenFunction &)> BodyGen, + const llvm::function_ref<void(CodeGenFunction &)> PostIncGen); JumpDest getOMPCancelDestination(OpenMPDirectiveKind Kind); /// Emit initial code for loop counters of loop-based directives. @@ -3042,7 +3042,7 @@ public: void EmitOMPSimdInit(const OMPLoopDirective &D, bool IsMonotonic = false); void EmitOMPSimdFinal( const OMPLoopDirective &D, - const llvm::function_ref<llvm::Value *(CodeGenFunction &)> &CondGen); + const llvm::function_ref<llvm::Value *(CodeGenFunction &)> CondGen); /// Emits the lvalue for the expression with possibly captured variable. LValue EmitOMPSharedLValue(const Expr *E); |