diff options
author | Gordon Henriksen <gordonhenriksen@mac.com> | 2007-12-25 02:31:26 +0000 |
---|---|---|
committer | Gordon Henriksen <gordonhenriksen@mac.com> | 2007-12-25 02:31:26 +0000 |
commit | 4039354eb4eeb59b910ca051497a8799aa3a2456 (patch) | |
tree | 356042634b817c6a9c316a63f5c0af2f6e7a2b1f /docs/LangRef.html | |
parent | 247902aa9c071c5d62e83f4177ad74a742f3fe48 (diff) | |
download | external_llvm-4039354eb4eeb59b910ca051497a8799aa3a2456.zip external_llvm-4039354eb4eeb59b910ca051497a8799aa3a2456.tar.gz external_llvm-4039354eb4eeb59b910ca051497a8799aa3a2456.tar.bz2 |
Noting and enforcing that GC intrinsics are valid only within a
function with GC.
This will catch the error when the inliner inlines a function with
GC into a caller with no GC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45350 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/LangRef.html')
-rw-r--r-- | docs/LangRef.html | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/docs/LangRef.html b/docs/LangRef.html index 86f1ee3..bec79f3 100644 --- a/docs/LangRef.html +++ b/docs/LangRef.html @@ -3995,8 +3995,9 @@ value address) contains the meta-data to be associated with the root.</p> <p>At runtime, a call to this intrinsics stores a null pointer into the "ptrloc" location. At compile-time, the code generator generates information to allow -the runtime to find the pointer at GC safe points. -</p> +the runtime to find the pointer at GC safe points. The '<tt>llvm.gcroot</tt>' +intrinsic may only be used in a function which <a href="#gc">specifies a GC +algorithm</a>.</p> </div> @@ -4031,7 +4032,9 @@ null).</p> <p>The '<tt>llvm.gcread</tt>' intrinsic has the same semantics as a load instruction, but may be replaced with substantially more complex code by the -garbage collector runtime, as needed.</p> +garbage collector runtime, as needed. The '<tt>llvm.gcread</tt>' intrinsic +may only be used in a function which <a href="#gc">specifies a GC +algorithm</a>.</p> </div> @@ -4066,7 +4069,9 @@ null.</p> <p>The '<tt>llvm.gcwrite</tt>' intrinsic has the same semantics as a store instruction, but may be replaced with substantially more complex code by the -garbage collector runtime, as needed.</p> +garbage collector runtime, as needed. The '<tt>llvm.gcwrite</tt>' intrinsic +may only be used in a function which <a href="#gc">specifies a GC +algorithm</a>.</p> </div> |