Make it possible to use different constant
authorDuncan Sands <baldrick@free.fr>
Mon, 11 Aug 2008 15:29:30 +0000 (15:29 +0000)
committerDuncan Sands <baldrick@free.fr>
Mon, 11 Aug 2008 15:29:30 +0000 (15:29 +0000)
commit1e7f7865ebd3b47c93dc8867abe5baae0df0ebce
tree18d49936ded27b2f43e5bdbe51527e399c844e28
parent4630e4ddcf70d22e231a2f7f30774aecfe15c3a0
Make it possible to use different constant
folding policies with IRBuilder.  The default,
provided by ConstantFolder, is to do minimal
folding like now: what ConstantExpr provides.
An alternative is to use TargetFolder, which
uses target information to fold constants more.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54640 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/ConstantFolder.h [new file with mode: 0644]
include/llvm/Support/IRBuilder.h
include/llvm/Support/TargetFolder.h [new file with mode: 0644]