[docs] [NFC] Clarify the datalayout documentation
authorWilliam Woodruff <william@yossarian.net>
Tue, 12 Oct 2021 17:47:10 +0000 (23:17 +0530)
committerShivam Gupta <shivam98.tkg@gmail.com>
Tue, 12 Oct 2021 17:51:48 +0000 (23:21 +0530)
commit86a4a93a1c444f297c2dd92815b4bf9093dfde8e
tree2e14f9f8facad5831c71b9bac9b8f346e9c99aa6
parentbdf6ba2d30a01f3b01d499558a0753a3e9c4b019
[docs] [NFC] Clarify the datalayout documentation

This patch fixes a couple of small oversights in the documentation for
the datalayout specification:

* The v and f specifications are subject to the same constraints on <size>
as i is.
* The p[n] specification didn't mark <idx> as optional, despite
being documented and parsed as such.
* Similarly, none of the alignment specifications require <pref>.
llvm/docs/LangRef.rst