Index: docs/LangRef.rst =================================================================== --- docs/LangRef.rst +++ docs/LangRef.rst @@ -622,6 +622,12 @@ Additionally, the global can placed in a comdat if the target has the necessary support. +External declarations may have an explicit section specified. When generating +LLVM IR, external declarations are ignored and the variables are emitted on +their first use. While sections are not generated in the object file +corresponding to the LLVM module, section information specified in the +declaration is retained in LLVM IR to enable OpenCL processes. + By default, global initializers are optimized by assuming that global variables defined within the module are not modified from their initial values before the start of the global initializer. This is