hanchenye-llvm-project/llvm/lib
Dan Gohman 2a53b30f6d Remove the API for creating ConstantExprs with the nsw, nuw, inbounds,
and exact flags. Because ConstantExprs are uniqued, creating an
expression with this flag causes all expressions with the same operands
to have the same flag, which may not be safe. Add, sub, mul, and sdiv
ConstantExprs are usually folded anyway, so the main interesting flag
here is inbounds, and the constant folder already knows how to set the
inbounds flag automatically in most cases, so there isn't an urgent need
for the API support.

This can be reconsidered in the future, but for now just removing these
API bits eliminates a source of potential trouble with little downside.

llvm-svn: 80959
2009-09-03 22:17:40 +00:00
..
Analysis Remove the API for creating ConstantExprs with the nsw, nuw, inbounds, 2009-09-03 22:17:40 +00:00
Archive Prune #includes from llvm/Linker.h and llvm/System/Path.h, 2009-08-23 22:45:37 +00:00
AsmParser Refactor common code from ParseAssemblyString and ParseAssemblyFile, 2009-09-02 17:18:19 +00:00
Bitcode back out my recent commit (r80858), it seems to break self-hosting buildbot's stage 2 configure 2009-09-03 02:02:59 +00:00
CodeGen Create our own block initializer for kill fixups as the scheduling one wasn't doing the right thing. 2009-09-03 22:15:25 +00:00
CompilerDriver convert LoopInfo.h and GraphWriter.h to use raw_ostream 2009-08-23 07:19:13 +00:00
Debugger Prune #includes from llvm/Linker.h and llvm/System/Path.h, 2009-08-23 22:45:37 +00:00
ExecutionEngine Fix PR4845: r77946 completely broke x86_64 Darwin (or any situation where the 2009-09-02 00:19:03 +00:00
Linker There is not any need to copy metadata while merging modules. 2009-09-03 20:35:57 +00:00
MC fix MCSymbol printing to exactly match the normal mangler rules so 2009-09-03 05:57:47 +00:00
Support Show derived host triple in --version. 2009-09-02 23:52:38 +00:00
System Improve llvm::getHostTriple for some cases where the LLVM_HOSTTRIPLE is not 2009-09-03 01:10:13 +00:00
Target Calls clobber FPSCR. 2009-09-03 22:12:28 +00:00
Transforms Add a verifyAnalysis to LoopInfo, LoopSimplify, and LCSSA form that verify 2009-09-03 16:31:42 +00:00
VMCore Remove the API for creating ConstantExprs with the nsw, nuw, inbounds, 2009-09-03 22:17:40 +00:00
Makefile LLVMC doesn't need ENABLE_PIC to build now. 2009-07-04 03:54:54 +00:00