mirror of
https://github.com/intel/llvm.git
synced 2026-01-22 07:01:03 +08:00
Document our extension to constant-fold __builtin_strlen and strlen
llvm-svn: 113699
This commit is contained in:
@@ -1682,6 +1682,7 @@ interacts with constant evaluation:</p>
|
||||
floating-point literal.</li>
|
||||
<li><b><tt>__builtin_abs,copysign,..</tt></b>: These are constant folded as
|
||||
general constant expressions.</li>
|
||||
<li><b><tt>__builtin_strlen</tt></b> and <b><tt>strlen</tt></b>: These are constant folded as integer constant expressions if the argument is a string literal.</li>
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user