Home
last modified time | relevance | path

Searched refs:ifCond (Results 1 – 10 of 10) sorted by relevance

/llvm-project-15.0.7/mlir/test/Dialect/OpenACC/
H A Dcanonicalize.mlir4 %ifCond = arith.constant true
5 acc.enter_data if(%ifCond) create(%a: memref<10xf32>)
14 %ifCond = arith.constant false
15 acc.enter_data if(%ifCond) create(%a: memref<10xf32>)
25 %ifCond = arith.constant true
35 %ifCond = arith.constant false
46 %ifCond = arith.constant true
47 acc.update if(%ifCond) host(%a: memref<10xf32>)
56 %ifCond = arith.constant false
57 acc.update if(%ifCond) host(%a: memref<10xf32>)
[all …]
H A Dops.mlir457 %ifCond = arith.constant true
534 %ifCond = arith.constant true
539 acc.update if(%ifCond) host(%a: memref<10xf32>)
569 %ifCond = arith.constant true
582 acc.wait if(%ifCond)
608 %ifCond = arith.constant true
615 acc.init if(%ifCond)
636 %ifCond = arith.constant true
643 acc.shutdown if(%ifCond)
661 %ifCond = arith.constant true
[all …]
/llvm-project-15.0.7/mlir/test/Conversion/OpenACCToSCF/
H A Dconvert-openacc-to-scf.mlir3 func.func @testenterdataop(%a: memref<10xf32>, %ifCond: i1) -> () {
4 acc.enter_data if(%ifCond) create(%a: memref<10xf32>)
15 func.func @testexitdataop(%a: memref<10xf32>, %ifCond: i1) -> () {
16 acc.exit_data if(%ifCond) delete(%a: memref<10xf32>)
27 func.func @testupdateop(%a: memref<10xf32>, %ifCond: i1) -> () {
28 acc.update if(%ifCond) host(%a: memref<10xf32>)
/llvm-project-15.0.7/mlir/lib/Conversion/OpenACCToSCF/
H A DOpenACCToSCF.cpp32 if (!op.ifCond()) in matchAndRewrite()
36 if (!op.ifCond().template getDefiningOp<arith::ConstantOp>()) { in matchAndRewrite()
38 op.ifCond(), false); in matchAndRewrite()
76 [](acc::EnterDataOp op) { return !op.ifCond(); }); in runOnOperation()
79 [](acc::ExitDataOp op) { return !op.ifCond(); }); in runOnOperation()
82 [](acc::UpdateOp op) { return !op.ifCond(); }); in runOnOperation()
/llvm-project-15.0.7/mlir/lib/Dialect/Tensor/Transforms/
H A DSplitPadding.cpp71 Value ifCond = eqZeroCmpVals.front(); in matchAndRewrite() local
73 ifCond = rewriter.create<arith::AndIOp>(loc, ifCond, cmp); in matchAndRewrite()
84 rewriter.replaceOpWithNewOp<scf::IfOp>(padOp, padOp.getType(), ifCond, in matchAndRewrite()
/llvm-project-15.0.7/mlir/lib/Dialect/OpenACC/IR/
H A DOpenACC.cpp179 Value ifCond = op.ifCond(); in matchAndRewrite() local
180 if (!ifCond) in matchAndRewrite()
184 if (matchPattern(ifCond, m_Constant(&constAttr))) { in matchAndRewrite()
238 OpAsmParser::UnresolvedOperand ifCond, selfCond; in parse() local
419 if (Value ifCond = this->ifCond()) in print() local
420 printer << " " << ParallelOp::getIfKeyword() << "(" << ifCond << ")"; in print()
499 numOptional += ifCond() ? 1 : 0; in getDataOperand()
713 unsigned numOptional = ifCond() ? 1 : 0; in getDataOperand()
753 unsigned numOptional = ifCond() ? 1 : 0; in getDataOperand()
800 unsigned numOptional = ifCond() ? 1 : 0; in getDataOperand()
[all …]
/llvm-project-15.0.7/mlir/include/mlir/Dialect/OpenACC/
H A DOpenACCOps.td100 Optional<I1>:$ifCond,
183 let arguments = (ins Optional<I1>:$ifCond,
208 ( `if` `(` $ifCond^ `)` )?
258 let arguments = (ins Optional<I1>:$ifCond,
278 ( `if` `(` $ifCond^ `)` )?
311 let arguments = (ins Optional<I1>:$ifCond,
331 ( `if` `(` $ifCond^ `)` )?
450 Optional<I1>:$ifCond);
481 Optional<I1>:$ifCond);
511 let arguments = (ins Optional<I1>:$ifCond,
[all …]
/llvm-project-15.0.7/flang/lib/Lower/
H A DOpenACC.cpp174 mlir::Value &ifCond, in genIfClause() argument
361 mlir::Value ifCond; in createParallelOp() local
499 addOperand(operands, operandSegments, ifCond); in createParallelOp()
541 mlir::Value ifCond; in genACCDataOp() local
601 addOperand(operands, operandSegments, ifCond); in genACCDataOp()
670 mlir::Value ifCond, async, waitDevnum; in genACCEnterDataOp() local
723 addOperand(operands, operandSegments, ifCond); in genACCEnterDataOp()
744 mlir::Value ifCond, async, waitDevnum; in genACCExitDataOp() local
818 mlir::Value ifCond, deviceNum; in genACCInitShutdownOp() local
858 mlir::Value ifCond, async, waitDevnum; in genACCUpdateOp() local
[all …]
/llvm-project-15.0.7/mlir/test/Conversion/OpenACCToLLVM/
H A Dconvert-data-operands-to-llvmir.mlir31 %ifCond = arith.constant true
32 acc.enter_data if(%ifCond) copyin(%b : memref<10xf32>) create(%a : memref<10xf32>)
68 %ifCond = arith.constant true
69 acc.exit_data if(%ifCond) copyout(%b : memref<10xf32>) delete(%a : memref<10xf32>)
105 %ifCond = arith.constant true
106 acc.update if(%ifCond) host(%b : memref<10xf32>) device(%a : memref<10xf32>)
135 %ifCond = arith.constant true
136 acc.data if(%ifCond) copyin_readonly(%b : memref<10xf32>) copyout_zero(%a : memref<10xf32>) {
186 %ifCond = arith.constant true
187 acc.parallel if(%ifCond) copyin_readonly(%b : memref<10xf32>) copyout_zero(%a : memref<10xf32>) {
/llvm-project-15.0.7/mlir/lib/Target/LLVMIR/Dialect/OpenMP/
H A DOpenMPToLLVMIRTranslation.cpp286 llvm::Value *ifCond = nullptr; in convertOmpParallel() local
288 ifCond = moduleTranslation.lookupValue(ifExprVar); in convertOmpParallel()
302 ompLoc, allocaIP, bodyGenCB, privCB, finiCB, ifCond, numThreads, pbKind, in convertOmpParallel()