Go to file
Yaxun Liu 5d977f8ed4 CodeGen: Let frame index value type match alloca addr space
Recently alloca address space has been added to data layout. Due to this
change, pointer returned by alloca may have different size as pointer in
address space 0.

However, currently the value type of frame index is assumed to be of the
same size as pointer in address space 0.

This patch fixes that.

Most targets assume alloca returning pointer in address space 0, which
is the default alloca address space. Therefore it is NFC for them.

AMDGCN target with amdgiz environment requires this change since it
assumes alloca returning pointer to addr space 5 and its size is 32,
which is different from the size of pointer in addr space 0 which is 64.

Differential Revision: https://reviews.llvm.org/D32021

llvm-svn: 300864
2017-04-20 18:15:34 +00:00
clang Don't pass FPOpFusion::Strict to the backend 2017-04-20 17:09:35 +00:00
clang-tools-extra [clang-tidy] misc-misplaced-widening-cast: Disable checking of implicit widening casts by default. 2017-04-19 14:55:58 +00:00
compiler-rt [scudo] Remove GetActuallyAllocatedSize calls from the fast path 2017-04-20 18:07:17 +00:00
debuginfo-tests Add additional CHECKs to safestack.c. 2017-04-17 17:57:05 +00:00
libclc math: Implement sinh function 2017-02-25 02:46:53 +00:00
libcxx Disable the filesystem library on Windows by default 2017-04-20 04:24:29 +00:00
libcxxabi [CMake][libcxxabi] Fix the -target and -gcc-toolchain flag handling 2017-04-16 06:08:34 +00:00
libunwind [CMake][libunwind] Fix the -target and -gcc-toolchain flag handling 2017-04-16 06:08:44 +00:00
lld [ELF] Always use Script::assignAddresses() 2017-04-19 12:46:32 +00:00
lldb Changed a use of APInt::getSignBit to APInt::getSignMask. 2017-04-20 18:07:51 +00:00
llgo benchcomp: Add a mode for analyzing file sizes. 2017-04-03 19:13:12 +00:00
llvm CodeGen: Let frame index value type match alloca addr space 2017-04-20 18:15:34 +00:00
openmp Fix crash in invoking microtask on ios arm64. 2017-04-17 11:58:20 +00:00
parallel-libs [Axccel] Remove -Wno-missing-braces in build 2016-12-19 21:34:07 +00:00
polly Update isl bindings to latest version (+ Polly extensions) 2017-04-15 08:15:54 +00:00