summaryrefslogtreecommitdiffstats
path: root/llvm/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
commite53b4ca08928e66bed920d0130e52a6e84e22e1a (patch)
tree87baa17ee78b4a6a325d9032f69c562a3700efed /llvm/docs/CommandGuide
parentb83051a28f0d726f65e97fe331bbd2e91fe00432 (diff)
downloadbcm5719-llvm-e53b4ca08928e66bed920d0130e52a6e84e22e1a.tar.gz
bcm5719-llvm-e53b4ca08928e66bed920d0130e52a6e84e22e1a.zip
Document the -gen-inline option.
llvm-svn: 28646
Diffstat (limited to 'llvm/docs/CommandGuide')
-rw-r--r--llvm/docs/CommandGuide/llvm2cpp.pod11
1 files changed, 11 insertions, 0 deletions
diff --git a/llvm/docs/CommandGuide/llvm2cpp.pod b/llvm/docs/CommandGuide/llvm2cpp.pod
index 9d8059da404..ecdf7983607 100644
--- a/llvm/docs/CommandGuide/llvm2cpp.pod
+++ b/llvm/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
OpenPOWER on IntegriCloud