- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for NumControls (0.7 sec)
-
src/cmd/compile/internal/ssa/check.go
} if b.NumControls() != 1 { f.Fatalf("exit block %s has no control value", b) } if !b.Controls[0].Type.IsMemory() { f.Fatalf("exit block %s has non-memory control value %s", b, b.Controls[0].LongString()) } case BlockRet: if len(b.Succs) != 0 { f.Fatalf("ret block %s has successors", b) } if b.NumControls() != 1 { f.Fatalf("ret block %s has nil control", b)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 09 16:41:23 UTC 2024 - 17.6K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/block.go
} } switch b.Likely { case BranchUnlikely: s += " (unlikely)" case BranchLikely: s += " (likely)" } return s } // NumControls returns the number of non-nil control values the // block has. func (b *Block) NumControls() int { if b.Controls[0] == nil { return 0 } if b.Controls[1] == nil { return 1 } return 2 }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 15:44:14 UTC 2024 - 12.2K bytes - Viewed (0)