Lines Matching refs:hook
72 Every dialect must implement an initialization hook to add attributes, operations, types,
74 dialect that should happen on construction. This hook is declared for every dialect to
147 materialization, and the `materializeConstant` hook is declared on the dialect. This
148 hook takes in an `Attribute` value, generally returned by `fold`, and produces a
159 /// generated operation is expected to be constant-like. On success, this hook
181 of that attribute. To hook into this verification for attributes that are prefixed
186 This field generates the hook for verifying when a discardable attribute of this dialect
187 has been used within the attribute dictionary of an operation. This hook has the form:
197 This field generates the hook for verifying when a discardable attribute of this dialect
203 In these cases, those operations will invoke this hook on the dialect to ensure the attribute
204 is verified. The hook necessary for the dialect to implement has the form:
217 This field generates the hook for verifying when a discardable attribute of this dialect
222 to the results of the function. In these cases, those operations will invoke this hook on the
223 dialect to ensure the attribute is verified. The hook necessary for the dialect to implement
249 For a more detail description of the expected usages of this hook, view the detailed
271 generation of this hook, the `hasCanonicalizer` field may be used. This will declare
381 optionally define a custom parser and a printer, fold hook, and more.