Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 152 for IsStmt (0.1 sec)

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

    // also recursively invalidates any of those whose use
    // count goes to zero.  It returns whether any of the
    // invalidated values was marked with IsStmt.
    //
    // BEWARE of doing this *before* you've applied intended
    // updates to SSA.
    func (v *Value) invalidateRecursively() bool {
    	lostStmt := v.Pos.IsStmt() == src.PosIsStmt
    	if v.InCache {
    		v.Block.Func.unCache(v)
    	}
    	v.Op = OpInvalid
    
    	for _, a := range v.Args {
    		a.Uses--
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 16:40:22 UTC 2024
    - 16.7K bytes
    - Viewed (0)
  2. src/cmd/internal/src/pos_test.go

    		{makeLico(lineMax+1, colMax+1).withNotStmt(), fmt.Sprintf(":%d", lineMax) + not, lineMax, 0},
    	} {
    		x := test.x
    		if got := formatstr("", x.Line(), x.Col(), true) + fmt.Sprintf(":%d", x.IsStmt()); got != test.string {
    			t.Errorf("%s: got %q", test.string, got)
    		}
    	}
    }
    
    func TestLogue(t *testing.T) {
    	defp := fmt.Sprintf(":%d", PosDefaultLogue)
    	pro := fmt.Sprintf(":%d", PosPrologueEnd)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 14 23:50:26 UTC 2022
    - 8.4K bytes
    - Viewed (0)
  3. src/debug/dwarf/line.go

    	// instructions. Columns are numbered beginning at 1. It may
    	// be 0 to indicate the "left edge" of the line.
    	Column int
    
    	// IsStmt indicates that Address is a recommended breakpoint
    	// location, such as the beginning of a line, statement, or a
    	// distinct subpart of a statement.
    	IsStmt bool
    
    	// BasicBlock indicates that Address is the beginning of a
    	// basic block.
    	BasicBlock bool
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 19:33:30 UTC 2023
    - 23.5K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/trim.go

    func trim(f *Func) {
    	n := 0
    	for _, b := range f.Blocks {
    		if !trimmableBlock(b) {
    			f.Blocks[n] = b
    			n++
    			continue
    		}
    
    		bPos := b.Pos
    		bIsStmt := bPos.IsStmt() == src.PosIsStmt
    
    		// Splice b out of the graph. NOTE: `mergePhi` depends on the
    		// order, in which the predecessors edges are merged here.
    		p, i := b.Preds[0].b, b.Preds[0].i
    		s, j := b.Succs[0].b, b.Succs[0].i
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 18 17:59:44 UTC 2022
    - 4.2K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/debug_lines_test.go

    		if len(matches) == 2 {
    			stmt, err := strconv.ParseInt(matches[1], 10, 32)
    			if err != nil {
    				t.Fatalf("Expected to parse a line number but saw %s instead on dump line #%d, error %v", matches[1], dumpLineNum, err)
    			}
    			if testing.Verbose() {
    				fmt.Printf("Saw stmt# %d for submatch '%s' on dump line #%d = '%s'\n", stmt, matches[1], dumpLineNum, line)
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 20:24:52 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/rewrite.go

    					// the data flow, it is the better choice.
    					if a.Pos.IsStmt() == src.PosIsStmt {
    						if aa.Block == a.Block && aa.Pos.Line() == a.Pos.Line() && aa.Pos.IsStmt() != src.PosNotStmt {
    							aa.Pos = aa.Pos.WithIsStmt()
    						} else if v.Block == a.Block && v.Pos.Line() == a.Pos.Line() && v.Pos.IsStmt() != src.PosNotStmt {
    							v.Pos = v.Pos.WithIsStmt()
    						} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:02:52 UTC 2024
    - 64.2K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/cse.go

    	}
    
    	rewrites := int64(0)
    
    	// Apply substitutions
    	for _, b := range f.Blocks {
    		for _, v := range b.Values {
    			for i, w := range v.Args {
    				if x := rewrite[w.ID]; x != nil {
    					if w.Pos.IsStmt() == src.PosIsStmt {
    						// about to lose a statement marker, w
    						// w is an input to v; if they're in the same block
    						// and the same line, v is a good-enough new statement boundary.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 31 21:41:20 UTC 2022
    - 9.6K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssagen/ssa.go

    }
    
    // newValue1Apos adds a new value with one argument and an aux value to the current block.
    // isStmt determines whether the created values may be a statement or not
    // (i.e., false means never, yes means maybe).
    func (s *state) newValue1Apos(op ssa.Op, t *types.Type, aux ssa.Aux, arg *ssa.Value, isStmt bool) *ssa.Value {
    	if isStmt {
    		return s.curBlock.NewValue1A(s.peekPos(), op, t, aux, arg)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 284.9K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ir/func.go

    	// Most functions are ABIInternal. The importer or symabis
    	// pass may override this.
    	fn.ABI = obj.ABIInternal
    	fn.SetTypecheck(1)
    
    	name.Func = fn
    
    	return fn
    }
    
    func (f *Func) isStmt() {}
    
    func (n *Func) copy() Node                                  { panic(n.no("copy")) }
    func (n *Func) doChildren(do func(Node) bool) bool          { return doNodes(n.Body, do) }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:05:44 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  10. src/cmd/internal/obj/dwarf.go

    			wrote = true
    		}
    		if prologue && !wrotePrologue {
    			dctxt.AddUint8(lines, uint8(dwarf.DW_LNS_set_prologue_end))
    			wrotePrologue = true
    			wrote = true
    		}
    		if stmt != newStmt {
    			dctxt.AddUint8(lines, uint8(dwarf.DW_LNS_negate_stmt))
    			stmt = newStmt
    			wrote = true
    		}
    
    		if line != int64(newLine) || wrote {
    			pcdelta := p.Pc - pc
    			lastpc = p.Pc
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 01 20:40:28 UTC 2023
    - 22K bytes
    - Viewed (0)
Back to top