[PATCH] D78059: [llvm][STLExtras] Add various type_trait utilities currently present in MLIR

River Riddle via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 13 15:15:34 PDT 2020


rriddle created this revision.
rriddle added a reviewer: lattner.
Herald added subscribers: llvm-commits, frgossen, grosul1, Joonsoo, liufengdb, lucyrfox, mgester, arpith-jacob, nicolasvasilache, antiagainst, shauheen, burmako, jpienaar, mehdi_amini, dexonsmith.
Herald added a project: LLVM.

This revision moves several type_trait utilities from MLIR into LLVM. Namely, this revision adds:
is_detected - This matches the experimental std::is_detected
is_invocable - This matches the c++17 std::is_invocable
function_traits - A utility traits class for getting the argument and result types of a callable type

Depends On D78057 <https://reviews.llvm.org/D78057>


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D78059

Files:
  llvm/include/llvm/ADT/STLExtras.h
  mlir/include/mlir/ADT/TypeSwitch.h
  mlir/include/mlir/IR/Matchers.h
  mlir/include/mlir/IR/OpDefinition.h
  mlir/include/mlir/Pass/AnalysisManager.h
  mlir/include/mlir/Support/STLExtras.h
  mlir/include/mlir/Support/StorageUniquer.h
  mlir/include/mlir/Transforms/DialectConversion.h
  mlir/lib/IR/SymbolTable.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D78059.257123.patch
Type: text/x-patch
Size: 18316 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200413/3fcbd33e/attachment.bin>


More information about the llvm-commits mailing list