This simple patch translates the num_threads and if clauses of the parallel operation. Also includes test cases.
A minor change was made to parsing of the if clause to parse AnyType and return the parsed type. Updates to test cases also.
Paths
| Differential D84798
[OpenMP,MLIR] Translation of parallel operation: num_threads, if clauses 3/n ClosedPublic Authored by kiranchandramohan on Jul 28 2020, 1:50 PM.
Details Summary This simple patch translates the num_threads and if clauses of the parallel operation. Also includes test cases. A minor change was made to parsing of the if clause to parse AnyType and return the parsed type. Updates to test cases also.
Diff Detail
Event TimelineComment Actions No complaints form my side :)
This revision is now accepted and ready to land.Jul 29 2020, 7:24 AM Closed by commit rG660832c4e744: [OpenMP,MLIR] Translation of parallel operation: num_threads, if clauses 3/n (authored by kiranchandramohan). · Explain WhyAug 7 2020, 1:55 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 284040 mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp
mlir/lib/Target/LLVMIR/ModuleTranslation.cpp
mlir/test/Dialect/OpenMP/invalid.mlir
mlir/test/Dialect/OpenMP/ops.mlir
mlir/test/Target/openmp-llvm.mlir
|
NIT: Modify default clause to proc_bind in the comment