OSDN Git Service

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)
commit97a9fd0f0bb09e56451c58319dd4aacb71ba748c
tree6a524a8a3ade1c79a2bcc72dd409704506900174
parente4a9a482ae0b92e83efc96e4f95f7375574dff30
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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@261111 91177308-0d34-0410-b5e6-96231b3b80d8
docs/LangRef.rst