Update langref to indicate that calls may be convergent.
authorJustin Lebar <jlebar@google.com>
Wed, 17 Feb 2016 17:46:41 +0000 (17:46 +0000)
committerJustin Lebar <jlebar@google.com>
Wed, 17 Feb 2016 17:46:41 +0000 (17:46 +0000)
commit58535b16f6ce8865de4f2a56fe1b650603274423
tree8f53a097f9be6bdbc571c49b0bfba6e88f5a89eb
parentb2e8020948c0025c85b681b71102950ffd33b39e
Update langref to indicate that calls may be convergent.

Summary:
As previously written, only functions could be convergent.  But calls
need to have a notion of convergence as well.

To see why this is important, consider an indirect call.  We may or may
not want to disable optimizations around it and behave as though we're
calling a convergent function -- it depends on the semantics of the
language we're compiling.  Thus the need for this attr on the call.

Reviewers: jingyue, joker.eph

Subscribers: llvm-commits, tra, jhen, arsenm, chandlerc, hfinkel, resistor

Differential Revision: http://reviews.llvm.org/D17314

llvm-svn: 261111
llvm/docs/LangRef.rst