Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for indexlit (0.52 sec)

  1. src/cmd/compile/internal/typecheck/expr.go

    	}
    	return n
    }
    
    // tcSlice typechecks an OSLICE or OSLICE3 node.
    func tcSlice(n *ir.SliceExpr) ir.Node {
    	n.X = DefaultLit(Expr(n.X), nil)
    	n.Low = indexlit(Expr(n.Low))
    	n.High = indexlit(Expr(n.High))
    	n.Max = indexlit(Expr(n.Max))
    	hasmax := n.Op().IsSlice3()
    	l := n.X
    	if l.Type() == nil {
    		n.SetType(nil)
    		return n
    	}
    	if l.Type().IsArray() {
    		if !ir.IsAddressable(n.X) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/typecheck/typecheck.go

    		}
    	}
    
    	return n
    }
    
    // indexlit implements typechecking of untyped values as
    // array/slice indexes. It is almost equivalent to DefaultLit
    // but also accepts untyped numeric values representable as
    // value of type int (see also checkmake for comparison).
    // The result of indexlit MUST be assigned back to n, e.g.
    //
    //	n.Left = indexlit(n.Left)
    func indexlit(n ir.Node) ir.Node {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 20 19:08:34 UTC 2024
    - 30.5K bytes
    - Viewed (0)
  3. src/crypto/internal/edwards25519/scalar.go

    	for pos < 256 {
    		indexU64 := pos / 64
    		indexBit := pos % 64
    		var bitBuf uint64
    		if indexBit < 64-w {
    			// This window's bits are contained in a single u64
    			bitBuf = digits[indexU64] >> indexBit
    		} else {
    			// Combine the current 64 bits with bits from the next 64
    			bitBuf = (digits[indexU64] >> indexBit) | (digits[1+indexU64] << (64 - indexBit))
    		}
    
    		// Add carry into the current window
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo_conversions/reduce.cc

          value_eq.getRhs() != body.getArgument(2))
        return failure();
    
      mhlo::CompareOp index_lt = llvm::dyn_cast_or_null<mhlo::CompareOp>(
          index_and.getRhs().getDefiningOp());
      if (!index_lt ||
          index_lt.getComparisonDirection() != mhlo::ComparisonDirection::LT ||
          index_lt.getLhs() != body.getArgument(1) ||
          index_lt.getRhs() != body.getArgument(3))
        return failure();
    
      return success();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 20:53:17 UTC 2024
    - 8K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/base/CharMatcher.java

       * #matches} for each character.
       *
       * @param sequence the character sequence to examine from the beginning
       * @return an index, or {@code -1} if no character matches
       */
      public int indexIn(CharSequence sequence) {
        return indexIn(sequence, 0);
      }
    
      /**
       * Returns the index of the first matching BMP character in a character sequence, starting from a
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Feb 09 15:49:48 UTC 2024
    - 53.7K bytes
    - Viewed (0)
  6. guava/src/com/google/common/base/CharMatcher.java

       * #matches} for each character.
       *
       * @param sequence the character sequence to examine from the beginning
       * @return an index, or {@code -1} if no character matches
       */
      public int indexIn(CharSequence sequence) {
        return indexIn(sequence, 0);
      }
    
      /**
       * Returns the index of the first matching BMP character in a character sequence, starting from a
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Feb 09 15:49:48 UTC 2024
    - 53.8K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/walk/order.go

    			ir.SameSafeExpr(n.X, n.Y.(*ir.CallExpr).Args[0])
    
    		n.X = o.expr(n.X, nil)
    		if mapAppend {
    			indexLHS := n.X.(*ir.IndexExpr)
    			indexLHS.X = o.cheapExpr(indexLHS.X)
    			indexLHS.Index = o.cheapExpr(indexLHS.Index)
    
    			call := n.Y.(*ir.CallExpr)
    			arg0 := call.Args[0]
    			// ir.SameSafeExpr skips OCONVNOPs, so we must do the same here (#66096).
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 02:00:33 UTC 2024
    - 42.7K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/base/Splitter.java

                return new SplittingIterator(splitter, toSplit) {
                  @Override
                  int separatorStart(int start) {
                    return separatorMatcher.indexIn(toSplit, start);
                  }
    
                  @Override
                  int separatorEnd(int separatorPosition) {
                    return separatorPosition + 1;
                  }
                };
              }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Feb 09 15:49:48 UTC 2024
    - 23.7K bytes
    - Viewed (0)
  9. guava/src/com/google/common/base/Splitter.java

                return new SplittingIterator(splitter, toSplit) {
                  @Override
                  int separatorStart(int start) {
                    return separatorMatcher.indexIn(toSplit, start);
                  }
    
                  @Override
                  int separatorEnd(int separatorPosition) {
                    return separatorPosition + 1;
                  }
                };
              }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 24.4K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/translate/import_model.cc

              }
            }
          } else {
            auto index_it = it->second.find(0);
            if (index_it == it->second.end()) {
              return errors::FailedPrecondition(
                  "Missing feed output tensor at index 0 for node '", node->name(),
                  "'");
            }
            node->AddAttr("shape", index_it->second->second.shape);
            DataType dtype = index_it->second->second.imported_dtype;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 183.2K bytes
    - Viewed (0)
Back to top