712663ed27506af865aa0498c569d8398d18b7fd,python/tvm/tir/ir_builder.py,BufferVar,__setitem__,#BufferVar#Any#Any#,109

Before Change


        t = DataType(self._content_type)
        if t.lanes > 1:
            base = index * t.lanes
            index = _expr.Ramp(base, const(1, base.dtype), t.lanes)
        self._builder.emit(_stmt.Store(self._buffer_var, value, index))


class IRBuilder(object):

After Change


        if t.lanes > 1:
            base = index * t.lanes
            stride = 1 if (not hasattr(base, "dtype")) else const(1, base.dtype)
            index = _expr.Ramp(base, stride, t.lanes)
        self._builder.emit(_stmt.Store(self._buffer_var, value, index))


class IRBuilder(object):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: apache/incubator-tvm
Commit Name: 712663ed27506af865aa0498c569d8398d18b7fd
Time: 2020-11-19
Author: giuseppe.rossini@arm.com
File Name: python/tvm/tir/ir_builder.py
Class Name: BufferVar
Method Name: __setitem__


Project Name: apache/incubator-tvm
Commit Name: 4e5c5843e7c078e39d89c4ee2163f1fd40aef952
Time: 2020-04-02
Author: fanhaozh@amazon.com
File Name: python/tvm/tir/ir_builder.py
Class Name: BufferVar
Method Name: __getitem__


Project Name: apache/incubator-tvm
Commit Name: 4e5c5843e7c078e39d89c4ee2163f1fd40aef952
Time: 2020-04-02
Author: fanhaozh@amazon.com
File Name: python/tvm/tir/ir_builder.py
Class Name: BufferVar
Method Name: __setitem__


Project Name: apache/incubator-tvm
Commit Name: 712663ed27506af865aa0498c569d8398d18b7fd
Time: 2020-11-19
Author: giuseppe.rossini@arm.com
File Name: python/tvm/tir/ir_builder.py
Class Name: BufferVar
Method Name: __getitem__