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
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Initial feedback, mostly style.
llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h | ||
---|---|---|
1026 ↗ | (On Diff #462975) | No llvm:: in llvm/ |
1044 ↗ | (On Diff #462975) | Seems unused. If needed in can live in Clang. |
1053–1059 ↗ | (On Diff #462975) | RTArgs = TargetDataRTArgs()? |
llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp | ||
3997–4001 ↗ | (On Diff #462975) | These types should exist but I guess this is OK. |
4002 ↗ | (On Diff #462975) | Flip the cases, simple first, then exit. |
4026 ↗ | (On Diff #462975) | !EmitDebug |
Comment Actions
Updated the code for everthing except for type creation, which will be fixed shortly.
llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h | ||
---|---|---|
1044 ↗ | (On Diff #462975) | Yes, this is dead code I forgot to remove. |
1053–1059 ↗ | (On Diff #462975) | Yes, much better. |
llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp | ||
3997–4001 ↗ | (On Diff #462975) | It can be compressed by using PointerType *VoidPtrType = Type::getInt8PtrTy(C); I will also fix this, but in the next patch update. |
4002 ↗ | (On Diff #462975) | Did an early return. |
4026 ↗ | (On Diff #462975) | Test and call site were both swapped, fixed both. |
llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp | ||
---|---|---|
3997–4001 ↗ | (On Diff #462975) | Did minor cleanup. |
Move to the bool.