MCPcopy Create free account
hub / github.com/bjwbell/gensimd / allocReg

Method allocReg

codegen/codegen.go:1625–1663  ·  view source on GitHub ↗

allocReg allocates a register, if none are available a victim register is spilled, loc is the instr location, where the allocation is taking place (this is used to choose the victim register when spilling), t is the register type eg XMM_REG, size is bytes.

(loc ssa.Instruction, t RegType, size uint)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 9

ConvertFromToMethod · 0.95
ConvertUint64ToFloatMethod · 0.95
LoadSimdMethod · 0.95
allocIdentRegMethod · 0.95
UnOpSubMethod · 0.95
UnOpPointerMethod · 0.95
mulI32x4Function · 0.80
shrU16x8Function · 0.80
shufU32x4Function · 0.80

Calls 6

allocUnusedRegMethod · 0.95
chooseVictimMethod · 0.95
regDeadMethod · 0.95
iceFunction · 0.85
spillMethod · 0.80
ownerMethod · 0.65

Tested by

no test coverage detected