summaryrefslogtreecommitdiff
path: root/docs/CommandGuide
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2006-06-01 23:46:30 +0000
committerReid Spencer <rspencer@reidspencer.com>2006-06-01 23:46:30 +0000
commit8f5591a6eb3ccfdd02f00f4669a1f11f396c5f84 (patch)
tree154586b4ee71d9c59f3c284774dbe5f29b4fb23d /docs/CommandGuide
parentf977e7bc834449a3658862862a2206b066b01af5 (diff)
downloadllvm-8f5591a6eb3ccfdd02f00f4669a1f11f396c5f84.tar.gz
llvm-8f5591a6eb3ccfdd02f00f4669a1f11f396c5f84.tar.bz2
llvm-8f5591a6eb3ccfdd02f00f4669a1f11f396c5f84.tar.xz
Document the -gen-inline option.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28646 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/CommandGuide')
-rw-r--r--docs/CommandGuide/llvm2cpp.pod11
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/CommandGuide/llvm2cpp.pod b/docs/CommandGuide/llvm2cpp.pod
index 9d8059da40..ecdf798360 100644
--- a/docs/CommandGuide/llvm2cpp.pod
+++ b/docs/CommandGuide/llvm2cpp.pod
@@ -137,6 +137,17 @@ The value of the option must be the name of a function in the input module for
which code should be generated. If the named function does not exist an error
will be produced.
+=item B<-gen-inline>
+
+This option is very analagous to B<-gen-function> except that the generated
+function will not re-produce the target function's definition. Instead, the body
+of the target function is inserted into some other function passed as an
+argument to the generated function. Similarly any arguments to the function must
+be passed to the generated function. The result of the generated function is the
+first basic block of the target function.
+
+The B<-for> option works the same way as it does for B<-gen-function>.
+
=item B<-gen-variable>
Specify that the output should be a function that produces the definitions