52struct rule_has_operation_pivot<type_list<Head, Tail...>>
53 : std::integral_constant<
55 Head::source == type_pivot_source::operation ||
56 rule_has_operation_pivot<type_list<Tail...>>::value
95struct operand_type_rule
97 using pivot_list_type = Pivots;
98 using output_slot_list_type = Outputs;
99 using input_slot_list_type = Inputs;
101 static REXLIB_CONST_CONSTEXPR std::size_t pivot_count =
102 type_list_size<Pivots>::value;
103 static REXLIB_CONST_CONSTEXPR std::size_t output_count =
104 type_list_size<Outputs>::value;
105 static REXLIB_CONST_CONSTEXPR std::size_t input_count =
106 type_list_size<Inputs>::value;
111 static REXLIB_CONST_CONSTEXPR bool requires_parameters =
112 detail::rule_has_operation_pivot<Pivots>::value;
116 "An operand type rule must declare at least one pivot. With no free "
117 "variable there is nothing for the backend to dispatch on."
121 pivot_count <= max_type_pivot_count,
122 "An operand type rule declares more pivots than a resolution can "
123 "hold. Raise max_type_pivot_count if this is genuinely "
128 detail::slots_reference_valid_pivots<pivot_count, Outputs>::value,
129 "An output slot refers to a pivot the rule does not declare."
133 detail::slots_reference_valid_pivots<pivot_count, Inputs>::value,
134 "An input slot refers to a pivot the rule does not declare."
Arrays, the operations on them and the devices that run those operations.
Definition cpu_device.hpp:10