[PATCH] D82193: [OpenMPOpt] ICV macro definitions

Stefan Stipanovic via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 26 09:17:28 PDT 2020


sstefan1 marked an inline comment as done.
sstefan1 added inline comments.


================
Comment at: llvm/include/llvm/Frontend/OpenMP/OMPKinds.def:327
+__ICV_DATA_ENV(active_levels, NONE, ZERO)
+__ICV_DATA_ENV(cancel, OMP_CANCELLATION, FALSE)
+__ICV_DATA_ENV(__last, last, LAST)
----------------
jdoerfert wrote:
> daltenty wrote:
> > sstefan1 wrote:
> > > fhahn wrote:
> > > > Is it possible to use a different name than `FALSE` here, because it will fail to compile if the system headers contain a `FALSE` define? Maybe something like `ICV_FALSE` to avoid conflicts.
> > > Sure! I hope we will move away from macro magic soon anyway.
> > > 
> > > @jdoerfert sounds good?
> > We currently have exactly such a build break from this change on AIX due to the system headers defining `FALSE`
> `ICV_..` for all of them seems sensible. Thanks for catching this!
Sorry about that. Should be fixed with rG951e43f357ec3ee0ffc570aea9cbf19871696c42


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D82193





More information about the llvm-commits mailing list