]> granicus.if.org Git - llvm/commit
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)
commitfb29a708670749baf1b0fc446db3047592823557
tree7c1e36f54261e628bab45f83ce1bece450e55950
parentb265a82d58cee9d61053056fe1cda1817e460b89
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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227828 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ADT/STLExtras.h
utils/TableGen/CodeGenRegisters.cpp
utils/TableGen/CodeGenRegisters.h
utils/TableGen/RegisterInfoEmitter.cpp