[PATCH] D69952: [OPENMP50]Generalize handling of context matching/scoring.

Alexey Bataev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 7 12:13:26 PST 2019


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


================
Comment at: clang/include/clang/Basic/OpenMPKinds.h:56
+                                 OpenMPContextSelectorKind Ctx, const U &Names)
+      : CtxSet(CtxSet), Ctx(Ctx), Names(Names.begin(), Names.end()) {}
+};
----------------
ABataev wrote:
> jdoerfert wrote:
> > ABataev wrote:
> > > jdoerfert wrote:
> > > > Why do you need a second template version here?
> > > To construct the object when the container Names cannot be created dieectly using the first constructor (SmallVector and UniqueVector are not quite compatible in this sence, for example)
> > That can be addressed by changing the first constructor. Why is it an xvalue there and why is the container not const?
> In short, to avoid some extra memory allocation/deallocation. I can make the container const, ok.
Tried to make it `const`, it breaks a lot of code and almost impossible to fix


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D69952





More information about the cfe-commits mailing list