[Docs] Clarify that FunctionPasses can't add/remove declarations
authorArthur Eubanks <aeubanks@google.com>
Wed, 21 Oct 2020 15:55:50 +0000 (08:55 -0700)
committerArthur Eubanks <aeubanks@google.com>
Thu, 22 Oct 2020 16:03:42 +0000 (09:03 -0700)
commit710676cf3a3c6f6ddf2f18e24cac017d20dac1ff
tree30b65de01930db859bff2b5bd19191a73096ae6f
parentefe62b637d51f6d622589132075320dd4f687478
[Docs] Clarify that FunctionPasses can't add/remove declarations

In preparation for potential future concurrency, a FunctionPass
shouldn't modify anything at the module level that other FunctionPasses
can also modify.

Reviewed By: asbirlea

Differential Revision: https://reviews.llvm.org/D89890
llvm/docs/WritingAnLLVMPass.rst