MCPcopy Create free account
hub / github.com/apache/tvm / BufferLoad

Class BufferLoad

python/tvm/tirx/expr.py:1120–1155  ·  view source on GitHub ↗

Buffer load node. Parameters ---------- buffer : Buffer The buffer to be loaded. indices : List[PrimExpr] The buffer indices to load values from. span : Optional[Span] The location of this expression in the source code. predicate : Optional[PrimExp

Source from the content-addressed store, hash-verified

1118
1119@tvm_ffi.register_object("tirx.BufferLoad")
1120class BufferLoad(PrimExprWithOp):
1121 """Buffer load node.
1122
1123 Parameters
1124 ----------
1125 buffer : Buffer
1126 The buffer to be loaded.
1127
1128 indices : List[PrimExpr]
1129 The buffer indices to load values from.
1130
1131 span : Optional[Span]
1132 The location of this expression in the source code.
1133
1134 predicate : Optional[PrimExpr]
1135 A vector mask of boolean values indicating which lanes of a vector are to be
1136 loaded. The number lanes of the mask must be equal to the number of lanes being loaded.
1137 """
1138
1139 buffer: Buffer
1140 indices: list[PrimExpr]
1141
1142 def __init__(
1143 self,
1144 buffer: Buffer,
1145 indices: list[PrimExpr],
1146 predicate: PrimExpr | None = None,
1147 span: Span | None = None,
1148 ) -> None:
1149 self.__init_handle_by_constructor__(
1150 _ffi_api.BufferLoad,
1151 buffer,
1152 indices,
1153 predicate,
1154 span, # type: ignore
1155 )
1156
1157
1158@tvm_ffi.register_object("tirx.ProducerLoad")

Callers 3

visit_buffer_load_Method · 0.90
address_ofFunction · 0.85
__getitem__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…