llvm/lib/Transforms/Utils
Chandler Carruth ece6c6bb63 Revert the series of commits starting with r166578 which introduced the
getIntPtrType support for multiple address spaces via a pointer type,
and also introduced a crasher bug in the constant folder reported in
PR14233.

These commits also contained several problems that should really be
addressed before they are re-committed. I have avoided reverting various
cleanups to the DataLayout APIs that are reasonable to have moving
forward in order to reduce the amount of churn, and minimize the number
of commits that were reverted. I've also manually updated merge
conflicts and manually arranged for the getIntPtrType function to stay
in DataLayout and to be defined in a plausible way after this revert.

Thanks to Duncan for working through this exact strategy with me, and
Nick Lewycky for tracking down the really annoying crasher this
triggered. (Test case to follow in its own commit.)

After discussing with Duncan extensively, and based on a note from
Micah, I'm going to continue to back out some more of the more
problematic patches in this series in order to ensure we go into the
LLVM 3.2 branch with a reasonable story here. I'll send a note to
llvmdev explaining what's going on and why.

Summary of reverted revisions:

r166634: Fix a compiler warning with an unused variable.
r166607: Add some cleanup to the DataLayout changes requested by
         Chandler.
r166596: Revert "Back out r166591, not sure why this made it through
         since I cancelled the command. Bleh, sorry about this!
r166591: Delete a directory that wasn't supposed to be checked in yet.
r166578: Add in support for getIntPtrType to get the pointer type based
         on the address space.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167221 91177308-0d34-0410-b5e6-96231b3b80d8
2012-11-01 08:07:29 +00:00
..
AddrModeMatcher.cpp Move TargetData to DataLayout. 2012-10-08 16:38:25 +00:00
BasicBlockUtils.cpp Move SplitBlockAndInsertIfThen to BasicBlockUtils. 2012-10-19 10:48:31 +00:00
BreakCriticalEdges.cpp Revert 'Fix a typo 'iff' => 'if''. iff is an abreviation of if and only if. See: http://en.wikipedia.org/wiki/If_and_only_if Commit 164767 2012-09-27 10:14:43 +00:00
BuildLibCalls.cpp Revert the series of commits starting with r166578 which introduced the 2012-11-01 08:07:29 +00:00
BypassSlowDivision.cpp This patch corrects commit 165126 by using an integer bit width instead of 2012-10-04 21:33:40 +00:00
CloneFunction.cpp Add an enum for the return and function indexes into the AttrListPtr object. This gets rid of some magic numbers. 2012-10-15 07:29:08 +00:00
CloneModule.cpp
CMakeLists.txt Implement new LibCallSimplifier class 2012-10-13 16:45:24 +00:00
CmpInstAnalysis.cpp
CodeExtractor.cpp Have 'addFnAttr' take the attribute enum value. Then have it build the attribute object and add it appropriately. No functionality change. 2012-10-10 03:12:49 +00:00
DemoteRegToStack.cpp
InlineFunction.cpp Move TargetData to DataLayout. 2012-10-08 16:38:25 +00:00
InstructionNamer.cpp
IntegerDivision.cpp Expansions for u/srem, using the udiv expansion. More unit tests for udiv and u/srem. 2012-09-26 01:55:01 +00:00
LCSSA.cpp LCSSA: Try to recover compile time regressions due to SCEV updates. 2012-10-31 16:30:03 +00:00
LLVMBuild.txt
Local.cpp Revert the series of commits starting with r166578 which introduced the 2012-11-01 08:07:29 +00:00
LoopSimplify.cpp LoopSimplify: Preserve DependenceAnalysis. 2012-10-26 17:40:50 +00:00
LoopUnroll.cpp
LoopUnrollRuntime.cpp
LowerExpectIntrinsic.cpp
LowerInvoke.cpp revert r166264 because the LTO build is still failing 2012-10-19 21:28:43 +00:00
LowerSwitch.cpp
Makefile
Mem2Reg.cpp
MetaRenamer.cpp Review feedback from Duncan Sands. Alphabetize includes and simplify 2012-09-14 19:19:57 +00:00
ModuleUtils.cpp
PromoteMemoryToRegister.cpp Fix typo. 2012-10-23 00:38:15 +00:00
SimplifyCFG.cpp Revert the series of commits starting with r166578 which introduced the 2012-11-01 08:07:29 +00:00
SimplifyIndVar.cpp Move TargetData to DataLayout. 2012-10-08 16:38:25 +00:00
SimplifyInstructions.cpp Move TargetData to DataLayout. 2012-10-08 16:38:25 +00:00
SimplifyLibCalls.cpp Revert the series of commits starting with r166578 which introduced the 2012-11-01 08:07:29 +00:00
SSAUpdater.cpp
UnifyFunctionExitNodes.cpp
Utils.cpp Add a pass that renames everything with metasyntatic names. This works well after using bugpoint to reduce the confusion presented by the original names, which no longer mean what they used to. 2012-09-11 02:46:18 +00:00
ValueMapper.cpp Rename virtual table anchors from Anchor() to anchor() for consistency with the rest of the tree. 2012-09-26 06:36:36 +00:00