[PATCH] D110029: [OpenMP][Offloading] Use bitset to indicate execution mode instead of value

Shilei Tian via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 21 09:10:53 PDT 2021


tianshilei1992 marked 2 inline comments as done.
tianshilei1992 added inline comments.


================
Comment at: llvm/include/llvm/Frontend/OpenMP/OMPConstants.h:134
+  SPMD = 0x2,
+};
+
----------------
jdoerfert wrote:
> If you copy the LLVM_MARK_AS_BITMASK_ENUM stuff you can actually use the enum class as bitmask w/o the static casts all the time.
> I'd also suggest to create the combinations here, so GenericSPMD = Generic | SPMD;.
That's very nice to know.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D110029



More information about the cfe-commits mailing list