[Constants] extend getBinOpIdentity(); NFC
authorSanjay Patel <spatel@rotateright.com>
Fri, 6 Jul 2018 15:18:58 +0000 (15:18 +0000)
committerSanjay Patel <spatel@rotateright.com>
Fri, 6 Jul 2018 15:18:58 +0000 (15:18 +0000)
commite85a300a77cf66921e949a4cf595eba52c637198
tree3ccb66d2cf11293d89f6e366734c0505fc88613b
parent475dc9690182eaf94dccf631632964180fdbb343
[Constants] extend getBinOpIdentity(); NFC

The enhanced version will be used in D48893 and related patches
and an almost identical (fadd is different) version is proposed
in D28907, so adding this as a preliminary step.

llvm-svn: 336444
llvm/include/llvm/IR/Constants.h
llvm/lib/IR/Constants.cpp