Move emitOffloadingArraysArgument function and supporting data structures to OpenMPIRBuilder. This will later be used in flang as well.
The TargetDataInfo class was split up into generic information and clang-specific data, which remain in clang. Further migration will be done in
in the future.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Initial feedback, mostly style.
llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h | ||
---|---|---|
1026 | No llvm:: in llvm/ | |
1044 | Seems unused. If needed in can live in Clang. | |
1053–1059 | RTArgs = TargetDataRTArgs()? | |
llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp | ||
3997–4001 | These types should exist but I guess this is OK. | |
4002 | Flip the cases, simple first, then exit. | |
4026 | !EmitDebug |
Updated the code for everthing except for type creation, which will be fixed shortly.
llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h | ||
---|---|---|
1044 | Yes, this is dead code I forgot to remove. | |
1053–1059 | Yes, much better. | |
llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp | ||
3997–4001 | It can be compressed by using PointerType *VoidPtrType = Type::getInt8PtrTy(C); I will also fix this, but in the next patch update. | |
4002 | Did an early return. | |
4026 | Test and call site were both swapped, fixed both. |
llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp | ||
---|---|---|
3997–4001 | Did minor cleanup. |
LG, nits below
include/llvm/Frontend/OpenMP/OMPIRBuilder.h | ||
---|---|---|
1026 ↗ | (On Diff #463552) | Move to the bool. |
lib/Frontend/OpenMP/OMPIRBuilder.cpp | ||
4007–4009 ↗ | (On Diff #463552) | also below. |
No llvm:: in llvm/