Skip to content

Commit 5334b31

Browse files
authored
[mlir][OpenMP][NFC] Use SmallVectorImpl for function arguments (#86978)
1 parent 71c3f5d commit 5334b31

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -804,13 +804,13 @@ convertOmpTaskgroupOp(omp::TaskgroupOp tgOp, llvm::IRBuilderBase &builder,
804804

805805
/// Allocate space for privatized reduction variables.
806806
template <typename T>
807-
static void
808-
allocByValReductionVars(T loop, llvm::IRBuilderBase &builder,
809-
LLVM::ModuleTranslation &moduleTranslation,
810-
llvm::OpenMPIRBuilder::InsertPointTy &allocaIP,
811-
SmallVector<omp::DeclareReductionOp> &reductionDecls,
812-
SmallVector<llvm::Value *> &privateReductionVariables,
813-
DenseMap<Value, llvm::Value *> &reductionVariableMap) {
807+
static void allocByValReductionVars(
808+
T loop, llvm::IRBuilderBase &builder,
809+
LLVM::ModuleTranslation &moduleTranslation,
810+
llvm::OpenMPIRBuilder::InsertPointTy &allocaIP,
811+
SmallVectorImpl<omp::DeclareReductionOp> &reductionDecls,
812+
SmallVectorImpl<llvm::Value *> &privateReductionVariables,
813+
DenseMap<Value, llvm::Value *> &reductionVariableMap) {
814814
llvm::IRBuilderBase::InsertPointGuard guard(builder);
815815
builder.restoreIP(allocaIP);
816816
auto args =

0 commit comments

Comments
 (0)