Commit 7d248d46 authored by Paul's avatar Paul
Browse files

Fix tidy issues

parent e72668cc
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
namespace migraphx { namespace migraphx {
inline namespace MIGRAPHX_INLINE_NS { inline namespace MIGRAPHX_INLINE_NS {
template <class T, class F, F f> template <class T, class F, F f> // NOLINT
struct mlir_handle struct mlir_handle
{ {
struct ptr struct ptr
...@@ -177,7 +177,7 @@ struct mlir_program ...@@ -177,7 +177,7 @@ struct mlir_program
} }
MlirAttribute attribute(std::uint64_t i) const { return attribute(std::int64_t(i)); } MlirAttribute attribute(std::uint64_t i) const { return attribute(std::int64_t(i)); }
MlirAttribute attribute(unsigned char i) const { return attribute(std::int64_t(i)); } MlirAttribute attribute(unsigned char i) const { return attribute(std::int64_t(i)); }
MlirAttribute attribute(bool b) const { return mlirBoolAttrGet(ctx.get(), b); } MlirAttribute attribute(bool b) const { return mlirBoolAttrGet(ctx.get(), b ? 1 : 0); }
MlirAttribute attribute(double d) const MlirAttribute attribute(double d) const
{ {
return mlirFloatAttrDoubleGet(ctx.get(), mlirF64TypeGet(ctx.get()), d); return mlirFloatAttrDoubleGet(ctx.get(), mlirF64TypeGet(ctx.get()), d);
......
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