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
| 1118 | |
| 1119 | @tvm_ffi.register_object("tirx.BufferLoad") |
| 1120 | class 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") |
no outgoing calls
no test coverage detected
searching dependent graphs…