Insert AttrStmt on For Loop

Hi there, is it possible to insert AttrStmt right on For loop in the schedule process? For example, the for body is illustrated as below: for ( i, 0, 28) { compute something }

what I want is: // Attr [iter_var(i)], double_buffer_scop=2 for ( i, 0, 28) { compute something } I didn’t find any API in the which can insert AttrStmt like above. But if I want do double buffer in the structure like VTA, after check the double_buffer_scop, tile stmt and insert sync can be done naturally. While during the schedule process, some primitive like tensorize(pragma included) , double_buffer may disturb each other.

Appreciate for any explanation of this or any suggestions that can skip this issue. Thanks in advance!