[PATCH] D28298: [OpenMP] Add fields for flags in the offload entry descriptor.

Samuel Antao via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 5 07:40:13 PST 2017


sfantao added inline comments.


================
Comment at: lib/CodeGen/CGOpenMPRuntime.h:250-252
+      // \brief Flags associated the device global.
+      int32_t Flags;
+
----------------
Hahnfeld wrote:
> sfantao wrote:
> > Hahnfeld wrote:
> > > Is that intentionally not in the `protected` section below?
> > Yes, we have a public getter/setter to interact with that, so no need to make it protected.  
> Hm, `Order` and `Kind` also have public getters and are currently never set from outside - will that be required in the future?
Good point, I guess those fields were being directly accessed by the child classes but now they are set through the constructor. I am privatizing the all three fields in the last diff as they don't need to be protected anymore.


https://reviews.llvm.org/D28298





More information about the cfe-commits mailing list