[PATCH] D60568: [OpenMP] Add support for registering requires directives with the runtime
Alexandre Eichenberger via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Apr 12 06:17:21 PDT 2019
AlexEichenberger requested changes to this revision.
AlexEichenberger added a comment.
This revision now requires changes to proceed.
see note above; apologies if it is already done and hiding somewhere I did not see
================
Comment at: lib/CodeGen/CGOpenMPRuntime.h:641
+ /// directive is present.
+ bool HasRequiresUnifiedSharedMemory = false;
+
----------------
Don't you need a bool for each characteristics? Your intention is to have one bit vector for each characteristics that matter to the compiler?
Also, it is my belief that you need to record 2 states:
unmaterialized (meaning I have not processed any target yet, so I should record any requires as they arrive)
finalized (I am processing a target, so the state is now fixed)
you need this in case you have an input like this:
declare target
int x
end declare target
requires unified memory
which is illegal
Repository:
rC Clang
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D60568/new/
https://reviews.llvm.org/D60568
More information about the cfe-commits
mailing list