Lines Matching defs:decl
191 auto decl = builder.create<omp::DeclareReductionOp>(reduce.getLoc(),
193 symbolTable.insert(decl);
195 builder.createBlock(&decl.getInitializerRegion(),
196 decl.getInitializerRegion().end(), {type},
198 builder.setInsertionPointToEnd(&decl.getInitializerRegion().back());
211 decl.getReductionRegion(),
212 decl.getReductionRegion().end());
213 return decl;
220 omp::DeclareReductionOp decl,
226 builder.createBlock(&decl.getAtomicReductionRegion(),
227 decl.getAtomicReductionRegion().end(), {ptrType, ptrType},
229 Block *atomicBlock = &decl.getAtomicReductionRegion().back();
231 Value loaded = builder.create<LLVM::LoadOp>(reduce.getLoc(), decl.getType(),
237 return decl;
265 omp::DeclareReductionOp decl =
268 return addAtomicRMW(builder, LLVM::AtomicBinOp::fadd, decl, reduce,
272 omp::DeclareReductionOp decl =
275 return addAtomicRMW(builder, LLVM::AtomicBinOp::add, decl, reduce,
279 omp::DeclareReductionOp decl =
282 return addAtomicRMW(builder, LLVM::AtomicBinOp::_or, decl, reduce,
286 omp::DeclareReductionOp decl =
289 return addAtomicRMW(builder, LLVM::AtomicBinOp::_xor, decl, reduce,
293 omp::DeclareReductionOp decl = createDecl(
297 return addAtomicRMW(builder, LLVM::AtomicBinOp::_and, decl, reduce,
330 omp::DeclareReductionOp decl =
335 decl, reduce, reductionIndex);
343 omp::DeclareReductionOp decl =
348 decl, reduce, reductionIndex);
373 omp::DeclareReductionOp decl = declareReduction(rewriter, reduce, i);
374 ompReductionDecls.push_back(decl);
375 if (!decl)
378 SymbolRefAttr::get(rewriter.getContext(), decl.getSymName()));