MCPcopy Create free account
hub / github.com/ByteDance-Seed/Triton-distributed / deref

Method deref

python/little_kernel/core/expr.py:215–218  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

213 # Pointer operations (dereference/address-of)
214 # ------------------------------
215 def deref(self): # *self (dereference)
216 if not self.type.is_pointer():
217 raise TypeError(f"Cannot dereference non-pointer type {self.type}")
218 return UnOp(UnOpKind.DEREF, self, self.type.inner_type)
219
220 def addr_of(self): # &self (address-of)
221 return UnOp(UnOpKind.ADDR_OF, self, ptr[self.type])

Callers 1

Calls 2

UnOpClass · 0.85
is_pointerMethod · 0.45

Tested by 1