STLExtras: Provide less/equal functors with templated function call operators, plus...
authorDavid Blaikie <dblaikie@gmail.com>
Mon, 2 Feb 2015 18:35:10 +0000 (18:35 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Mon, 2 Feb 2015 18:35:10 +0000 (18:35 +0000)
commit440a045606275b2f029b570600524f3f5b4ab758
tree1f93c814d73a35e47cc10b958c0f2865d3bb029f
parent9013c4b3b11d6173fee5e49f895ffcde056ecaf6
STLExtras: Provide less/equal functors with templated function call operators, plus a deref'ing functor template utility

Similar to the C++14 void specializations of these templates, useful as
a stop-gap until LLVM switches to '14.

Example use-cases in tblgen because I saw some functors that looked like
they could be simplified/refactored.

Reviewers: dexonsmith

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

llvm-svn: 227828
llvm/include/llvm/ADT/STLExtras.h
llvm/utils/TableGen/CodeGenRegisters.cpp
llvm/utils/TableGen/CodeGenRegisters.h
llvm/utils/TableGen/RegisterInfoEmitter.cpp