Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for CheckFunc (0.22 sec)

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

    	fun := c.Fun("entry", bg(size)...)
    	CheckFunc(fun.f)
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    		fn(fun.f)
    		b.StopTimer()
    		CheckFunc(fun.f)
    		b.StartTimer()
    	}
    }
    
    // benchFnBlock runs passFunc across a function with b.N blocks.
    func benchFnBlock(b *testing.B, fn passFunc, bg blockGen) {
    	b.ReportAllocs()
    	c := testConfig(b)
    	fun := c.Fun("entry", bg(b.N)...)
    	CheckFunc(fun.f)
    	b.ResetTimer()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/deadstore_test.go

    			Valu("store4", OpStore, types.TypeMem, 0, c.config.Types.Bool, "addr3", "v", "store3"),
    			Goto("exit")),
    		Bloc("exit",
    			Exit("store3")))
    
    	CheckFunc(fun.f)
    	dse(fun.f)
    	CheckFunc(fun.f)
    
    	v1 := fun.values["store1"]
    	if v1.Op != OpCopy {
    		t.Errorf("dead store not removed")
    	}
    
    	v2 := fun.values["zero1"]
    	if v2.Op != OpCopy {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 25 20:07:26 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  3. 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)
  4. tools/istio-iptables/pkg/builder/iptables_builder_test.go

    				goldenNameV4 = goldenName
    				goldenNameV6 = goldenName
    			} else {
    				goldenNameV4 = tt.name + "-v4"
    				goldenNameV6 = tt.name + "-v6"
    			}
    			checkFunc(goldenNameV4, iptables.BuildV4(), iptables.BuildV4Restore(), tt.expectV4)
    			checkFunc(goldenNameV6, iptables.BuildV6(), iptables.BuildV6Restore(), tt.expectV6)
    		})
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jun 11 14:29:54 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  5. tests/migrate_test.go

    		{name: "notUnique to unique", from: &UniqueStruct1{}, to: &UniqueStruct3{}, checkFunc: checkUnique},
    		{name: "notUnique to uniqueIndex", from: &UniqueStruct1{}, to: &UniqueStruct5{}, checkFunc: checkUniqueIndex},
    		{name: "notUnique to uniqueAndUniqueIndex", from: &UniqueStruct1{}, to: &UniqueStruct8{}, checkFunc: checkMyIndex},
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Mon Mar 18 11:24:16 UTC 2024
    - 56.2K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/export_test.go

    	"cmd/compile/internal/types"
    	"cmd/internal/obj"
    	"cmd/internal/obj/arm64"
    	"cmd/internal/obj/s390x"
    	"cmd/internal/obj/x86"
    	"cmd/internal/src"
    	"cmd/internal/sys"
    )
    
    var CheckFunc = checkFunc
    var Opt = opt
    var Deadcode = deadcode
    var Copyelim = copyelim
    
    var testCtxts = map[string]*obj.Link{
    	"amd64": obj.Linknew(&x86.Linkamd64),
    	"s390x": obj.Linknew(&s390x.Links390x),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 21:19:39 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. 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