[clang] Document llvm options controlling pragma unroll
authorYaxun (Sam) Liu <yaxun.liu@amd.com>
Mon, 28 Jun 2021 15:19:43 +0000 (11:19 -0400)
committerYaxun (Sam) Liu <yaxun.liu@amd.com>
Mon, 12 Jul 2021 20:42:50 +0000 (16:42 -0400)
Reviewed by: Artem Belevich

Differential Revision: https://reviews.llvm.org/D105035

clang/docs/LanguageExtensions.rst

index d638121..f14f986 100644 (file)
@@ -3410,6 +3410,9 @@ to the same code size limit as with ``unroll(enable)``.
 
 Unrolling of a loop can be prevented by specifying ``unroll(disable)``.
 
+Loop unroll parameters can be controlled by options
+`-mllvm -unroll-count=n` and `-mllvm -pragma-unroll-threshold=n`.
+
 Loop Distribution
 -----------------