[NVPTX] Move getDivF32Level, usePrecSqrtF32, and useF32FTZ into out of DAGToDAG and...
authorJustin Lebar <jlebar@google.com>
Sat, 21 Jan 2017 01:00:14 +0000 (01:00 +0000)
committerJustin Lebar <jlebar@google.com>
Sat, 21 Jan 2017 01:00:14 +0000 (01:00 +0000)
commit077f8fb1689d24d0118248ca41447aea2cd0f6d9
tree8c3a40c06c5f6e899a35f9e53b8f265ff24bd203
parent8b18a347b6021cf5bea7b6f7c6fd0b8c42f26adb
[NVPTX] Move getDivF32Level, usePrecSqrtF32, and useF32FTZ into out of DAGToDAG and into TargetLowering.

Summary:
DADToDAG has access to TargetLowering, but not vice versa, so this is
the more general location for these functions.

NFC

Reviewers: tra

Subscribers: jholewinski, llvm-commits

Differential Revision: https://reviews.llvm.org/D28795

llvm-svn: 292693
llvm/lib/Target/NVPTX/NVPTXISelDAGToDAG.cpp
llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp
llvm/lib/Target/NVPTX/NVPTXISelLowering.h