|  | Commit message (Collapse) | Author | Age | Files | Lines | 
|---|
| | 
| 
| 
| | llvm-svn: 135483 | 
| | 
| 
| 
| | llvm-svn: 135375 | 
| | 
| 
| 
| | llvm-svn: 135040 | 
| | 
| 
| 
| 
| 
| 
| | static_cast from Constant* to Value* has to adjust the "this" pointer.
This is groundwork for PR889.
llvm-svn: 123435 | 
| | 
| 
| 
| | llvm-svn: 95001 | 
| | 
| 
| 
| 
| 
| 
| | folder removes a lot of const_casting and requires no changes to clang or
llvm-gcc.
llvm-svn: 82349 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| | how to fold notionally-out-of-bounds array getelementptr indices instead
of just doing these in lib/Analysis/ConstantFolding.cpp, because it can
be done in a fairly general way without TargetData, and because not all
constants are visited by lib/Analysis/ConstantFolding.cpp. This enables
more constant folding.
Also, set the "inbounds" flag when the getelementptr indices are
one-past-the-end.
llvm-svn: 81483 | 
| | 
| 
| 
| | llvm-svn: 78690 | 
| | 
| 
| 
| 
| 
| 
| 
| | header, to make LLVMContextImpl.h
not hideous.  Also, fix some MSVC compile errors.
llvm-svn: 78115 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| | Constants.cpp and ConstantFold.cpp.
This involves temporarily hard wiring some parts to use the global context.  This isn't ideal, but it's
the only way I could figure out to make this process vaguely incremental.
llvm-svn: 75445 | 
| | 
| 
| 
| | llvm-svn: 73802 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| | The constant creation
gets involved, and we end up trying to recursively acquire a writer lock.  The fix for this is slightly horrible,
and involves passing a boolean "locked" parameter around in Constants.cpp, but it's better than having locked and
unlocked versions of most of the code.
llvm-svn: 73790 | 
| | 
| 
| 
| | llvm-svn: 54266 | 
| | 
| 
| 
| | llvm-svn: 51889 | 
| | 
| 
| 
| 
| 
| | moving toward making structs and arrays first-class types.
llvm-svn: 51157 | 
| | 
| 
| 
| | llvm-svn: 45418 | 
| | 
| 
| 
| | llvm-svn: 43232 | 
| | 
| 
| 
| 
| 
| | GLIBCXX_DEBUG issues.
llvm-svn: 41697 | 
|  | lib/Analysis/ConstantFolding.
llvm-svn: 34653 |