commit | 1e7f7865ebd3b47c93dc8867abe5baae0df0ebce | [log] [tgz] |
---|---|---|
author | Duncan Sands <baldrick@free.fr> | Mon Aug 11 15:29:30 2008 +0000 |
committer | Duncan Sands <baldrick@free.fr> | Mon Aug 11 15:29:30 2008 +0000 |
tree | 18d49936ded27b2f43e5bdbe51527e399c844e28 | |
parent | 4630e4ddcf70d22e231a2f7f30774aecfe15c3a0 [diff] |
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