diff --git a/mlir/include/mlir/Support/InterfaceSupport.h b/mlir/include/mlir/Support/InterfaceSupport.h index c29c49d20e07..e7a7eca90df2 100644 --- a/mlir/include/mlir/Support/InterfaceSupport.h +++ b/mlir/include/mlir/Support/InterfaceSupport.h @@ -123,6 +123,24 @@ private: // InterfaceMap //===----------------------------------------------------------------------===// +/// Utility to filter a given sequence of types base upon a predicate. +template +struct FilterTypeT { + template + using type = std::tuple; +}; +template <> +struct FilterTypeT { + template + using type = std::tuple<>; +}; +template