Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 40 for setFoo (0.25 sec)

  1. src/cmd/link/internal/loader/loader.go

    func (l *Loader) SymGot(s Sym) int32 {
    	if v, ok := l.got[s]; ok {
    		return v
    	}
    	return -1
    }
    
    // SetGot sets the GOT offset of symbol i.
    func (l *Loader) SetGot(i Sym, v int32) {
    	if i >= Sym(len(l.objSyms)) || i == 0 {
    		panic("bad symbol for SetGot")
    	}
    	if v == -1 {
    		delete(l.got, i)
    	} else {
    		l.got[i] = v
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 20:26:10 UTC 2024
    - 81.5K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/passes/quantize_composite_functions.cc

        return failure();
      }
    
      for (Operation& inner_op : quantized_func.getBody().front().getOperations()) {
        if (!inner_op.hasAttr(kAttrMapAttribute)) continue;
        inner_op.setLoc(main_op->getLoc());
      }
      return success();
    }
    
    // Get the corresponding quantized function name from the given function name.
    std::string GetQuantizedFunctionName(StringRef func_name,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 54.5K bytes
    - Viewed (0)
  3. src/encoding/json/decode.go

    			} else {
    				d.saveError(&UnmarshalTypeError{Value: "bool", Type: v.Type(), Offset: int64(d.readIndex())})
    			}
    		case reflect.Bool:
    			v.SetBool(value)
    		case reflect.Interface:
    			if v.NumMethod() == 0 {
    				v.Set(reflect.ValueOf(value))
    			} else {
    				d.saveError(&UnmarshalTypeError{Value: "bool", Type: v.Type(), Offset: int64(d.readIndex())})
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:18:55 UTC 2024
    - 35.3K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/rewrite.go

    	if v < 0 {
    		return false
    	}
    	if (v & 0xFFF) == 0 {
    		v >>= 12
    	}
    	return v <= 0xFFF
    }
    
    // setPos sets the position of v to pos, then returns true.
    // Useful for setting the result of a rewrite's position to
    // something other than the default.
    func setPos(v *Value, pos src.XPos) bool {
    	v.Pos = pos
    	return true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:02:52 UTC 2024
    - 64.2K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssagen/ssa.go

    		p.Pos = p.Pos.WithNotStmt()
    	}
    	return p
    }
    
    // Pc returns the current Prog.
    func (s *State) Pc() *obj.Prog {
    	return s.pp.Next
    }
    
    // SetPos sets the current source position.
    func (s *State) SetPos(pos src.XPos) {
    	s.pp.Pos = pos
    }
    
    // Br emits a single branch instruction and returns the instruction.
    // Not all architectures need the returned instruction, but otherwise
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 284.9K bytes
    - Viewed (0)
  6. src/text/template/exec.go

    	panic("not reached")
    }
    
    func (s *state) evalBool(typ reflect.Type, n parse.Node) reflect.Value {
    	s.at(n)
    	if n, ok := n.(*parse.BoolNode); ok {
    		value := reflect.New(typ).Elem()
    		value.SetBool(n.True)
    		return value
    	}
    	s.errorf("expected bool; found %s", n)
    	panic("not reached")
    }
    
    func (s *state) evalString(typ reflect.Type, n parse.Node) reflect.Value {
    	s.at(n)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:22:24 UTC 2024
    - 32K bytes
    - Viewed (0)
  7. src/reflect/value.go

    		} else {
    			typedmemmove(v.typ(), v.ptr, x.ptr)
    		}
    	} else {
    		*(*unsafe.Pointer)(v.ptr) = x.ptr
    	}
    }
    
    // SetBool sets v's underlying value.
    // It panics if v's Kind is not [Bool] or if [Value.CanSet] returns false.
    func (v Value) SetBool(x bool) {
    	v.mustBeAssignable()
    	v.mustBe(Bool)
    	*(*bool)(v.ptr) = x
    }
    
    // SetBytes sets v's underlying value.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 119.9K bytes
    - Viewed (0)
  8. src/reflect/all_test.go

    	shouldPanic("value of type string is not assignable to type bool", func() { vo(new(bool)).Elem().Set(vo("")) })
    	shouldPanic("call of reflect.Value.SetBool on string Value", func() { vo(new(string)).Elem().SetBool(false) })
    	shouldPanic("reflect.Value.SetBytes using unaddressable value", func() { vo("").SetBytes(nil) })
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
  9. src/cmd/link/internal/ld/lib.go

    	if ldr.SymGot(s) >= 0 {
    		return
    	}
    
    	Adddynsym(ldr, target, syms, s)
    	got := ldr.MakeSymbolUpdater(syms.GOT)
    	ldr.SetGot(s, int32(got.Size()))
    	got.AddUint(target.Arch, 0)
    
    	if target.IsElf() {
    		if target.Arch.PtrSize == 8 {
    			rela := ldr.MakeSymbolUpdater(syms.Rela)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 18:45:27 UTC 2024
    - 88.6K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/ssa/rewriteARM64.go

    	// cond: x.Uses == 1 && setPos(v, x.Pos) && clobber(x)
    	// result: (MOVQstorezero {s} [i] ptr mem)
    	for {
    		i := auxIntToInt32(v.AuxInt)
    		s := auxToSym(v.Aux)
    		ptr := v_0
    		x := v_1
    		if x.Op != OpARM64MOVDstorezero || auxIntToInt32(x.AuxInt) != i+8 || auxToSym(x.Aux) != s {
    			break
    		}
    		mem := x.Args[1]
    		if ptr != x.Args[0] || !(x.Uses == 1 && setPos(v, x.Pos) && clobber(x)) {
    			break
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 15:49:20 UTC 2024
    - 608.6K bytes
    - Viewed (0)
Back to top