Skip to content

[LangRef] Add description of toc-data global variables #94828

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from

Conversation

bzEq
Copy link
Collaborator

@bzEq bzEq commented Jun 8, 2024

Add description of toc-data global variable in LLVM Language Reference.

Addressed comment in #94593 (review).

@llvmbot
Copy link
Member

llvmbot commented Jun 8, 2024

@llvm/pr-subscribers-llvm-ir

Author: Kai Luo (bzEq)

Changes

Add description of toc-data global variable in LLVM Language Reference.

Addressed comment in #94593 (review).


Full diff: https://github.com/llvm/llvm-project/pull/94828.diff

1 Files Affected:

  • (modified) llvm/docs/LangRef.rst (+3)
diff --git a/llvm/docs/LangRef.rst b/llvm/docs/LangRef.rst
index 9fb2c048a5c86..093f9e4c62086 100644
--- a/llvm/docs/LangRef.rst
+++ b/llvm/docs/LangRef.rst
@@ -812,6 +812,9 @@ doesn't). These kinds of structs (we may call them homogeneous scalable vector
 structs) are considered sized and can be used in loads, stores, allocas, but
 not GEPs.
 
+Globals with ``toc-data`` attribute set are stored in TOC of XCOFF. Their
+alignments are the same as that of a TOC entry.
+
 Syntax::
 
       @<GlobalVarName> = [Linkage] [PreemptionSpecifier] [Visibility]

@bzEq bzEq closed this Jun 8, 2024
@bzEq bzEq deleted the tocdata-doc branch July 27, 2024 06:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants