Skip to content

Commit

Permalink
Document the -gen-inline option.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28646 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
Reid Spencer committed Jun 1, 2006
1 parent f977e7b commit 8f5591a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/CommandGuide/llvm2cpp.pod
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8f5591a

Please sign in to comment.