| commit | 1d156f2560f196d439bd2dccaf48723e6cf79639 | [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 | 4faa349432943a67ad3159fb18fe3b50cdaf222e | |
| parent | 56fdb6ae69fa3bd8b6878738afb7a371640b45fc [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. llvm-svn: 54640