@@ -335,7 +335,8 @@ void CodeGenTileLangMetal::VisitStmt_(const AllocBufferNode *op) {
335335 size_t constant_size = 1 ;
336336 for (const auto &dim : op->buffer ->shape ) {
337337 const IntImmNode *dim_imm = dim.as <IntImmNode>();
338- TVM_FFI_ICHECK (dim_imm) << " Can only handle constant size stack allocation for now" ;
338+ TVM_FFI_ICHECK (dim_imm)
339+ << " Can only handle constant size stack allocation for now" ;
339340 constant_size *= dim_imm->value ;
340341 }
341342 TVM_FFI_ICHECK_GT (constant_size, 0 )
@@ -346,12 +347,13 @@ void CodeGenTileLangMetal::VisitStmt_(const AllocBufferNode *op) {
346347 alloc_storage_scope_[op->buffer ->data .get ()] = scope;
347348 if (scope == " metal.simdgroup" ) {
348349 TVM_FFI_ICHECK (dtype == DataType::Float (16 ) ||
349- dtype == DataType::Float (32 ) ||
350- dtype == DataType::BFloat (16 ))
350+ dtype == DataType::Float (32 ) ||
351+ dtype == DataType::BFloat (16 ))
351352 << " Only float16, float32, and bfloat16 are supported, but got "
352353 << dtype;
353- TVM_FFI_ICHECK (constant_size % 64 == 0 ) << " Only 8x8 matrix is supported, but got "
354- << constant_size << " bytes\n " ;
354+ TVM_FFI_ICHECK (constant_size % 64 == 0 )
355+ << " Only 8x8 matrix is supported, but got " << constant_size
356+ << " bytes\n " ;
355357
356358 std::ostringstream dtype_os;
357359 PrintType (dtype, dtype_os);
@@ -405,7 +407,8 @@ void CodeGenTileLangMetal::VisitExpr_(const CallNode *op,
405407 << " but expression " << ffi::GetRef<Call>(op) << " calls PrimFunc "
406408 << op->op ;
407409 auto f_check_simdgroup_shape = [](PrimExpr col, PrimExpr row) {
408- TVM_FFI_ICHECK (col->IsInstance <IntImmNode>() && row->IsInstance <IntImmNode>())
410+ TVM_FFI_ICHECK (col->IsInstance <IntImmNode>() &&
411+ row->IsInstance <IntImmNode>())
409412 << " Only constant shape is supported for simdgroup matrix, but got "
410413 << col << " x" << row;
411414 int col_val = col.as <IntImmNode>()->value ;
@@ -517,7 +520,7 @@ ffi::Module BuildTileLangMetal(IRModule mod, Target target) {
517520 }
518521
519522 return MetalModuleCreate (std::move (smap), ExtractFuncInfo (mod),
520- ffi::String (fmt), ffi::String (source_maker.str ()));
523+ ffi::String (fmt), ffi::String (source_maker.str ()));
521524}
522525
523526TVM_FFI_STATIC_INIT_BLOCK () {
0 commit comments