[IR][ARM] Add function pointer alignment to datalayout
authorMichael Platings <michael.platings@arm.com>
Thu, 7 Mar 2019 09:15:23 +0000 (09:15 +0000)
committerMichael Platings <michael.platings@arm.com>
Thu, 7 Mar 2019 09:15:23 +0000 (09:15 +0000)
commitfd4156ed4d30828fbcca7b42618dde0550c9b674
treefdc8b02c65f61b60fcdd2b7702a1e77badce6b9a
parentb0f764c73732958745f13e5310131d0e7c3fa400
[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: 355585
13 files changed:
clang/lib/Basic/Targets/ARM.cpp
clang/test/CodeGen/armv7k-abi.c
clang/test/CodeGen/target-data.c
llvm/docs/LangRef.rst
llvm/include/llvm/IR/DataLayout.h
llvm/lib/IR/ConstantFold.cpp
llvm/lib/IR/DataLayout.cpp
llvm/lib/IR/Value.cpp
llvm/lib/Target/ARM/ARMTargetMachine.cpp
llvm/unittests/IR/CMakeLists.txt
llvm/unittests/IR/ConstantsTest.cpp
llvm/unittests/IR/DataLayoutTest.cpp [new file with mode: 0644]
llvm/unittests/IR/FunctionTest.cpp