summaryrefslogtreecommitdiff
path: root/docs/LangRef.html
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-06-13 03:05:47 +0000
committerChris Lattner <sabre@nondot.org>2006-06-13 03:05:47 +0000
commit81c01f0d2cab55e9bd2a723f1015e1cc06b314d2 (patch)
tree18a748875327e111537f9e94d1a8846fdc996408 /docs/LangRef.html
parente67304fb7880bd55d194d68b827c0eb2366c0a91 (diff)
downloadllvm-81c01f0d2cab55e9bd2a723f1015e1cc06b314d2.tar.gz
llvm-81c01f0d2cab55e9bd2a723f1015e1cc06b314d2.tar.bz2
llvm-81c01f0d2cab55e9bd2a723f1015e1cc06b314d2.tar.xz
Decribe the "implementation" keyword.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28762 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/LangRef.html')
-rw-r--r--docs/LangRef.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/LangRef.html b/docs/LangRef.html
index 0d19f0af02..6e339f6616 100644
--- a/docs/LangRef.html
+++ b/docs/LangRef.html
@@ -350,6 +350,9 @@ symbol table entries. Here is an example of the "hello world" module:</p>
<i>; External declaration of the puts function</i>
<a href="#functionstructure">declare</a> int %puts(sbyte*) <i>; int(sbyte*)* </i>
+<i>; Global variable / Function body section separator</i>
+implementation
+
<i>; Definition of main function</i>
int %main() { <i>; int()* </i>
<i>; Convert [13x sbyte]* to sbyte *...</i>
@@ -373,6 +376,13 @@ represented by a pointer to a memory location (in this case, a pointer to an
array of char, and a pointer to a function), and have one of the following <a
href="#linkage">linkage types</a>.</p>
+<p>Due to a limitation in the current LLVM assembly parser (it is limited by
+one-token lookahead), modules are split into two pieces by the "implementation"
+keyword. Global variable prototypes and definitions must occur before the
+keyword, and function definitions must occur after it. Function prototypes may
+occur either before or after it. In the future, the implementation keyword may
+become a noop, if the parser gets smarter.</p>
+
</div>
<!-- ======================================================================= -->