Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for IsUintptr (0.23 sec)

  1. src/go/types/conversions.go

    	}
    
    	// package unsafe:
    	// "any pointer or value of underlying type uintptr can be converted into a unsafe.Pointer"
    	if (isPointer(Vu) || isUintptr(Vu)) && isUnsafePointer(Tu) {
    		return true
    	}
    	// "and vice versa"
    	if isUnsafePointer(Vu) && (isPointer(Tu) || isUintptr(Tu)) {
    		return true
    	}
    
    	// "V is a slice, T is an array or pointer-to-array type,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 18:51:00 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/conversions.go

    	}
    
    	// package unsafe:
    	// "any pointer or value of underlying type uintptr can be converted into a unsafe.Pointer"
    	if (isPointer(Vu) || isUintptr(Vu)) && isUnsafePointer(Tu) {
    		return true
    	}
    	// "and vice versa"
    	if isUnsafePointer(Vu) && (isPointer(Tu) || isUintptr(Tu)) {
    		return true
    	}
    
    	// "V is a slice, T is an array or pointer-to-array type,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 18:51:00 UTC 2024
    - 9K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/check.go

    						f.Fatalf("nilcheck must have void type %s", v.Type.String())
    					}
    				} else {
    					if !v.Type.IsPtrShaped() && !v.Type.IsUintptr() {
    						f.Fatalf("nilcheck must have pointer type %s", v.Type.String())
    					}
    				}
    				if !v.Args[0].Type.IsPtrShaped() && !v.Args[0].Type.IsUintptr() {
    					f.Fatalf("nilcheck must have argument of pointer type %s", v.Args[0].Type.String())
    				}
    				if !v.Args[1].Type.IsMemory() {
    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/cmd/compile/internal/types/type.go

    	return t.cache.ptr != nil
    }
    
    // IsUnsafePtr reports whether t is an unsafe pointer.
    func (t *Type) IsUnsafePtr() bool {
    	return t.kind == TUNSAFEPTR
    }
    
    // IsUintptr reports whether t is a uintptr.
    func (t *Type) IsUintptr() bool {
    	return t.kind == TUINTPTR
    }
    
    // IsPtrShaped reports whether t is represented by a single machine pointer.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 49.5K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/_gen/generic.rules

    (Load <t> (OffPtr [off]                       (Addr {s} sb)       ) _) && t.IsUintptr() && isFixedSym(s, off) => (Addr {fixedSym(b.Func, s, off)} sb)
    (Load <t> (OffPtr [off]              (Convert (Addr {s} sb) _)    ) _) && t.IsUintptr() && isFixedSym(s, off) => (Addr {fixedSym(b.Func, s, off)} sb)
    (Load <t> (OffPtr [off] (ITab (IMake          (Addr {s} sb)    _))) _) && t.IsUintptr() && isFixedSym(s, off) => (Addr {fixedSym(b.Func, s, off)} sb)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 22:21:05 UTC 2024
    - 135.3K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/rewritegeneric.go

    			break
    		}
    		s := auxToSym(v_0_0.Aux)
    		sb := v_0_0.Args[0]
    		if !(t.IsUintptr() && isFixedSym(s, off)) {
    			break
    		}
    		v.reset(OpAddr)
    		v.Aux = symToAux(fixedSym(b.Func, s, off))
    		v.AddArg(sb)
    		return true
    	}
    	// match: (Load <t> (OffPtr [off] (Convert (Addr {s} sb) _) ) _)
    	// cond: t.IsUintptr() && isFixedSym(s, off)
    	// result: (Addr {fixedSym(b.Func, s, off)} sb)
    	for {
    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