Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for okfor (0.08 sec)

  1. src/cmd/compile/internal/typecheck/universe.go

    	okfor[ir.OMOD] = okforand[:]
    	okfor[ir.OMUL] = okforarith[:]
    	okfor[ir.ONE] = okforeq[:]
    	okfor[ir.OOR] = okforand[:]
    	okfor[ir.OOROR] = okforbool[:]
    	okfor[ir.OSUB] = okforarith[:]
    	okfor[ir.OXOR] = okforand[:]
    	okfor[ir.OLSH] = okforand[:]
    	okfor[ir.ORSH] = okforand[:]
    
    	// unary
    	okfor[ir.OBITNOT] = okforand[:]
    	okfor[ir.ONEG] = okforarith[:]
    	okfor[ir.ONOT] = okforbool[:]
    	okfor[ir.OPLUS] = okforarith[:]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 05 15:20:28 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/typecheck/expr.go

    			return l, r, nil
    		}
    	}
    
    	if t.Kind() == types.TIDEAL {
    		t = mixUntyped(l.Type(), r.Type())
    	}
    	if dt := defaultType(t); !okfor[op][dt.Kind()] {
    		base.Errorf("invalid operation: %v (operator %v not defined on %s)", n, op, typekind(t))
    		return l, r, nil
    	}
    
    	// okfor allows any array == array, map == map, func == func.
    	// restrict to slice/map/func == nil and nil == slice/map/func.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/typecheck/const.go

    	switch op {
    	case ir.OCOMPLEX:
    		if t.IsComplex() {
    			return types.FloatForComplex(t)
    		}
    	case ir.OREAL, ir.OIMAG:
    		if t.IsFloat() {
    			return types.ComplexForFloat(t)
    		}
    	default:
    		if okfor[op][t.Kind()] {
    			return t
    		}
    	}
    	return nil
    }
    
    // ConvertVal converts v into a representation appropriate for t. If
    // no such representation exists, it returns constant.MakeUnknown()
    // instead.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 05 15:20:28 UTC 2023
    - 10.5K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/walk/stmt.go

    			// so open-coded defers cannot be used in this function.
    			ir.CurFunc.SetOpenCodedDeferDisallowed(true)
    		}
    		fallthrough
    	case ir.OGO:
    		n := n.(*ir.GoDeferStmt)
    		return walkGoDefer(n)
    
    	case ir.OFOR:
    		n := n.(*ir.ForStmt)
    		return walkFor(n)
    
    	case ir.OIF:
    		n := n.(*ir.IfStmt)
    		return walkIf(n)
    
    	case ir.ORETURN:
    		n := n.(*ir.ReturnStmt)
    		return walkReturn(n)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 06 15:42:30 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ir/fmt.go

    	ODEFER:      -1,
    	OFALL:       -1,
    	OFOR:        -1,
    	OGOTO:       -1,
    	OIF:         -1,
    	OLABEL:      -1,
    	OGO:         -1,
    	ORANGE:      -1,
    	ORETURN:     -1,
    	OSELECT:     -1,
    	OSWITCH:     -1,
    
    	OEND: 0,
    }
    
    // StmtWithInit reports whether op is a statement with an explicit init list.
    func StmtWithInit(op Op) bool {
    	switch op {
    	case OIF, OFOR, OSWITCH:
    		return true
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 05 15:20:28 UTC 2023
    - 26K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/typecheck/stmt.go

    func tcCheckNil(n *ir.UnaryExpr) ir.Node {
    	n.X = Expr(n.X)
    	if !n.X.Type().IsPtrShaped() {
    		base.FatalfAt(n.Pos(), "%L is not pointer shaped", n.X)
    	}
    	return n
    }
    
    // tcFor typechecks an OFOR node.
    func tcFor(n *ir.ForStmt) ir.Node {
    	Stmts(n.Init())
    	n.Cond = Expr(n.Cond)
    	n.Cond = DefaultLit(n.Cond, nil)
    	if n.Cond != nil {
    		t := n.Cond.Type()
    		if t != nil && !t.IsBoolean() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 20 15:10:54 UTC 2023
    - 17.8K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/typecheck/typecheck.go

    			n = ir.NewBlockStmt(n.Pos(), nil)
    		}
    		return n
    
    	case ir.ODEFER, ir.OGO:
    		n := n.(*ir.GoDeferStmt)
    		n.Call = typecheck(n.Call, ctxStmt|ctxExpr)
    		tcGoDefer(n)
    		return n
    
    	case ir.OFOR:
    		n := n.(*ir.ForStmt)
    		return tcFor(n)
    
    	case ir.OIF:
    		n := n.(*ir.IfStmt)
    		return tcIf(n)
    
    	case ir.ORETURN:
    		n := n.(*ir.ReturnStmt)
    		return tcReturn(n)
    
    	case ir.OTAILCALL:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 20 19:08:34 UTC 2024
    - 30.5K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/walk/order.go

    		o.out = append(o.out, n)
    		o.popTemp(t)
    
    	// Clean temporaries from condition evaluation at
    	// beginning of loop body and after for statement.
    	case ir.OFOR:
    		n := n.(*ir.ForStmt)
    		t := o.markTemp()
    		n.Cond = o.exprInPlace(n.Cond)
    		orderBlock(&n.Body, o.free)
    		n.Post = orderStmtInPlace(n.Post, o.free)
    		o.out = append(o.out, n)
    		o.popTemp(t)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 02:00:33 UTC 2024
    - 42.7K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssagen/ssa.go

    			case ir.OBREAK:
    				to = lab.breakTarget
    			}
    		}
    
    		b := s.endBlock()
    		b.Pos = s.lastPos.WithIsStmt() // Do this even if b is an empty block.
    		b.AddEdgeTo(to)
    
    	case ir.OFOR:
    		// OFOR: for Ninit; Left; Right { Nbody }
    		// cond (Left); body (Nbody); incr (Right)
    		n := n.(*ir.ForStmt)
    		base.Assert(!n.DistinctVars) // Should all be rewritten before escape analysis
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 284.9K bytes
    - Viewed (0)
  10. src/internal/trace/traceviewer/static/trace_viewer_full.html

    ((15&_)!==C){t.msg="unknown compression method",a.mode=ot;break}if(_>>>=4,dt-=4,yt=8+(15&_),0===a.wbits)a.wbits=yt;else if(yt>a.wbits){t.msg="invalid window size",a.mode=ot;break}a.dmax=1<<yt,t.adler=a.check=1,a.mode=512&_?j:M,_=0,dt=0;break;case O:for(;dt<16;){if(0===l)break t;l--,_+=n[s++]<<dt,dt+=8}if(a.flags=_,(255&a.flags)!==C){t.msg="unknown compression method",a.mode=ot;break}if(57344&a.flags){t.msg="unknown header flags set",a.mode=ot;break}a.head&&(a.head.text=_>>8&1),512&a.flags&&(Et[0...
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 20:45:06 UTC 2023
    - 2.5M bytes
    - Viewed (0)
Back to top