Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for isSameCall (0.58 sec)

  1. src/cmd/compile/internal/ssa/_gen/generic.rules

    	&& isSameCall(call.Aux, "runtime.newobject")
    	=> mem
    
    (Store (SelectN [0] call:(StaticLECall _ _)) x mem:(SelectN [1] call))
    	&& isConstZero(x)
    	&& isSameCall(call.Aux, "runtime.newobject")
    	=> mem
    
    (Store (OffPtr (SelectN [0] call:(StaticLECall _ _))) x mem:(SelectN [1] call))
    	&& isConstZero(x)
    	&& isSameCall(call.Aux, "runtime.newobject")
    	=> mem
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 22:21:05 UTC 2024
    - 135.3K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/rewritegeneric.go

    		if x != c.Args[0] || y != c.Args[1] || !(isSameCall(f, "runtime.cmpstring") && isSameCall(g, "runtime.cmpstring")) {
    			break
    		}
    		b = c.Block
    		v0 := b.NewValue0(v.Pos, OpSelectN, typ.Int)
    		v.copyOf(v0)
    		v0.AuxInt = int64ToAuxInt(0)
    		v0.AddArg(c)
    		return true
    	}
    	// match: (SelectN [1] c:(StaticLECall {f} _ _ mem))
    	// cond: c.Uses == 1 && isSameCall(f, "runtime.cmpstring") && clobber(c)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 18:24:47 UTC 2024
    - 812.2K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/rewrite.go

    			continue
    		}
    		for _, a := range v.Args {
    			if target.Block.ID == a.Block.ID {
    				args = append(args, a)
    			}
    		}
    	}
    
    	return true
    }
    
    // isSameCall reports whether sym is the same as the given named symbol.
    func isSameCall(sym interface{}, name string) bool {
    	fn := sym.(*AuxCall).Fn
    	return fn != nil && fn.String() == name
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:02:52 UTC 2024
    - 64.2K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/writebarrier.go

    		}
    		if mem.Type != types.TypeMem {
    			return nil, false
    		} // assume it is the right selection if true
    	}
    	call := mem.Args[0]
    	if call.Op != OpStaticCall {
    		return nil, false
    	}
    	if !isSameCall(call.Aux, "runtime.newobject") {
    		return nil, false
    	}
    	if f.ABIDefault == f.ABI1 && len(c.intParamRegs) >= 1 {
    		if v.Args[0] == call {
    			return mem, true
    		}
    		return nil, false
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:09:14 UTC 2023
    - 23.5K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/_gen/PPC64.rules

    // Arch-specific inlining for small or disjoint runtime.memmove
    (SelectN [0] call:(CALLstatic {sym} s1:(MOVDstore _ (MOVDconst [sz]) s2:(MOVDstore  _ src s3:(MOVDstore {t} _ dst mem)))))
            && sz >= 0
            && isSameCall(sym, "runtime.memmove")
            && s1.Uses == 1 && s2.Uses == 1 && s3.Uses == 1
            && isInlinableMemmove(dst, src, sz, config)
            && clobber(s1, s2, s3, call)
            => (Move [sz] dst src mem)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:02:52 UTC 2024
    - 53.2K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/_gen/AMD64.rules

    	&& sc.Val64() >= 0
    	&& isSameCall(sym, "runtime.memmove")
    	&& s1.Uses == 1 && s2.Uses == 1 && s3.Uses == 1
    	&& isInlinableMemmove(dst, src, sc.Val64(), config)
    	&& clobber(s1, s2, s3, call)
    	=> (Move [sc.Val64()] dst src mem)
    
    // Match post-lowering calls, register version.
    (SelectN [0] call:(CALLstatic {sym} dst src (MOVQconst [sz]) mem))
    	&& sz >= 0
    	&& isSameCall(sym, "runtime.memmove")
    	&& call.Uses == 1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 12 19:38:41 UTC 2024
    - 93.9K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/_gen/ARM64.rules

    	&& sz >= 0
    	&& isSameCall(sym, "runtime.memmove")
    	&& s1.Uses == 1 && s2.Uses == 1 && s3.Uses == 1
    	&& isInlinableMemmove(dst, src, sz, config)
    	&& clobber(s1, s2, s3, call)
    	=> (Move [sz] dst src mem)
    
    // Match post-lowering calls, register version.
    (SelectN [0] call:(CALLstatic {sym} dst src (MOVDconst [sz]) mem))
    	&& sz >= 0
    	&& isSameCall(sym, "runtime.memmove")
    	&& call.Uses == 1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 15:49:20 UTC 2024
    - 113.1K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/rewritePPC64.go

    	v_0 := v.Args[0]
    	b := v.Block
    	config := b.Func.Config
    	// match: (SelectN [0] call:(CALLstatic {sym} s1:(MOVDstore _ (MOVDconst [sz]) s2:(MOVDstore _ src s3:(MOVDstore {t} _ dst mem)))))
    	// cond: sz >= 0 && isSameCall(sym, "runtime.memmove") && s1.Uses == 1 && s2.Uses == 1 && s3.Uses == 1 && isInlinableMemmove(dst, src, sz, config) && clobber(s1, s2, s3, call)
    	// result: (Move [sz] dst src mem)
    	for {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:02:52 UTC 2024
    - 360.2K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssa/rewriteARM64.go

    	v_0 := v.Args[0]
    	b := v.Block
    	config := b.Func.Config
    	// match: (SelectN [0] call:(CALLstatic {sym} s1:(MOVDstore _ (MOVDconst [sz]) s2:(MOVDstore _ src s3:(MOVDstore {t} _ dst mem)))))
    	// cond: sz >= 0 && isSameCall(sym, "runtime.memmove") && s1.Uses == 1 && s2.Uses == 1 && s3.Uses == 1 && isInlinableMemmove(dst, src, sz, config) && clobber(s1, s2, s3, call)
    	// result: (Move [sz] dst src mem)
    	for {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 15:49:20 UTC 2024
    - 608.6K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/ssa/rewriteAMD64.go

    	v_0 := v.Args[0]
    	b := v.Block
    	config := b.Func.Config
    	// match: (SelectN [0] call:(CALLstatic {sym} s1:(MOVQstoreconst _ [sc] s2:(MOVQstore _ src s3:(MOVQstore _ dst mem)))))
    	// cond: sc.Val64() >= 0 && isSameCall(sym, "runtime.memmove") && s1.Uses == 1 && s2.Uses == 1 && s3.Uses == 1 && isInlinableMemmove(dst, src, sc.Val64(), config) && clobber(s1, s2, s3, call)
    	// result: (Move [sc.Val64()] dst src mem)
    	for {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 12 19:38:41 UTC 2024
    - 712.7K bytes
    - Viewed (0)
Back to top