mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-28 14:10:41 +00:00
Add a clarification about merging constants with and without unnamed_addr.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123530 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ba7c38c36a
commit
a5eaa861e4
@ -848,7 +848,10 @@ define i32 @main() { <i>; i32()* </i>
|
||||
|
||||
<p>Global variables can be marked with <tt>unnamed_addr</tt> which indicates
|
||||
that the address is not significant, only the content. Constants marked
|
||||
like this can be merged if they have the same content.</p>
|
||||
like this can be merged with other constants if they have the same
|
||||
initializer. Note that a constant with significant address <em>can</em>
|
||||
be merged with a <tt>unnamed_addr</tt> constant, the result being a
|
||||
constant whose address is significant.</p>
|
||||
|
||||
<p>A global variable may be declared to reside in a target-specific numbered
|
||||
address space. For targets that support them, address spaces may affect how
|
||||
|
Loading…
Reference in New Issue
Block a user