mirror of
https://github.com/llvm/llvm-project.git
synced 2025-05-02 14:26:08 +00:00
Document our extension to constant-fold __builtin_strlen and strlen
llvm-svn: 113699
This commit is contained in:
parent
250ab1dc0e
commit
c6876fe121
@ -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>
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user