Go to file
Jingyue Wu baabe5091c Canonicalize addrspacecast ConstExpr between different pointer types
As a follow-up to r210375 which canonicalizes addrspacecast
instructions, this patch canonicalizes addrspacecast constant
expressions.

Given clang uses ConstantExpr::getAddrSpaceCast to emit addrspacecast
cosntant expressions, this patch is also a step towards having the
frontend emit canonicalized addrspacecasts.

Piggyback a minor refactor in InstCombineCasts.cpp

Update three affected tests in addrspacecast-alias.ll,
access-non-generic.ll and constant-fold-gep.ll and added one new test in
constant-fold-address-space-pointer.ll

llvm-svn: 211004
2014-06-15 21:40:57 +00:00
clang test: add missed file in previous commit 2014-06-15 18:48:41 +00:00
clang-tools-extra Prefix error_code with std. 2014-06-12 22:08:48 +00:00
compiler-rt Fix building InstrProfilingFile.c on FreeBSD 2014-06-15 14:01:18 +00:00
debuginfo-tests relax testcase for LLDB output format compatibility. 2014-03-19 23:06:18 +00:00
libclc Add intptr types 2014-06-13 19:43:18 +00:00
libcxx Revert "fixes duplicate header installation" 2014-06-12 23:19:55 +00:00
libcxxabi Add a FAQ section, with a question about why the std::exception class destructors live in libc++abi 2014-06-11 16:54:09 +00:00
lld [Mips] Make gp-sym-2.test test case independent from external input files. 2014-06-15 12:04:40 +00:00
lldb Added several gdb-remote tests around QListThreadsInStopReply. 2014-06-14 22:00:36 +00:00
llvm Canonicalize addrspacecast ConstExpr between different pointer types 2014-06-15 21:40:57 +00:00
openmp CMake: remove duplicated source file from list 2014-06-02 13:09:24 +00:00
polly [Refactor] C++11 Memory access iterators in SCoP stmts 2014-06-13 18:01:45 +00:00