Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for CMPeq (0.06 sec)

  1. src/cmd/compile/internal/types/type.go

    // into equivalence classes (Types that compare CMPeq) matters.
    func (t *Type) Compare(x *Type) Cmp {
    	if x == t {
    		return CMPeq
    	}
    	return t.cmp(x)
    }
    
    func cmpForNe(x bool) Cmp {
    	if x {
    		return CMPlt
    	}
    	return CMPgt
    }
    
    func (r *Sym) cmpsym(s *Sym) Cmp {
    	if r == s {
    		return CMPeq
    	}
    	if r == nil {
    		return CMPlt
    	}
    	if s == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 49.5K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/stackalloc.go

    			// the spill location.
    			var name LocalSlot
    			if v.Op == OpStoreReg {
    				name = names[v.Args[0].ID]
    			} else {
    				name = names[v.ID]
    			}
    			if name.N != nil && v.Type.Compare(name.Type) == types.CMPeq {
    				for _, id := range s.interfere[v.ID] {
    					h := f.getHome(id)
    					if h != nil && h.(LocalSlot).N == name.N && h.(LocalSlot).Off == name.Off {
    						// A variable can interfere with itself.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 21:29:41 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/schedule.go

    	// The goal here is stability in the face
    	// of unrelated changes elsewhere in the compiler.
    	if c := x.AuxInt - y.AuxInt; c != 0 {
    		return c < 0
    	}
    	if cmp := x.Type.Compare(y.Type); cmp != types.CMPeq {
    		return cmp == types.CMPlt
    	}
    	return x.ID < y.ID
    }
    
    func (op Op) isLoweredGetClosurePtr() bool {
    	switch op {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 08 15:53:17 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/_gen/generic.rules

    (Load <t1> p1 (Store {t2} p2 x _))
    	&& isSamePtr(p1, p2)
    	&& t1.Compare(x.Type) == types.CMPeq
    	&& t1.Size() == t2.Size()
    	=> x
    (Load <t1> p1 (Store {t2} p2 _ (Store {t3} p3 x _)))
    	&& isSamePtr(p1, p3)
    	&& t1.Compare(x.Type) == types.CMPeq
    	&& t1.Size() == t2.Size()
    	&& disjoint(p3, t3.Size(), p2, t2.Size())
    	=> x
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 22:21:05 UTC 2024
    - 135.3K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/func.go

    	if f.constants == nil {
    		f.constants = make(map[int64][]*Value)
    	}
    	vv := f.constants[c]
    	for _, v := range vv {
    		if v.Op == op && v.Type.Compare(t) == types.CMPeq {
    			if setAuxInt && v.AuxInt != c {
    				panic(fmt.Sprintf("cached const %s should have AuxInt of %d", v.LongString(), c))
    			}
    			return v
    		}
    	}
    	var v *Value
    	if setAuxInt {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/rewritegeneric.go

    	// cond: isSamePtr(p1, p2) && t1.Compare(x.Type) == types.CMPeq && t1.Size() == t2.Size()
    	// result: x
    	for {
    		t1 := v.Type
    		p1 := v_0
    		if v_1.Op != OpStore {
    			break
    		}
    		t2 := auxToType(v_1.Aux)
    		x := v_1.Args[1]
    		p2 := v_1.Args[0]
    		if !(isSamePtr(p1, p2) && t1.Compare(x.Type) == types.CMPeq && t1.Size() == t2.Size()) {
    			break
    		}
    		v.copyOf(x)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 18:24:47 UTC 2024
    - 812.2K bytes
    - Viewed (0)
Back to top