Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for NumBlocks (0.15 sec)

  1. src/cmd/compile/internal/ssa/check.go

    package ssa
    
    import (
    	"cmd/compile/internal/ir"
    	"cmd/internal/obj/s390x"
    	"math"
    	"math/bits"
    )
    
    // checkFunc checks invariants of f.
    func checkFunc(f *Func) {
    	blockMark := make([]bool, f.NumBlocks())
    	valueMark := make([]bool, f.NumValues())
    
    	for _, b := range f.Blocks {
    		if blockMark[b.ID] {
    			f.Fatalf("block %s appears twice in %s!", b, f.Name)
    		}
    		blockMark[b.ID] = true
    		if b.Func != f {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 09 16:41:23 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/liveness/plive.go

    	if lc, _ := f.Cache.Liveness.(*livenessFuncCache); lc == nil {
    		// Prep the cache so liveness can fill it later.
    		f.Cache.Liveness = new(livenessFuncCache)
    	} else {
    		if cap(lc.be) >= f.NumBlocks() {
    			lv.be = lc.be[:f.NumBlocks()]
    		}
    		lv.livenessMap = Map{
    			Vals:         lc.livenessMap.Vals,
    			UnsafeVals:   lc.livenessMap.UnsafeVals,
    			UnsafeBlocks: lc.livenessMap.UnsafeBlocks,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 15:22:22 UTC 2024
    - 45.2K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/func.go

    		CanonicalLocalSlots:  make(map[LocalSlot]*LocalSlot),
    		CanonicalLocalSplits: make(map[LocalSlotSplitKey]*LocalSlot),
    	}
    }
    
    // NumBlocks returns an integer larger than the id of any Block in the Func.
    func (f *Func) NumBlocks() int {
    	return f.bid.num()
    }
    
    // NumValues returns an integer larger than the id of any Value in the Func.
    func (f *Func) NumValues() int {
    	return f.vid.num()
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 25.8K bytes
    - Viewed (0)
Back to top