Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 358 for sloc (0.15 sec)

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

    	f := c.Fun("b1",
    		Bloc("b1",
    			Valu("v1", OpInitMem, types.TypeMem, 0, nil),
    			Valu("v6", OpArg, c.config.Types.Int64, 0, c.Temp(c.config.Types.Int64)),
    			Valu("v8", OpGetG, c.config.Types.Int64.PtrTo(), 0, nil, "v1"),
    			Valu("v11", OpARM64CMPconst, types.TypeFlags, 0, nil, "v6"),
    			Eq("v11", "b2", "b4"),
    		),
    		Bloc("b4",
    			Goto("b3"),
    		),
    		Bloc("b3",
    			Valu("v14", OpPhi, types.TypeMem, 0, nil, "v1", "v12"),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:09:14 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  2. src/log/slog/internal/slogtest/slogtest.go

    // Package slogtest contains support functions for testing slog.
    package slogtest
    
    import "log/slog"
    
    // RemoveTime removes the top-level time attribute.
    // It is intended to be used as a ReplaceAttr function,
    // to make example output deterministic.
    func RemoveTime(groups []string, a slog.Attr) slog.Attr {
    	if a.Key == slog.TimeKey && len(groups) == 0 {
    		return slog.Attr{}
    	}
    	return a
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 12 20:33:11 UTC 2023
    - 553 bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/tensorflow/passes/convert_tf_xla_op_to_tf_op.td

    def IsPrecisionEmpty :
      Constraint<CPred<"IsPrecisionEmpty($0)">>;
    
    // Creates Einsum Op from XlaDotV2 Op by generating equation.
    def CreateEinsumOpFromXlaDotV2Op : NativeCodeCall<
      "CreateEinsumOpFromXlaDotV2Op($_builder, $_loc, $0...)">;
    
    // Convert XlaDotV2 Op to Einsum Op with above two functions.
    def ConvertXlaDotV2OpToEinsumOp : Pat<
      (TF_XlaDotV2Op:$dot $lhs, $rhs, $dot_dimension_numbers, $precision_config),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Dec 10 05:52:02 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  4. src/runtime/sys_windows_386.s

    // using the initial stack allocated by the OS.
    TEXT runtime·wintls(SB),NOSPLIT,$0
    	// Allocate a TLS slot to hold g across calls to external code
    	MOVL	SP, BP
    	MOVL	runtime·_TlsAlloc(SB), AX
    	CALL	AX
    	MOVL	BP, SP
    
    	MOVL	AX, CX	// TLS index
    
    	// Assert that slot is less than 64 so we can use _TEB->TlsSlots
    	CMPL	CX, $64
    	JB	ok
    	// Fallback to the TEB arbitrary pointer.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 21 15:56:43 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  5. src/log/slog/slogtest_test.go

    	"encoding/json"
    	"fmt"
    	"io"
    	"log/slog"
    	"strings"
    	"testing"
    	"testing/slogtest"
    )
    
    func TestSlogtest(t *testing.T) {
    	for _, test := range []struct {
    		name  string
    		new   func(io.Writer) slog.Handler
    		parse func([]byte) (map[string]any, error)
    	}{
    		{"JSON", func(w io.Writer) slog.Handler { return slog.NewJSONHandler(w, nil) }, parseJSON},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 10 12:50:22 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/deadstore_test.go

    	c := testConfig(t)
    	ptrType := c.config.Types.BytePtr
    	fun := c.Fun("entry",
    		Bloc("entry",
    			Valu("start", OpInitMem, types.TypeMem, 0, nil),
    			Valu("sb", OpSB, c.config.Types.Uintptr, 0, nil),
    			Valu("v", OpConstBool, c.config.Types.Bool, 1, nil),
    			Valu("addr", OpAddr, ptrType, 0, nil, "sb"),
    			Goto("loop")),
    		Bloc("loop",
    			Valu("phi", OpPhi, types.TypeMem, 0, nil, "start", "store"),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 25 20:07:26 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  7. src/internal/coverage/pkid.go

    //    registered list:
    //    slot: 0 path='internal/cpu'  hard-coded id: 1
    //    slot: 1 path='internal/goarch'  hard-coded id: 2
    //    slot: 2 path='internal/runtime/atomic'  hard-coded id: 3
    //    slot: 3 path='internal/goos'
    //    slot: 4 path='runtime/internal/sys'  hard-coded id: 5
    //    slot: 5 path='internal/abi'  hard-coded id: 4
    //    slot: 6 path='runtime/internal/math'  hard-coded id: 6
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  8. src/log/slog/example_logvaluer_secret_test.go

    // license that can be found in the LICENSE file.
    
    package slog_test
    
    import (
    	"log/slog"
    	"log/slog/internal/slogtest"
    	"os"
    )
    
    // A token is a secret value that grants permissions.
    type Token string
    
    // LogValue implements slog.LogValuer.
    // It avoids revealing the token.
    func (Token) LogValue() slog.Value {
    	return slog.StringValue("REDACTED_TOKEN")
    }
    
    // This example demonstrates a Value that replaces itself
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 04 18:32:54 UTC 2023
    - 906 bytes
    - Viewed (0)
  9. src/testing/slogtest/run_test.go

    // license that can be found in the LICENSE file.
    
    package slogtest_test
    
    import (
    	"bytes"
    	"encoding/json"
    	"log/slog"
    	"testing"
    	"testing/slogtest"
    )
    
    func TestRun(t *testing.T) {
    	var buf bytes.Buffer
    
    	newHandler := func(*testing.T) slog.Handler {
    		buf.Reset()
    		return slog.NewJSONHandler(&buf, nil)
    	}
    	result := func(t *testing.T) map[string]any {
    		m := map[string]any{}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 20:37:12 UTC 2023
    - 623 bytes
    - Viewed (0)
  10. src/log/slog/example_logvaluer_group_test.go

    package slog_test
    
    import "log/slog"
    
    type Name struct {
    	First, Last string
    }
    
    // LogValue implements slog.LogValuer.
    // It returns a group containing the fields of
    // the Name, so that they appear together in the log output.
    func (n Name) LogValue() slog.Value {
    	return slog.GroupValue(
    		slog.String("first", n.First),
    		slog.String("last", n.Last))
    }
    
    func ExampleLogValuer_group() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 21 20:55:33 UTC 2023
    - 825 bytes
    - Viewed (0)
Back to top