From a5eaa861e48641916dc40a9be8ade17842ac8d07 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Sat, 15 Jan 2011 08:20:57 +0000 Subject: [PATCH] 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 --- docs/LangRef.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/LangRef.html b/docs/LangRef.html index 2121fc67408..5a53c9aed4e 100644 --- a/docs/LangRef.html +++ b/docs/LangRef.html @@ -848,7 +848,10 @@ define i32 @main() { ; i32()*  

Global variables can be marked with unnamed_addr which indicates that the address is not significant, only the content. Constants marked - like this can be merged if they have the same content.

+ like this can be merged with other constants if they have the same + initializer. Note that a constant with significant address can + be merged with a unnamed_addr constant, the result being a + constant whose address is significant.

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