Skip to content

Commit 5ef645d

Browse files
committed
update docs
1 parent bdd5e15 commit 5ef645d

File tree

1 file changed

+6
-13
lines changed

1 file changed

+6
-13
lines changed

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

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -537,19 +537,12 @@ static llvm::omp::ProcBindKind getProcBindKind(omp::ClauseProcBindKind kind) {
537537
llvm_unreachable("Unknown ClauseProcBindKind kind");
538538
}
539539

540-
/// Maps elements of \p blockArgs (which are MLIR values) to the corresponding
541-
/// LLVM values of \p operands' elements. This is useful when an OpenMP region
542-
/// with entry block arguments is converted to LLVM. In this case \p blockArgs
543-
/// are (part of) of the OpenMP region's entry arguments and \p operands are
544-
/// (part of) of the operands to the OpenMP op containing the region.
545-
///
546-
/// This function assumes that \p operands belong to the enclosing op of the
547-
/// block containing \p blockArgs:
548-
/// ```
549-
/// enclosing_op(operands) {
550-
/// block(blockArgs)
551-
/// }
552-
/// ```
540+
/// Maps block arguments from \p blockArgIface (which are MLIR values) to the
541+
/// corresponding LLVM values of \p the interface's operands. This is useful
542+
/// when an OpenMP region with entry block arguments is converted to LLVM. In
543+
/// this case the block arguments are (part of) of the OpenMP region's entry
544+
/// arguments and the operands are (part of) of the operands to the OpenMP op
545+
/// containing the region.
553546
static void forwardArgs(LLVM::ModuleTranslation &moduleTranslation,
554547
omp::BlockArgOpenMPOpInterface blockArgIface) {
555548
llvm::SmallVector<std::pair<Value, BlockArgument>> blockArgsPairs;

0 commit comments

Comments
 (0)