[OMPIRBuilder] Add support for safelen clause
authorPrabhdeep Singh Soni <prabhdeep.singh.soni2@huawei.com>
Thu, 18 Aug 2022 19:43:08 +0000 (15:43 -0400)
committerPrabhdeep Singh Soni <prabhdeep.singh.soni2@huawei.com>
Thu, 18 Aug 2022 19:43:08 +0000 (15:43 -0400)
commitbce94ea551ae775805824d62944aa585c4f831b6
tree74522ee433fd839ed7807dd508c58eb623b54ab2
parentf7a33090a91015836497c75f173775392ab0304d
[OMPIRBuilder] Add support for safelen clause

This patch adds OMPIRBuilder support for the safelen clause for the
simd directive.

Reviewed By: shraiysh, Meinersbur

Differential Revision: https://reviews.llvm.org/D131526
clang/lib/CodeGen/CGStmtOpenMP.cpp
clang/test/OpenMP/irbuilder_safelen.cpp [new file with mode: 0644]
clang/test/OpenMP/irbuilder_simdlen_safelen.cpp [new file with mode: 0644]
llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h
llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp
mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp