diff options
| author | Michael Platings <michael.platings@arm.com> | 2019-03-06 17:24:11 +0000 |
|---|---|---|
| committer | Michael Platings <michael.platings@arm.com> | 2019-03-06 17:24:11 +0000 |
| commit | 2391bfca97290181ae65796ea6da135d1b6d037b (patch) | |
| tree | c6d06bb3c64c5eddaf4aac60e06932443cd0ce99 /llvm/docs | |
| parent | 930007ba761badbcd7fe9abf20e3a36b696f98d6 (diff) | |
| download | bcm5719-llvm-2391bfca97290181ae65796ea6da135d1b6d037b.tar.gz bcm5719-llvm-2391bfca97290181ae65796ea6da135d1b6d037b.zip | |
[IR][ARM] Add function pointer alignment to datalayout
Use this feature to fix a bug on ARM where 4 byte alignment is
incorrectly assumed.
Differential Revision: https://reviews.llvm.org/D57335
llvm-svn: 355522
Diffstat (limited to 'llvm/docs')
| -rw-r--r-- | llvm/docs/LangRef.rst | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/docs/LangRef.rst b/llvm/docs/LangRef.rst index 86972acf6ad..261d1d47d20 100644 --- a/llvm/docs/LangRef.rst +++ b/llvm/docs/LangRef.rst @@ -2004,6 +2004,14 @@ as follows: targets. ``a:<abi>:<pref>`` This specifies the alignment for an object of aggregate type. +``F<type><abi>`` + This specifies the alignment for function pointers. + The options for ``<type>`` are: + + * ``i``: The alignment of function pointers is independent of the alignment + of functions, and is a multiple of ``<abi>``. + * ``n``: The alignment of function pointers is a multiple of the explicit + alignment specified on the function, and is a multiple of ``<abi>``. ``m:<mangling>`` If present, specifies that llvm names are mangled in the output. Symbols prefixed with the mangling escape character ``\01`` are passed through |

