Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 1,698 for switch3 (0.12 sec)

  1. platforms/native/language-native/src/integTest/groovy/org/gradle/language/swift/SwiftIncrementalCompileIntegrationTest.groovy

        @RequiresInstalledToolChain(ToolChainRequirement.SWIFTC_4)
        def 'changing Swift tool chain rebuilds everything'() {
            given:
            def swiftc3 = AvailableToolChains.getToolChain(ToolChainRequirement.SWIFTC_3)
            def swiftc4 = AvailableToolChains.getToolChain(ToolChainRequirement.SWIFTC_4)
            Assume.assumeNotNull(swiftc3, swiftc4)
    
            initScript.text = """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  2. test/newinline.go

    }
    
    func switchBreak(x, y int) int { // ERROR "can inline switchBreak"
    	var n int
    	switch x {
    	case 0:
    		n = 1
    	Done:
    		switch y {
    		case 0:
    			n += 10
    			break Done
    		}
    		n = 2
    	}
    	return n
    }
    
    func switchType(x interface{}) int { // ERROR "can inline switchType" "x does not escape"
    	switch x.(type) {
    	case int:
    		return x.(int)
    	default:
    		return 0
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 16 20:15:25 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/g3doc/tf_dialects.md

    capture would be displayed as:
    
    ```mlir {.mlir}
    %2, %ctl2 = tf_executor.island(%ctl0) wraps tf.Add %1, %0 : tensor<*xf32>
    ```
    
    ### `tf_executor.Switch` Operation
    
    [`tf_executor.Switch`](https://www.tensorflow.org/api_docs/cc/class/tensorflow/ops/switch):
    takes two inputs,`predicate`and`data`and returns two regular
    outputs,`true_output`,`false_output`. The`data`input is copied
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 13 16:33:28 UTC 2021
    - 16K bytes
    - Viewed (0)
  4. src/internal/types/testdata/check/stmt0.go

    func typeswitches() {
    	var i int
    	var x interface{}
    
    	switch x.(type) {}
    	switch (x /* ERROR "outside type switch" */ .(type)) {}
    
    	switch x.(type) {
    	default:
    	default /* ERROR "multiple defaults" */ :
    	}
    
    	switch x /* ERROR "declared and not used" */ := x.(type) {}
    	switch _ /* ERROR "no new variable on left side of :=" */ := x.(type) {}
    
    	switch x := x.(type) {
    	case int:
    		var y int = x
    		_ = y
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 19K bytes
    - Viewed (0)
  5. test/return.go

    func _() int {
    	switch x {
    	case 1:
    		print(2)
    		fallthrough
    	case 2:
    		return 4
    	}
    } // ERROR "missing return"
    
    func _() int {
    	switch x {
    	case 1:
    		print(2)
    		panic(3)
    	}
    } // ERROR "missing return"
    
    // if any breaks refer to the switch, switch is no longer okay
    
    func _() int {
    L:
    	switch x {
    	case 1:
    		print(2)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 32.7K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/ir/tf_executor.cc

    //===----------------------------------------------------------------------===//
    // tf_executor.SwitchN
    //===----------------------------------------------------------------------===//
    
    LogicalResult SwitchNOp::verify() {
      SwitchNOp switchn = *this;
      IntegerAttr num_outs = switchn->getAttrOfType<IntegerAttr>("num_outs");
      if (!num_outs)
        return switchn.emitOpError() << "expects a `num_outs` integer attribute";
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 42.7K bytes
    - Viewed (0)
  7. src/go/types/stmt.go

    		case token.FALLTHROUGH:
    			if ctxt&fallthroughOk == 0 {
    				var msg string
    				switch {
    				case ctxt&finalSwitchCase != 0:
    					msg = "cannot fallthrough final case in switch"
    				case ctxt&inTypeSwitch != 0:
    					msg = "cannot fallthrough in type switch"
    				default:
    					msg = "fallthrough statement out of place"
    				}
    				check.error(s, MisplacedFallthrough, msg)
    			}
    		default:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 30.6K bytes
    - Viewed (0)
  8. src/net/error_test.go

    	if nestedErr == nil {
    		return nil
    	}
    
    	switch err := nestedErr.(type) {
    	case *OpError:
    		if err := err.isValid(); err != nil {
    			return err
    		}
    		nestedErr = err.Err
    		goto second
    	}
    	return fmt.Errorf("unexpected type on 1st nested level: %T", nestedErr)
    
    second:
    	if isPlatformError(nestedErr) {
    		return nil
    	}
    	switch err := nestedErr.(type) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:20:52 UTC 2023
    - 20.3K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/arch/x86/x86asm/gnu.go

    			found := false
    			for i := len(inst.Prefix) - 1; i >= 0; i-- {
    				switch inst.Prefix[i] & 0xFF {
    				case 0xF3:
    					if !found {
    						found = true
    						inst.Prefix[i] |= PrefixImplicit
    					}
    				case 0xF2:
    					inst.Prefix[i] &^= PrefixImplicit
    				}
    			}
    			inst.Op = MOVNTSS
    		}
    	}
    
    	// Add implicit arguments.
    	switch inst.Op {
    	case MONITOR:
    		inst.Args[0] = EDX
    		inst.Args[1] = ECX
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 21.4K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/arch/x86/x86asm/intel.go

    			break
    		}
    		iargs = append(iargs, a)
    	}
    
    	switch inst.Op {
    	case INSB, INSD, INSW, OUTSB, OUTSD, OUTSW, LOOPNE, JCXZ, JECXZ, JRCXZ, LOOP, LOOPE, MOV, XLATB:
    		if inst.Op == MOV && (inst.Opcode>>16)&0xFFFC != 0x0F20 {
    			break
    		}
    		for i, p := range inst.Prefix {
    			if p&0xFF == PrefixAddrSize {
    				inst.Prefix[i] &^= PrefixImplicit
    			}
    		}
    	}
    
    	switch inst.Op {
    	case MOV:
    		dst, _ := inst.Args[0].(Reg)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 29 22:23:32 UTC 2017
    - 11.7K bytes
    - Viewed (0)
Back to top