Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 112 for mpos (0.04 sec)

  1. src/cmd/internal/src/xpos.go

    }
    
    // XPos returns the corresponding XPos for the given pos,
    // adding pos to t if necessary.
    func (t *PosTable) XPos(pos Pos) XPos {
    	return XPos{t.baseIndex(pos.base), pos.lico}
    }
    
    func (t *PosTable) baseIndex(base *PosBase) int32 {
    	if base == nil {
    		return 0
    	}
    
    	if i, ok := t.indexMap[base]; ok {
    		return int32(i)
    	}
    
    	if base.fileIndex >= 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 01 15:52:41 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/syntax/pos.go

    func MakePos(base *PosBase, line, col uint) Pos { return Pos{base, sat32(line), sat32(col)} }
    
    // TODO(gri) IsKnown makes an assumption about linebase < 1.
    // Maybe we should check for Base() != nil instead.
    
    func (pos Pos) Pos() Pos       { return pos }
    func (pos Pos) IsKnown() bool  { return pos.line > 0 }
    func (pos Pos) Base() *PosBase { return pos.base }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 20:44:57 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  3. src/cmd/internal/src/xpos_test.go

    	}
    }
    
    func TestSetBase(t *testing.T) {
    	var tab PosTable
    	b1 := NewFileBase("b1", "b1")
    	orig := MakePos(b1, 42, 7)
    	xpos := tab.XPos(orig)
    
    	pos := tab.Pos(xpos)
    	new := NewInliningBase(b1, 2)
    	pos.SetBase(new)
    	xpos = tab.XPos(pos)
    
    	pos = tab.Pos(xpos)
    	if inl := pos.Base().InliningIndex(); inl != 2 {
    		t.Fatalf("wrong inlining index: %d", inl)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 01 15:52:41 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/reflectdata/helpers.go

    func kindRType(pos src.XPos, typ *types.Type, k types.Kind) ir.Node {
    	base.AssertfAt(typ.Kind() == k, pos, "want %v type, have %v", k, typ)
    	return TypePtrAt(pos, typ)
    }
    
    // mapRType asserts that typ is a map type, and returns an expression
    // that yields the *runtime._type value representing typ.
    func mapRType(pos src.XPos, typ *types.Type) ir.Node {
    	return kindRType(pos, typ, types.TMAP)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 12 04:50:32 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/stablehlo/tests/optimize_layout.mlir

    // CHECK:           %[[TPOS:.*]] = stablehlo.transpose %[[REDUCE]], dims = [0, 3, 1, 2]
    // CHECK:              : (tensor<1x56x56x64xf32>) -> tensor<1x64x56x56xf32>
    // CHECK:           return %[[TPOS]] : tensor<1x64x56x56xf32>
    
    func.func @commute_transpose_reduce_window(
          %input: tensor<1x114x114x64xf32>,
          %cst: tensor<f32>) -> tensor<1x64x56x56xf32> {
      %tpos = stablehlo.transpose %input, dims = [0, 3, 1, 2]
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 21:59:06 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/noder/posmap.go

    )
    
    // A posMap handles mapping from syntax.Pos to src.XPos.
    type posMap struct {
    	bases map[*syntax.PosBase]*src.PosBase
    	cache struct {
    		last *syntax.PosBase
    		base *src.PosBase
    	}
    }
    
    type poser interface{ Pos() syntax.Pos }
    type ender interface{ End() syntax.Pos }
    
    func (m *posMap) pos(p poser) src.XPos { return m.makeXPos(p.Pos()) }
    func (m *posMap) end(p ender) src.XPos { return m.makeXPos(p.End()) }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 27 03:43:35 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/typecheck/dcl.go

    	}
    }
    
    // make a new Node off the books.
    func TempAt(pos src.XPos, curfn *ir.Func, typ *types.Type) *ir.Name {
    	if curfn == nil {
    		base.FatalfAt(pos, "no curfn for TempAt")
    	}
    	if typ == nil {
    		base.FatalfAt(pos, "TempAt called with nil type")
    	}
    	if typ.Kind() == types.TFUNC && typ.Recv() != nil {
    		base.FatalfAt(pos, "misuse of method type: %v", typ)
    	}
    	types.CalcSize(typ)
    
    	sym := &types.Sym{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 14 13:15:50 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ir/const.go

    func NewString(pos src.XPos, s string) Node {
    	return NewBasicLit(pos, types.UntypedString, constant.MakeString(s))
    }
    
    // NewUintptr returns an OLITERAL representing v as a uintptr.
    func NewUintptr(pos src.XPos, v int64) Node {
    	return NewBasicLit(pos, types.Types[types.TUINTPTR], constant.MakeInt64(v))
    }
    
    // NewZero returns a zero value of the given type.
    func NewZero(pos src.XPos, typ *types.Type) Node {
    	switch {
    	case typ.HasNil():
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 12 18:53:26 UTC 2023
    - 4K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssa/trim.go

    		if bIsStmt {
    			sawStmt := false
    			for _, v := range s.Values {
    				if isPoorStatementOp(v.Op) {
    					continue
    				}
    				if v.Pos.SameFileAndLine(bPos) {
    					v.Pos = v.Pos.WithIsStmt()
    				}
    				sawStmt = true
    				break
    			}
    			if !sawStmt && s.Pos.SameFileAndLine(bPos) {
    				s.Pos = s.Pos.WithIsStmt()
    			}
    		}
    		// If `s` had more than one predecessor, update its phi-ops to
    		// account for the merge.
    		if ns > 1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 18 17:59:44 UTC 2022
    - 4.2K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/ir/copy.go

    // If pos.IsKnown(), it sets the source position of newly allocated Nodes to pos.
    func DeepCopy(pos src.XPos, n Node) Node {
    	var edit func(Node) Node
    	edit = func(x Node) Node {
    		switch x.Op() {
    		case ONAME, ONONAME, OLITERAL, ONIL, OTYPE:
    			return x
    		}
    		x = Copy(x)
    		if pos.IsKnown() {
    			x.SetPos(pos)
    		}
    		EditChildren(x, edit)
    		return x
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 18:57:57 UTC 2023
    - 1K bytes
    - Viewed (0)
Back to top