# How to make my own type? via mlir

**URL:** <https://forum.modular.com/t/how-to-make-my-own-type-via-mlir/2065>\
**Category:** Mojo\
**Created:** [August 1, 2025, 5:46pm UTC](https://forum.modular.com/t/how-to-make-my-own-type-via-mlir/2065 "2025-08-01T17:46:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Miroslaw](https://avatars.discourse-cdn.com/v4/letter/m/49beb7/32.png) [@Miroslaw](https://forum.modular.com/u/Miroslaw)\
**Post date:** [August 1, 2025, 5:46pm UTC](https://forum.modular.com/t/how-to-make-my-own-type-via-mlir/2065/1 "2025-08-01T17:46:46Z")

</div>

I would like to create my own DType that only accepts a single value, ‘0’. Is it possible to implement this using MLIR? where I can find information about mlir in Mojo? any lib?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex001/uploads/modular/original/1X/2751e0fbdc595a99718b216730957e9db4448cfd.jpeg) [@system](https://forum.modular.com/u/system)\
**Post date:** [January 28, 2026, 5:47pm UTC](https://forum.modular.com/t/how-to-make-my-own-type-via-mlir/2065/2 "2026-01-28T17:47:14Z")

</div>

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
