aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/TargetRecip.cpp
AgeCommit message (Collapse)AuthorFilesLines
2016-06-17Avoid duplicated map lookups. No functionality change intended.Benjamin Kramer1-2/+3
llvm-svn: 273030
2016-04-18[NFC] Header cleanupMehdi Amini1-3/+2
Removed some unused headers, replaced some headers with forward class declarations. Found using simple scripts like this one: clear && ack --cpp -l '#include "llvm/ADT/IndexedMap.h"' | xargs grep -L 'IndexedMap[<]' | xargs grep -n --color=auto 'IndexedMap' Patch by Eugene Kosov <claprix@yandex.ru> Differential Revision: http://reviews.llvm.org/D19219 From: Mehdi Amini <mehdi.amini@apple.com> llvm-svn: 266595
2015-10-18Make a bunch of static arrays const.Craig Topper1-1/+1
llvm-svn: 250642
2015-09-21Don't pass StringRefs around by const reference. Pass by value instead per ↵Craig Topper1-5/+5
coding standards. NFC llvm-svn: 248136
2015-06-04make reciprocal estimate code generation more flexible by adding ↵Sanjay Patel1-0/+225
command-line options (3rd try) The first try (r238051) to land this was reverted due to ExecutionEngine build failure; that was hopefully addressed by r238788. The second try (r238842) to land this was reverted due to BUILD_SHARED_LIBS failure; that was hopefully addressed by r238953. This patch adds a TargetRecip class for processing many recip codegen possibilities. The class is intended to handle both command-line options to llc as well as options passed in from a front-end such as clang with the -mrecip option. The x86 backend is updated to use the new functionality. Only -mcpu=btver2 with -ffast-math should see a functional change from this patch. All other x86 CPUs continue to *not* use reciprocal estimates by default with -ffast-math. Differential Revision: http://reviews.llvm.org/D8982 llvm-svn: 239001
2015-06-03Revert "make reciprocal estimate code generation more flexible by adding ↵Rafael Espindola1-225/+0
command-line options (2nd try)" This reverts commit r238842. It broke -DBUILD_SHARED_LIBS=ON build. llvm-svn: 238900
2015-06-02make reciprocal estimate code generation more flexible by adding ↵Sanjay Patel1-0/+225
command-line options (2nd try) The first try (r238051) to land this was reverted due to bot failures that were hopefully addressed by r238788. This patch adds a TargetRecip class for processing many recip codegen possibilities. The class is intended to handle both command-line options to llc as well as options passed in from a front-end such as clang with the -mrecip option. The x86 backend is updated to use the new functionality. Only -mcpu=btver2 with -ffast-math should see a functional change from this patch. All other x86 CPUs continue to *not* use reciprocal estimates by default with -ffast-math. Differential Revision: http://reviews.llvm.org/D8982 llvm-svn: 238842
2015-05-23Revert "make reciprocal estimate code generation more flexible by adding ↵Rafael Espindola1-225/+0
command-line options" This reverts commit r238051. It broke some bots: http://lab.llvm.org:8011/builders/llvm-ppc64-linux1/builds/18190 llvm-svn: 238075
2015-05-22make reciprocal estimate code generation more flexible by adding ↵Sanjay Patel1-0/+225
command-line options This patch adds a class for processing many recip codegen possibilities. The TargetRecip class is intended to handle both command-line options to llc as well as options passed in from a front-end such as clang with the -mrecip option. The x86 backend is updated to use the new functionality. Only -mcpu=btver2 with -ffast-math should see a functional change from this patch. All other CPUs continue to *not* use reciprocal estimates by default with -ffast-math. Differential Revision: http://reviews.llvm.org/D8982 llvm-svn: 238051