[Openmp-commits] [PATCH] D80222: Replace Clang's createRuntimeFunction with the definitions in OMPKinds.def
Joseph Huber via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Thu May 28 09:50:34 PDT 2020
jhuber6 updated this revision to Diff 266922.
jhuber6 added a comment.
Changed getOrCreateRuntimeFunction to return a FunctionCallee instead of a Function*. Added a helper function inside of OpenMPIRBuilder to get the Function*. Added conditional bitcast to change the types if they do not match. This was done inside of `CGM.createRuntimeFunction` if it found an existing declaration and the types didn't match. Maybe be able to change this back to just return a Function*
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D80222/new/
https://reviews.llvm.org/D80222
Files:
clang/lib/CodeGen/CGOpenMPRuntime.cpp
clang/lib/CodeGen/CGOpenMPRuntime.h
clang/test/OpenMP/barrier_codegen.cpp
clang/test/OpenMP/nvptx_teams_codegen.cpp
clang/test/OpenMP/openmp_win_codegen.cpp
clang/test/OpenMP/target_teams_distribute_parallel_for_codegen.cpp
clang/test/OpenMP/target_teams_distribute_parallel_for_simd_codegen.cpp
clang/test/OpenMP/target_teams_num_teams_codegen.cpp
clang/test/OpenMP/target_teams_thread_limit_codegen.cpp
clang/test/OpenMP/teams_codegen.cpp
clang/test/OpenMP/teams_distribute_codegen.cpp
clang/test/OpenMP/teams_distribute_parallel_for_codegen.cpp
clang/test/OpenMP/teams_distribute_parallel_for_simd_codegen.cpp
clang/test/OpenMP/teams_distribute_simd_codegen.cpp
llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h
llvm/include/llvm/Frontend/OpenMP/OMPKinds.def
llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
llvm/test/Transforms/OpenMP/add_attributes.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D80222.266922.patch
Type: text/x-patch
Size: 153960 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20200528/1c95a32a/attachment-0001.bin>
More information about the Openmp-commits
mailing list