Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for IsGlobalAddr (0.08 sec)

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

    		v = v.Args[0]
    	}
    	switch v.Op {
    	case OpSP, OpLocalAddr, OpSelectNAddr, OpGetCallerSP:
    		return true
    	}
    	return false
    }
    
    // IsGlobalAddr reports whether v is known to be an address of a global (or nil).
    func IsGlobalAddr(v *Value) bool {
    	for v.Op == OpOffPtr || v.Op == OpAddPtr || v.Op == OpPtrIndex || v.Op == OpCopy {
    		v = v.Args[0]
    	}
    	if v.Op == OpAddr && v.Args[0].Op == OpSB {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:09:14 UTC 2023
    - 23.5K bytes
    - Viewed (0)
Back to top