Expose isXxxConstant() functions from SelectionDAGNodes.h (NFC)
authorArtyom Skrobov <Artyom.Skrobov@arm.com>
Wed, 25 Nov 2015 19:41:11 +0000 (19:41 +0000)
committerArtyom Skrobov <Artyom.Skrobov@arm.com>
Wed, 25 Nov 2015 19:41:11 +0000 (19:41 +0000)
commit824e14ddab883edf9af866352bfe6b34577f2e2d
tree9e9b2756312a9b792bb3c0ad3ebbd0ed01476d34
parentfe3415b2af46d76f92ef21c345b07defa763dba8
Expose isXxxConstant() functions from SelectionDAGNodes.h (NFC)

Summary:
Many target lowerings copy-paste the code to test SDValues for known constants.
This code can instead be shared in SelectionDAG.cpp, and reused in the targets.

Reviewers: MatzeB, andreadb, tstellarAMD

Subscribers: arsenm, jyknight, llvm-commits

Differential Revision: http://reviews.llvm.org/D14945

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254085 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/SelectionDAGNodes.h
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
lib/CodeGen/SelectionDAG/SelectionDAG.cpp
lib/Target/AArch64/AArch64ISelLowering.cpp
lib/Target/AMDGPU/AMDGPUISelLowering.cpp
lib/Target/ARM/ARMISelLowering.cpp
lib/Target/PowerPC/PPCISelLowering.cpp
lib/Target/Sparc/SparcISelLowering.cpp
lib/Target/X86/X86ISelLowering.cpp