Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 20 for HasSideEffects (0.36 sec)

  1. src/cmd/compile/internal/ssa/_gen/main.go

    					log.Fatalf("faultOnNilArg1 with aux %s not allowed", v.aux)
    				}
    			}
    			if v.hasSideEffects {
    				fmt.Fprintln(w, "hasSideEffects: true,")
    			}
    			if v.zeroWidth {
    				fmt.Fprintln(w, "zeroWidth: true,")
    			}
    			if v.unsafePoint {
    				fmt.Fprintln(w, "unsafePoint: true,")
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 19 22:42:34 UTC 2023
    - 16.9K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/_gen/AMD64Ops.go

    		{name: "XCHGL", argLength: 3, reg: gpstorexchg, asm: "XCHGL", aux: "SymOff", resultInArg0: true, faultOnNilArg1: true, hasSideEffects: true, symEffect: "RdWr"},
    		{name: "XCHGQ", argLength: 3, reg: gpstorexchg, asm: "XCHGQ", aux: "SymOff", resultInArg0: true, faultOnNilArg1: true, hasSideEffects: true, symEffect: "RdWr"},
    
    		// Atomic adds.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 04 16:40:24 UTC 2023
    - 98K bytes
    - Viewed (1)
  3. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/bools/bools.go

    	exprs := op.split(e, seen)
    
    	// Partition the slice of expressions into commutative sets.
    	i := 0
    	var sets [][]ast.Expr
    	for j := 0; j <= len(exprs); j++ {
    		if j == len(exprs) || analysisutil.HasSideEffects(info, exprs[j]) {
    			if i < j {
    				sets = append(sets, exprs[i:j])
    			}
    			i = j + 1
    		}
    	}
    
    	return sets
    }
    
    // checkRedundant checks for expressions of the form
    //
    //	e && e
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/opGen.go

    		hasSideEffects: true,
    		generic:        true,
    	},
    	{
    		name:           "AtomicExchange64",
    		argLen:         3,
    		hasSideEffects: true,
    		generic:        true,
    	},
    	{
    		name:           "AtomicAdd32",
    		argLen:         3,
    		hasSideEffects: true,
    		generic:        true,
    	},
    	{
    		name:           "AtomicAdd64",
    		argLen:         3,
    		hasSideEffects: true,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 15:49:20 UTC 2024
    - 1M bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/fuse.go

    	return true
    }
    
    // isEmpty reports whether b contains any live values.
    // There may be false positives.
    func isEmpty(b *Block) bool {
    	for _, v := range b.Values {
    		if v.Uses > 0 || v.Op.IsCall() || v.Op.HasSideEffects() || v.Type.IsVoid() || opcodeTable[v.Op].nilCheck {
    			return false
    		}
    	}
    	return true
    }
    
    // fuseBlockPlain handles a run of blocks with length >= 2,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 31 20:45:54 UTC 2023
    - 9K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/deadcode.go

    				q = append(q, v)
    				if v.Pos.IsStmt() != src.PosNotStmt {
    					liveOrderStmts = append(liveOrderStmts, v)
    				}
    			}
    		}
    		for _, v := range b.Values {
    			if (opcodeTable[v.Op].call || opcodeTable[v.Op].hasSideEffects || opcodeTable[v.Op].nilCheck) && !live[v.ID] {
    				live[v.ID] = true
    				q = append(q, v)
    				if v.Pos.IsStmt() != src.PosNotStmt {
    					liveOrderStmts = append(liveOrderStmts, v)
    				}
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 08 00:29:01 UTC 2023
    - 9.2K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/branchelim.go

    	// or anything else with side-effects
    	for _, v := range b.Values {
    		if v.Op == OpPhi || isDivMod(v.Op) || isPtrArithmetic(v.Op) || v.Type.IsMemory() ||
    			v.MemoryArg() != nil || opcodeTable[v.Op].hasSideEffects {
    			return false
    		}
    	}
    	return true
    }
    
    func isDivMod(op Op) bool {
    	switch op {
    	case OpDiv8, OpDiv8u, OpDiv16, OpDiv16u,
    		OpDiv32, OpDiv32u, OpDiv64, OpDiv64u, OpDiv128u,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 30 17:46:51 UTC 2022
    - 12.7K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/deadstore.go

    		// Ignore Args since they can't be autos.
    		if v.Op.SymEffect() != SymNone && v.Op != OpArg {
    			panic("unhandled op with sym effect")
    		}
    
    		if v.Uses == 0 && v.Op != OpNilCheck && !v.Op.IsCall() && !v.Op.HasSideEffects() || len(args) == 0 {
    			// We need to keep nil checks even if they have no use.
    			// Also keep calls and values that have side effects.
    			return
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 25 20:07:26 UTC 2024
    - 11K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssa/value.go

    	if v.Type.IsMemory() {
    		// We don't need to preserve all memory ops, but we do need
    		// to keep calls at least (because they might have
    		// synchronization operations we can't see).
    		return false
    	}
    	if v.Op.HasSideEffects() {
    		// These are mostly synchronization operations.
    		return false
    	}
    	return true
    }
    
    // AutoVar returns a *Name and int64 representing the auto variable and offset within it
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 16:40:22 UTC 2024
    - 16.7K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/ssa/op.go

    	faultOnNilArg1    bool      // this op will fault if arg1 is nil (and aux encodes a small offset)
    	usesScratch       bool      // this op requires scratch memory space
    	hasSideEffects    bool      // for "reasons", not to be eliminated.  E.g., atomic store, #19182.
    	zeroWidth         bool      // op never translates into any machine code. example: copy, which may sometimes translate to machine code, is not zero-width.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 15:29:10 UTC 2024
    - 18.7K bytes
    - Viewed (0)
Back to top