Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 18 of 18 for NumValues (0.28 sec)

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

    	if !f.Config.unalignedOK {
    		return
    	}
    
    	memcombineLoads(f)
    	memcombineStores(f)
    }
    
    func memcombineLoads(f *Func) {
    	// Find "OR trees" to start with.
    	mark := f.newSparseSet(f.NumValues())
    	defer f.retSparseSet(mark)
    	var order []*Value
    
    	// Mark all values that are the argument of an OR.
    	for _, b := range f.Blocks {
    		for _, v := range b.Values {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 19:45:41 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/func.go

    	}
    }
    
    // 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()
    }
    
    // NameABI returns the function name followed by comma and the ABI number.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/loopreschedchecks.go

    func findLastMems(f *Func) []*Value {
    
    	var stores []*Value
    	lastMems := f.Cache.allocValueSlice(f.NumBlocks())
    	defer f.Cache.freeValueSlice(lastMems)
    	storeUse := f.newSparseSet(f.NumValues())
    	defer f.retSparseSet(storeUse)
    	for _, b := range f.Blocks {
    		// Find all the stores in this block. Categorize their uses:
    		//  storeUse contains stores which are used by a subsequent store.
    		storeUse.clear()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 21:17:10 UTC 2023
    - 16K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/regalloc.go

    	f := s.f
    	s.live = make([][]liveInfo, f.NumBlocks())
    	s.desired = make([]desiredState, f.NumBlocks())
    	var phis []*Value
    
    	live := f.newSparseMapPos(f.NumValues())
    	defer f.retSparseMapPos(live)
    	t := f.newSparseMapPos(f.NumValues())
    	defer f.retSparseMapPos(t)
    
    	// Keep track of which value we want in each register.
    	var desired desiredState
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 17:49:56 UTC 2023
    - 87.2K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/debug.go

    			b[i] = BlockDebug{}
    		}
    	}
    
    	// A list of slots per Value. Reuse the previous child slices.
    	if cap(state.valueNames) < f.NumValues() {
    		old := state.valueNames
    		state.valueNames = make([][]SlotID, f.NumValues())
    		copy(state.valueNames, old)
    	}
    	vn := state.valueNames[:f.NumValues()]
    	for i := range vn {
    		vn[i] = vn[i][:0]
    	}
    
    	// Slot and register contents for currentState. Cleared by reset().
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 58.4K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/liveness/plive.go

    func (lv *liveness) markUnsafePoints() {
    	if IsUnsafe(lv.f) {
    		// No complex analysis necessary.
    		lv.allUnsafe = true
    		return
    	}
    
    	lv.unsafePoints = bitvec.New(int32(lv.f.NumValues()))
    	lv.unsafeBlocks = bitvec.New(int32(lv.f.NumBlocks()))
    
    	// Mark architecture-specific unsafe points.
    	for _, b := range lv.f.Blocks {
    		for _, v := range b.Values {
    			if v.Op.UnsafePoint() {
    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/ssagen/ssa.go

    	if gatherPrintInfo {
    		progToValue = make(map[*obj.Prog]*ssa.Value, f.NumValues())
    		progToBlock = make(map[*obj.Prog]*ssa.Block, f.NumBlocks())
    		f.Logf("genssa %s\n", f.Name)
    		progToBlock[s.pp.Next] = f.Blocks[0]
    	}
    
    	if base.Ctxt.Flag_locationlists {
    		if cap(f.Cache.ValueToProgAfter) < f.NumValues() {
    			f.Cache.ValueToProgAfter = make([]*obj.Prog, f.NumValues())
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 284.9K bytes
    - Viewed (0)
  8. src/internal/trace/traceviewer/static/trace_viewer_full.html

    getApproximatePercentile(percent){if(percent<0||percent>1){throw new Error('percent must be in [0,1]');}
    if(this.numValues===0)return undefined;if(this.allBins.length===1){const sortedSampleValues=this.sampleValues.slice().sort((x,y)=>x-y);return sortedSampleValues[Math.floor((sortedSampleValues.length-1)*percent)];}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 20:45:06 UTC 2023
    - 2.5M bytes
    - Viewed (0)
Back to top