[llvm] [llvm][IR] Add per-global code model attribute (PR #72077)

via llvm-commits llvm-commits at lists.llvm.org
Sat Dec 2 01:53:35 PST 2023


================
@@ -701,6 +701,13 @@ information. Attaching section information to an external declaration is an
 assertion that its definition is located in the specified section. If the
 definition is located in a different section, the behavior is undefined.
 
+LLVM allows an explicit code model to be specified for globals. If the
+target supports it, it will emit globals in the code model specified,
+overriding the code model used to compile the translation unit.
+The allowed values are "tiny", ..., "large". This may be extended in
----------------
heiher wrote:

Thank you. It's done. :smiley: 

https://github.com/llvm/llvm-project/pull/72077


More information about the llvm-commits mailing list