[OMPIRBuilder] Add support for simdlen clause
authorPrabhdeep Singh Soni <prabhdeep.singh.soni2@huawei.com>
Mon, 11 Jul 2022 17:27:26 +0000 (13:27 -0400)
committerArnamoy Bhattacharyya <arnamoy.bhattacharyya@huawei.com>
Mon, 11 Jul 2022 17:29:06 +0000 (13:29 -0400)
commitac892c70a456a443ef5d52ec886b4b6b0fae9244
treecda950552dc98c8287f484a0cf03811ca99a6805
parent6e8e91a7b63c51f487ddfbe2d6b2372ea1310faf
[OMPIRBuilder] Add support for simdlen clause

This patch adds OMPIRBuilder support for the simdlen clause for the
simd directive. It uses the simdlen support in OpenMPIRBuilder when
it is enabled in Clang. Simdlen is lowered by OpenMPIRBuilder by
generating the loop.vectorize.width metadata.

Reviewed By: jdoerfert, Meinersbur

Differential Revision: https://reviews.llvm.org/D129149
clang/lib/CodeGen/CGStmtOpenMP.cpp
clang/test/OpenMP/irbuilder_simd.cpp
clang/test/OpenMP/irbuilder_simdlen.cpp [new file with mode: 0644]
llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h
llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp
llvm/utils/UpdateTestChecks/common.py
mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp