summaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
diff options
context:
space:
mode:
authorAlexey Bader <alexey.bader@intel.com>2022-10-18 04:42:21 -0700
committerAlexey Bader <alexey.bader@intel.com>2022-10-19 03:50:47 -0700
commit66bd6074c133402e45075b591c062c22f308ef26 (patch)
tree537a7993f930515af5588970e2251a5feb39bf75 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
parentd261aa88f89332fbe9b1ee688ed5b75ae7414aff (diff)
[Attr][Doc] Fix pragma unroll documentation.
There is a contradiction in the #pragma unroll behavior documentation. It says that specifying `#pragma unroll` without a parameter directs the loop unroller to attempt to partially unroll the loop if the trip count is not known at compile time. At the same time later it states that `#pragma unroll` has identical semantics to `#pragma clang loop unroll(full)`, which doesn't attempt to unroll partially if the trip count is not known at compile time. pragma clang loop unroll(enable): If unroll(enable) is specified the unroller will attempt to fully unroll the loop if the trip count is known at compile time. If the fully unrolled code size is greater than an internal limit the loop will be partially unrolled up to this limit. If the trip count is not known at compile time the loop will be partially unrolled with a heuristically chosen unroll factor. pragma clang loop unroll(full): If unroll(full) is specified the unroller will attempt to fully unroll the loop if the trip count is known at compile time identically to unroll(enable). However, with unroll(full) the loop will not be unrolled if the loop count is not known at compile time. Differential Revision: https://reviews.llvm.org/D136160
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions