Beaver.MLIR.Location (beaver v0.2.15)

This module defines functions working with MLIR Location.

Link to this section Summary

Functions

Get a location of file line. Column is zero by default because in Elixir it is usually omitted.

Link to this section Types

@type t() :: %Beaver.MLIR.Location{bag: term(), ref: term()}

Link to this section Functions

Get a location of file line. Column is zero by default because in Elixir it is usually omitted.

examples

Examples

iex> ctx = MLIR.Context.create()
iex> MLIR.Location.file(name: "filename", line: 1, column: 1, ctx: ctx) |> MLIR.to_string()
~s{loc("filename":1:1)}
iex> ctx |> MLIR.Context.destroy
Link to this function

unknown(opts \\ [])