aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Object/ELFObjectFileTest.cpp
diff options
context:
space:
mode:
authorJohannes Doerfert <johannes@jdoerfert.de>2020-11-23 11:48:59 -0600
committerJohannes Doerfert <johannes@jdoerfert.de>2020-12-15 16:51:34 -0600
commita5a14cbe7f87e01882ecaa14df5d596cbf38823a (patch)
treec40f2646a054c8dc3820fce1ec4c6a57fa9cad07 /llvm/unittests/Object/ELFObjectFileTest.cpp
parentdcaec81211be973364cf7830a3db63781e15a474 (diff)
downloadllvm-a5a14cbe7f87e01882ecaa14df5d596cbf38823a.zip
llvm-a5a14cbe7f87e01882ecaa14df5d596cbf38823a.tar.gz
llvm-a5a14cbe7f87e01882ecaa14df5d596cbf38823a.tar.bz2
[OpenMP] Add initial support for `omp [begin/end] assumes`
The `assumes` directive is an OpenMP 5.1 feature that allows the user to provide assumptions to the optimizer. Assumptions can refer to directives (`absent` and `contains` clauses), expressions (`holds` clause), or generic properties (`no_openmp_routines`, `ext_ABCD`, ...). The `assumes` spelling is used for assumptions in the global scope while `assume` is used for executable contexts with an associated structured block. This patch only implements the global spellings. While clauses with arguments are "accepted" by the parser, they will simply be ignored for now. The implementation lowers the assumptions directly to the `AssumptionAttr`. Reviewed By: ABataev Differential Revision: https://reviews.llvm.org/D91980
Diffstat (limited to 'llvm/unittests/Object/ELFObjectFileTest.cpp')
0 files changed, 0 insertions, 0 deletions