[OMPIRBuilder] Fix store inst alignment for ordered depend directive
authorPeixin-Qiao <qiaopeixin@huawei.com>
Fri, 14 Jan 2022 01:47:11 +0000 (09:47 +0800)
committerPeixin-Qiao <qiaopeixin@huawei.com>
Fri, 14 Jan 2022 01:47:11 +0000 (09:47 +0800)
commitf52805539b294773aec872e9055aa460eca1a933
tree154fb8aba819f0b8c0aa51a4097ffbd4193b6024
parent83338d5032424741accb1e851408021b47b84c08
[OMPIRBuilder] Fix store inst alignment for ordered depend directive

OpenMP runtime requires depend vec with i64 type and the alignment of
store instruction should be set as 8.

Reviewed By: kiranchandramohan, shraiysh

Differential Revision: https://reviews.llvm.org/D116300
llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp
mlir/test/Target/LLVMIR/openmp-llvm.mlir