Commit 60ab44c7 authored by Paul's avatar Paul
Browse files

Format

parent 2c952efd
...@@ -183,13 +183,13 @@ struct mlir_program ...@@ -183,13 +183,13 @@ struct mlir_program
MlirAttribute attribute(std::int64_t i) const MlirAttribute attribute(std::int64_t i) const
{ {
if (i < 0) if(i < 0)
MIGRAPHX_THROW("MLIR cant handle negative values since they are ambiguous"); MIGRAPHX_THROW("MLIR cant handle negative values since they are ambiguous");
return mlirIntegerAttrGet(mlirIntegerTypeGet(ctx.get(), 64), i); return mlirIntegerAttrGet(mlirIntegerTypeGet(ctx.get(), 64), i);
} }
MlirAttribute attribute(std::uint64_t i) const MlirAttribute attribute(std::uint64_t i) const
{ {
if (i > (std::numeric_limits<std::uint64_t>::max() / 2)) if(i > (std::numeric_limits<std::uint64_t>::max() / 2))
MIGRAPHX_THROW("MLIR cant handle large integer values since they are ambiguous"); MIGRAPHX_THROW("MLIR cant handle large integer values since they are ambiguous");
return mlirIntegerAttrGet(mlirIntegerTypeGet(ctx.get(), 64), i); return mlirIntegerAttrGet(mlirIntegerTypeGet(ctx.get(), 64), i);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment