Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 26 for NumBlocks (0.22 sec)

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

    //	  CMPQ ...
    //	  JLT loop
    func loopRotate(f *Func) {
    	loopnest := f.loopnest()
    	if loopnest.hasIrreducible {
    		return
    	}
    	if len(loopnest.loops) == 0 {
    		return
    	}
    
    	idToIdx := f.Cache.allocIntSlice(f.NumBlocks())
    	defer f.Cache.freeIntSlice(idToIdx)
    	for i, b := range f.Blocks {
    		idToIdx[b.ID] = i
    	}
    
    	// Set of blocks we're moving, by ID.
    	move := map[ID]struct{}{}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 15:44:14 UTC 2024
    - 3K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/deadcode.go

    	live, order = liveValues(f, reachable)
    	f.Cache.freeValueSlice(order)
    	return
    }
    
    // ReachableBlocks returns the reachable blocks in f.
    func ReachableBlocks(f *Func) []bool {
    	reachable := make([]bool, f.NumBlocks())
    	reachable[f.Entry.ID] = true
    	p := make([]*Block, 0, 64) // stack-like worklist
    	p = append(p, f.Entry)
    	for len(p) > 0 {
    		// Pop a reachable block
    		b := p[len(p)-1]
    		p = p[:len(p)-1]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 08 00:29:01 UTC 2023
    - 9.2K bytes
    - Viewed (0)
  3. src/archive/tar/reader_test.go

    		{"22 GNU.sparse.size=10\n26 GNU.sparse.numblocks=2\n" +
    			"23 GNU.sparse.offset=1\n25 GNU.sparse.numbytes=2\n" +
    			"23 GNU.sparse.offset=3\n25 GNU.sparse.numbytes=4\n",
    			map[string]string{paxGNUSparseSize: "10", paxGNUSparseNumBlocks: "2", paxGNUSparseMap: "1,2,3,4"}, true},
    		{"22 GNU.sparse.size=10\n26 GNU.sparse.numblocks=1\n" +
    			"25 GNU.sparse.numbytes=2\n23 GNU.sparse.offset=1\n",
    			nil, false},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 21 21:14:38 UTC 2022
    - 47.1K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/html.go

    	}
    	indexOf := make([]int, f.NumBlocks())
    	for i, b := range f.Blocks {
    		indexOf[b.ID] = i
    	}
    	layoutDrawn := make([]bool, f.NumBlocks())
    
    	ponums := make([]int32, f.NumBlocks())
    	_ = postorderWithNumbering(f, ponums)
    	isBackEdge := func(from, to ID) bool {
    		return ponums[from] <= ponums[to]
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 04 15:11:40 UTC 2023
    - 34.8K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. src/internal/coverage/defs.go

    // object we associated with instrumented function can be thought of
    // as a struct of the following form:
    //
    // struct {
    //     numCtrs uint32
    //     pkgid uint32
    //     funcid uint32
    //     counterArray [numBlocks]uint32
    // }
    //
    // where "numCtrs" is the number of blocks / coverable units within the
    // function, "pkgid" is the unique index assigned to this package by
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 14 12:51:16 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssa/stackalloc.go

    // basic blocks. Figure out a way to make this function (or, more precisely, the user
    // of this function) require only linear size & time.
    func (s *stackAllocState) computeLive(spillLive [][]ID) {
    	s.live = make([][]ID, s.f.NumBlocks())
    	var phis []*Value
    	live := s.f.newSparseSet(s.f.NumValues())
    	defer s.f.retSparseSet(live)
    	t := s.f.newSparseSet(s.f.NumValues())
    	defer s.f.retSparseSet(t)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 21:29:41 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/ssa/regalloc.go

    			// Instead, we mark the corresponding Selects as needReg.
    		}
    	}
    	s.computeLive()
    
    	s.endRegs = make([][]endReg, f.NumBlocks())
    	s.startRegs = make([][]startReg, f.NumBlocks())
    	s.spillLive = make([][]ID, f.NumBlocks())
    	s.sdom = f.Sdom()
    
    	// wasm: Mark instructions that can be optimized to have their values only on the WebAssembly stack.
    	if f.Config.ctxt.Arch.Arch == sys.ArchWasm {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 17:49:56 UTC 2023
    - 87.2K bytes
    - Viewed (0)
Back to top