[OpenMP] Fix incorrect interop type for number of dependencies
authorJoseph Huber <jhuber6@vols.utk.edu>
Mon, 8 May 2023 23:37:55 +0000 (18:37 -0500)
committerJoseph Huber <jhuber6@vols.utk.edu>
Tue, 9 May 2023 02:02:43 +0000 (21:02 -0500)
commite494ebf9d09b1112dcf4f22984bdb51bbf5d8cd7
treead960e29492723e56009d60a14cf877d567ad45c
parent6fcb91b2f756857f1295a28990738b5b6f924226
[OpenMP] Fix incorrect interop type for number of dependencies

The interop types use the number of dependencies in the function
interface. Every other function uses an `i32` to count the number of
dependencies except for the initialization function. This leads to
codegen issues when the rest of the compiler passes in an `i32` that
then creates an invalid call. Fix this to be consistent with the other
uses.

Reviewed By: tianshilei1992

Differential Revision: https://reviews.llvm.org/D150156
clang/test/OpenMP/interop_irbuilder.cpp
llvm/include/llvm/Frontend/OpenMP/OMPKinds.def
llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
llvm/test/Transforms/OpenMP/add_attributes.ll
openmp/libomptarget/src/interop.cpp