(self, *data, dtype=dtypes.uint32)
| 168 | return UOp(Ops.GETADDR, dtypes.uint64, src=(uop,)) if unwrap_after(uop).op in (Ops.BUFFER, Ops.BUFFER_VIEW, Ops.BINARY) else uop |
| 169 | |
| 170 | def append(self, *data, dtype=dtypes.uint32): |
| 171 | for d in data: |
| 172 | if isinstance(d, int): self.blob += struct.pack(f'<{dtype.fmt}', d) |
| 173 | else: |
| 174 | self.patches.append((len(self.blob), self.get_dev_addr(d), dtype)) |
| 175 | self.blob += struct.pack(f'<{dtype.fmt}', 0) |
| 176 | |
| 177 | def q(self, *values): self.append(*values) |
| 178 |