MCPcopy
hub / github.com/tinygrad/tinygrad / emit

Method emit

extra/gemm/cdna_asm_gemm.py:52–56  ·  view source on GitHub ↗
(self, inst, target=None)

Source from the content-addressed store, hash-verified

50 self.label_at_pos[self.pos] = name
51
52 def emit(self, inst, target=None):
53 self.instructions.append(inst)
54 inst._target, inst._pos = target, self.pos
55 self.pos += inst.size()
56 return inst
57
58 def waitcnt(self, lgkm=None, vm=None):
59 vmcnt, lgkmcnt, expcnt = vm if vm is not None else 63, lgkm if lgkm is not None else 15, 7

Callers 15

waitcntMethod · 0.95
build_kernelFunction · 0.95
buffer_load_x4_m0_strideFunction · 0.45
mfma_64Function · 0.45
ds_read_ab_16Function · 0.45
zero_out_mask_32Function · 0.45
buffer_load_d16_32Function · 0.45
shift_maskFunction · 0.45
perm_b32_32Function · 0.45
v_divmodFunction · 0.45
v_divFunction · 0.45
v_ceildivFunction · 0.45

Calls 2

appendMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected