diff --git a/mlir/include/mlir/Support/InterfaceSupport.h b/mlir/include/mlir/Support/InterfaceSupport.h index c29c49d20e073..e7a7eca90df29 100644 --- a/mlir/include/mlir/Support/InterfaceSupport.h +++ b/mlir/include/mlir/Support/InterfaceSupport.h @@ -123,6 +123,24 @@ class Interface : public BaseType { // 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