[PATCH] D14945: Expose isXxxConstant() functions from TargetLowering base class (NFC)

A. Skrobov via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 24 04:03:34 PST 2015


tyomitch created this revision.
tyomitch added reviewers: MatzeB, andreadb.
tyomitch added a subscriber: llvm-commits.
Herald added a reviewer: tstellarAMD.
Herald added subscribers: jyknight, arsenm.

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

http://reviews.llvm.org/D14945

Files:
  include/llvm/Target/TargetLowering.h
  lib/CodeGen/SelectionDAG/DAGCombiner.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
  lib/Target/X86/X86ISelLowering.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D14945.41021.patch
Type: text/x-patch
Size: 38163 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151124/57aa24b0/attachment.bin>


More information about the llvm-commits mailing list