[PATCH] D80222: Replace Clang's createRuntimeFunction with the definitions in OMPKinds.def

Fady Ghanim via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu May 21 22:45:54 PDT 2020


fghanim added inline comments.


================
Comment at: llvm/include/llvm/Frontend/OpenMP/OMPKinds.def:244
 
-// TODO: Replace this with the real size_t type
-#define __OMP_SIZE_TYPE(NAME) OMP_TYPE(NAME, Type::getInt64Ty(Ctx))
+#define __OMP_SIZE_TYPE(NAME) OMP_TYPE(NAME, M.getDataLayout().getIntPtrType(Ctx))
 __OMP_SIZE_TYPE(SizeTy)
----------------
jdoerfert wrote:
> jhuber6 wrote:
> > I'm just directly getting the SizeTy from the Module, I'm not sure if this is a permanent solution.
> I actually think this is fine. Less burden on the frontends also. @fghanim looks good?
Agreed. But to avoid conflict with patch D79675, let this change go in a separate patch after that. This way, we can also do some clean ups related to this, and add `Int8PtrPtr`, `Int8PtrPtrPtr`, and any other typing issues, without delaying patch D79675 any further - I am done with that patch, and made my final changes a couple of days ago.

Nit: Also, I saw below that some formatting was done. Wouldn't it be better if formatting/comments related to changes in D79739, are handled as part of that patch?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D80222/new/

https://reviews.llvm.org/D80222





More information about the cfe-commits mailing list