Beaver.MLIR.Diagnostic (beaver v0.4.8)

Copy Markdown

This module provides functions to work with MLIR diagnostics.

Summary

Functions

Converts diagnostic locations to strings so the tree is safe beyond context lifetime.

Returns the severity level of a diagnostic.

Types

t()

@type t() :: %Beaver.MLIR.Diagnostic{ref: term()}

Functions

detach(ctx, handler_id)

See Beaver.MLIR.CAPI.mlirContextDetachDiagnosticHandler/2.

emit(ctx, msg)

format(diagnostics, prefix \\ "")

make(value)

process(diagnostics)

Converts diagnostic locations to strings so the tree is safe beyond context lifetime.

severity(i)

Returns the severity level of a diagnostic.

If the MLIR severity level is not recognized, it returns :unknown.

walk(diagnostic, acc, fun)