Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 65 for intconst (0.22 sec)

  1. src/cmd/compile/internal/ssa/_gen/ARM64Ops.go

    		{name: "FDIVD", argLength: 2, reg: fp21, asm: "FDIVD"},                      // arg0 / arg1
    
    		{name: "AND", argLength: 2, reg: gp21, asm: "AND", commutative: true}, // arg0 & arg1
    		{name: "ANDconst", argLength: 1, reg: gp11, asm: "AND", aux: "Int64"}, // arg0 & auxInt
    		{name: "OR", argLength: 2, reg: gp21, asm: "ORR", commutative: true},  // arg0 | arg1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 15:49:20 UTC 2024
    - 58.8K bytes
    - Viewed (0)
  2. src/go/types/decl.go

    			// init expression evaluation since that is all we have
    			// (see issues go.dev/issue/42991, go.dev/issue/42992).
    			check.errpos = atPos(obj.pos)
    		}
    		check.expr(nil, &x, init)
    	}
    	check.initConst(obj, &x)
    }
    
    func (check *Checker) varDecl(obj *Var, lhs []*Var, typ, init ast.Expr) {
    	assert(obj.typ == nil)
    
    	// determine type, if any
    	if typ != nil {
    		obj.typ = check.varType(typ)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 31K bytes
    - Viewed (0)
  3. src/go/types/expr.go

    				goto Error
    			}
    		}
    		x.setConst(e.Kind, e.Value)
    		if x.mode == invalid {
    			// The parser already establishes syntactic correctness.
    			// If we reach here it's because of number under-/overflow.
    			// TODO(gri) setConst (and in turn the go/constant package)
    			// should return an error describing the issue.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 49.7K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/expr.go

    				goto Error
    			}
    		}
    		x.setConst(e.Kind, e.Value)
    		if x.mode == invalid {
    			// The parser already establishes syntactic correctness.
    			// If we reach here it's because of number under-/overflow.
    			// TODO(gri) setConst (and in turn the go/constant package)
    			// should return an error describing the issue.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 51.7K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/walk/switch.go

    		high := ir.NewBinaryExpr(c.pos, ir.OLE, exprname, c.hi)
    		return ir.NewLogicalExpr(c.pos, ir.OANDAND, low, high)
    	}
    
    	// Optimize "switch true { ...}" and "switch false { ... }".
    	if ir.IsConst(exprname, constant.Bool) && !c.lo.Type().IsInterface() {
    		if ir.BoolVal(exprname) {
    			return c.lo
    		} else {
    			return ir.NewUnaryExpr(c.pos, ir.ONOT, c.lo)
    		}
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:34:01 UTC 2024
    - 30.1K bytes
    - Viewed (0)
  6. src/cmd/internal/obj/link.go

    	}
    	return nil
    }
    func (a *Addr) SetTarget(t *Prog) {
    	if a.Type != TYPE_BRANCH {
    		panic("setting branch target when type is not TYPE_BRANCH")
    	}
    	a.Val = t
    }
    
    func (a *Addr) SetConst(v int64) {
    	a.Sym = nil
    	a.Type = TYPE_CONST
    	a.Offset = v
    }
    
    // Prog describes a single machine instruction.
    //
    // The general instruction form is:
    //
    //	(1) As.Scond From [, ...RestArgs], To
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 33.1K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/flatbuffer_export.cc

      // for now for safety and this could be revisited when required.
      return Status(absl::StatusCode::kInvalidArgument, "Unsupported type");
    }
    
    static bool IsConst(Operation* op) {
      return isa<mlir::func::ConstantOp, mlir::arith::ConstantOp, mlir::TF::ConstOp,
                 tfl::ConstOp, tfl::QConstOp, tfl::SparseConstOp,
                 tfl::SparseQConstOp, mlir::TFL::NoValueOp,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:41:49 UTC 2024
    - 164.5K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/typecheck/typecheck.go

    			base.Errorf("invalid slice index %v (out of bounds for %d-element array)", r, tp.NumElem())
    			return false
    		} else if ir.IsConst(l, constant.String) && constant.Compare(x, token.GTR, constant.MakeInt64(int64(len(ir.StringVal(l))))) {
    			base.Errorf("invalid slice index %v (out of bounds for %d-byte string)", r, len(ir.StringVal(l)))
    			return false
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 20 19:08:34 UTC 2024
    - 30.5K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssa/_gen/PPC64Ops.go

    		{name: "ANDCCconst", argLength: 1, reg: regInfo{inputs: []regMask{gp | sp | sb}, outputs: []regMask{gp}}, asm: "ANDCC", aux: "Int64", typ: "(Int,Flags)"},           // arg0&aux == 0 // and-immediate sets CC on PPC, always.
    		{name: "ANDconst", argLength: 1, reg: regInfo{inputs: []regMask{gp | sp | sb}, outputs: []regMask{gp}}, clobberFlags: true, asm: "ANDCC", aux: "Int64", typ: "Int"}, // arg0&aux == 0 // and-immediate sets CC on PPC, always.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 19:59:38 UTC 2024
    - 43.8K bytes
    - Viewed (0)
  10. src/cmd/internal/obj/arm/asm5.go

    		// need to keep their RR shifts.
    		fixShift := func(a *obj.Addr) {
    			if a.Type == obj.TYPE_SHIFT {
    				typ := a.Offset & SHIFT_RR
    				isConst := a.Offset&(1<<4) == 0
    				amount := a.Offset >> 7 & 0x1f
    				if isConst && amount == 0 && (typ == SHIFT_LR || typ == SHIFT_AR || typ == SHIFT_RR) {
    					a.Offset -= typ
    					a.Offset += SHIFT_LL
    				}
    			}
    		}
    		fixShift(&p.From)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 15 20:51:01 UTC 2023
    - 79.4K bytes
    - Viewed (0)
Back to top