Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 57 for add_args (0.21 sec)

  1. src/cmd/compile/internal/ssagen/phi.go

    			if w != nil {
    				// two witnesses, need a phi value
    				v.Op = ssa.OpPhi
    				v.AddArgs(args...)
    				v.Aux = nil
    				continue loop
    			}
    			w = a // save witness
    		}
    		if w == nil {
    			s.s.Fatalf("no witness for reachable phi %s", v)
    		}
    		// One witness. Make v a copy of w.
    		v.Op = ssa.OpCopy
    		v.Aux = nil
    		v.AddArg(w)
    	}
    }
    
    // lookupVarOutgoing finds the variable's value at the end of block b.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 18 17:59:44 UTC 2022
    - 15.2K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/text/internal/language/match.go

    			t.RegionID = Region(x.region)
    		}
    		return true
    	}
    	return false
    }
    
    // Maximize returns a new tag with missing tags filled in.
    func (t Tag) Maximize() (Tag, error) {
    	return addTags(t)
    }
    
    func addTags(t Tag) (Tag, error) {
    	// We leave private use identifiers alone.
    	if t.IsPrivateUse() {
    		return t, nil
    	}
    	if t.ScriptID != 0 && t.RegionID != 0 {
    		if t.LangID != 0 {
    			// already fully specified
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/transforms/raise_custom_ops.cc

        new_block->addArguments(op->getOperandTypes(),
                                SmallVector<Location>(op->getNumOperands(), loc));
        for (const auto &idx_args : llvm::enumerate(new_block->getArguments())) {
          inner_op->setOperand(idx_args.index(), idx_args.value());
        }
        custom_op->setAttrs(inner_op->getAttrs());
        builder.create<YieldOp>(loc, inner_op->getResults());
        custom_op.getBody().takeBody(region);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 17 07:31:01 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/shortcircuit.go

    			// this handles all other uses of v.
    			argP, argQ := v.Args[cidx], v.Args[1^cidx]
    			u.replaceUses(v, argQ)
    			phi := t.Func.newValue(OpPhi, v.Type, t, v.Pos)
    			phi.AddArg2(argQ, argP)
    			t.replaceUses(v, phi)
    			if v.Uses == 0 {
    				return
    			}
    			v.moveTo(m, i)
    			// The phi in m belongs to whichever pred idx corresponds to t.
    			if m.Preds[0].b == t {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 03 17:47:02 UTC 2022
    - 12.6K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/phiopt.go

    	}
    	v.AddArg(a)
    
    	cvt := v.Block.NewValue1(v.Pos, OpCvtBoolToUint8, v.Block.Func.Config.Types.UInt8, a)
    	switch v.Type.Size() {
    	case 1:
    		v.reset(OpCopy)
    	case 2:
    		v.reset(OpZeroExt8to16)
    	case 4:
    		v.reset(OpZeroExt8to32)
    	case 8:
    		v.reset(OpZeroExt8to64)
    	default:
    		v.Fatalf("bad int size %d", v.Type.Size())
    	}
    	v.AddArg(cvt)
    
    	f := b0.Func
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 8.1K bytes
    - Viewed (0)
  6. src/reflect/abi.go

    		e = len(a.steps)
    	} else {
    		e = a.valueStart[i+1]
    	}
    	return a.steps[s:e]
    }
    
    // addArg extends the abiSeq with a new Go value of type t.
    //
    // If the value was stack-assigned, returns the single
    // abiStep describing that translation, and nil otherwise.
    func (a *abiSeq) addArg(t *abi.Type) *abiStep {
    	// We'll always be adding a new value, so do that first.
    	pStart := len(a.steps)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 17:08:32 UTC 2024
    - 15K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/fuse_comparisons.go

    		if !canSpeculativelyExecute(b) {
    			return false
    		}
    
    		// Logically combine the control values for p and b.
    		v := b.NewValue0(bc.Pos, op, bc.Type)
    		v.AddArg(pc)
    		v.AddArg(bc)
    
    		// Set the combined control value as the control value for b.
    		b.SetControl(v)
    
    		// Modify p so that it jumps directly to b.
    		p.removeEdge(i)
    		p.Kind = BlockPlain
    		p.Likely = BranchUnknown
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 4K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/text/internal/language/language.go

    		if t.RegionID == 0 && t.ScriptID != 0 && t.LangID != 0 {
    			base, _ := addTags(Tag{LangID: t.LangID})
    			if base.ScriptID == t.ScriptID {
    				return Tag{LangID: t.LangID}
    			}
    		}
    		return t
    	}
    	if t.LangID != 0 {
    		if t.RegionID != 0 {
    			maxScript := t.ScriptID
    			if maxScript == 0 {
    				max, _ := addTags(t)
    				maxScript = max.ScriptID
    			}
    
    			for i := range parents {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 16.8K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssa/fuse_branchredirect.go

    				// Fix up child to have one more predecessor.
    				child.Preds = append(child.Preds, Edge{p, pk.i})
    				ai := b.Succs[out].i
    				for _, v := range child.Values {
    					if v.Op != OpPhi {
    						continue
    					}
    					v.AddArg(v.Args[ai])
    				}
    				if b.Func.pass.debug > 0 {
    					b.Func.Warnl(b.Controls[0].Pos, "Redirect %s based on %s", b.Controls[0].Op, p.Controls[0].Op)
    				}
    				changed = true
    				k--
    				break
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 16 21:40:11 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/ssa/loopreschedchecks.go

    		mem1 := sched.NewValue1I(bb.Pos, OpSelectN, types.TypeMem, 0, call)
    		sched.AddEdgeTo(h)
    		headerMemPhi.AddArg(mem1)
    
    		bb.Succs[p.i] = Edge{test, 0}
    		test.Preds = append(test.Preds, Edge{bb, p.i})
    
    		// Must correct all the other phi functions in the header for new incoming edge.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 21:17:10 UTC 2023
    - 16K bytes
    - Viewed (0)
Back to top