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 | e1433f24cf714c49b266e8cefdbbb8a464ffcb8e (patch) | |
| tree | 356042634b817c6a9c316a63f5c0af2f6e7a2b1f /docs | |
| parent | 27acd3a999ec3790e6af1d6416295caab5033320 (diff) | |
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')
| -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 86f1ee3b51..bec79f3711 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> |
