Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for CheckFunc (0.12 sec)

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

    			If("bool2", "extra", "exit")),
    		Bloc("extra",
    			Goto("exit")),
    		Bloc("exit",
    			Exit("mem")))
    
    	CheckFunc(fun.f)
    	nilcheckelim(fun.f)
    
    	// clean up the removed nil check
    	fuse(fun.f, fuseTypePlain)
    	deadcode(fun.f)
    
    	CheckFunc(fun.f)
    	for _, b := range fun.f.Blocks {
    		if b == fun.blocks["secondCheck"] && isNilCheck(b) {
    			t.Errorf("secondCheck was not eliminated")
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 17 23:34:11 UTC 2023
    - 12.3K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/dom_test.go

    	return blocs
    }
    
    // sink for benchmark
    var domBenchRes []*Block
    
    func benchmarkDominators(b *testing.B, size int, bg blockGen) {
    	c := testConfig(b)
    	fun := c.Fun("entry", bg(size)...)
    
    	CheckFunc(fun.f)
    	b.SetBytes(int64(size))
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    		domBenchRes = dominators(fun.f)
    	}
    }
    
    type domFunc func(f *Func) []*Block
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/check.go

    // license that can be found in the LICENSE file.
    
    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] {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 09 16:41:23 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  4. src/text/template/parse/parse.go

    //
    // A term is a simple "expression".
    // A nil return means the next item is not a term.
    func (t *Tree) term() Node {
    	switch token := t.nextNonSpace(); token.typ {
    	case itemIdentifier:
    		checkFunc := t.Mode&SkipFuncCheck == 0
    		if checkFunc && !t.hasFunction(token.val) {
    			t.errorf("function %q not defined", token.val)
    		}
    		return NewIdentifier(token.val).SetTree(t).SetPos(token.pos)
    	case itemDot:
    		return t.newDot(token.pos)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:57:51 UTC 2024
    - 21.3K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/compile.go

    		}
    	}()
    
    	// Run all the passes
    	if f.Log() {
    		printFunc(f)
    	}
    	f.HTMLWriter.WritePhase("start", "start")
    	if BuildDump[f.Name] {
    		f.dumpFile("build")
    	}
    	if checkEnabled {
    		checkFunc(f)
    	}
    	const logMemStats = false
    	for _, p := range passes {
    		if !f.Config.optimize && !p.required || p.disabled {
    			continue
    		}
    		f.pass = &p
    		phaseName = p.name
    		if f.Log() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 14:55:18 UTC 2024
    - 18.6K bytes
    - Viewed (0)
Back to top