Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for argv_index (0.22 sec)

  1. src/runtime/os_dragonfly.go

    }
    
    //go:nosplit
    func validSIGPROF(mp *m, c *sigctxt) bool {
    	return true
    }
    
    func sysargs(argc int32, argv **byte) {
    	n := argc + 1
    
    	// skip over argv, envp to get to auxv
    	for argv_index(argv, n) != nil {
    		n++
    	}
    
    	// skip NULL separator
    	n++
    
    	auxvp := (*[1 << 28]uintptr)(add(unsafe.Pointer(argv), uintptr(n)*goarch.PtrSize))
    	pairs := sysauxv(auxvp[:])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tfrt/ir/tfrt_fallback_util.cc

        mlir::func::FuncOp func, llvm::function_ref<void(int arg_index)> action) {
      for (int arg_index = 0; arg_index < func.getNumArguments(); ++arg_index) {
        if (IsArgConsumedByFallback(func, arg_index)) action(arg_index);
      }
    }
    
    void ForEachArgConsumedByFallback(
        mlir::ModuleOp module,
        llvm::function_ref<void(llvm::StringRef func_name, int arg_index)> action) {
      for (auto func : module.getOps<mlir::func::FuncOp>()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 30 02:12:49 UTC 2022
    - 2.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tfrt/ir/tfrt_fallback_util.h

    namespace tfrt {
    namespace fallback_async {
    
    bool IsArgConsumedByFallback(mlir::func::FuncOp func, int arg_index);
    
    void ForEachArgConsumedByFallback(
        mlir::func::FuncOp func, llvm::function_ref<void(int arg_index)> action);
    
    void ForEachArgConsumedByFallback(
        mlir::ModuleOp module,
        llvm::function_ref<void(llvm::StringRef func_name, int arg_index)> action);
    
    }  // namespace fallback_async
    }  // namespace tfrt
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 22 14:25:57 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/ir/tf_saved_model.h

    Operation *LookupBoundInput(func::FuncOp func, int arg_index,
                                const SymbolTable &symbol_table);
    
    template <typename T>
    T LookupBoundInputOfType(func::FuncOp func, int arg_index,
                             const SymbolTable &symbol_table) {
      return llvm::dyn_cast_or_null<T>(
          LookupBoundInput(func, arg_index, symbol_table));
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jan 18 03:21:34 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tfrt/tests/ir/tfrt_fallback_util_test.cc

      ASSERT_TRUE(module);
    
      std::vector<std::pair<std::string, int>> func_and_index;
      ForEachArgConsumedByFallback(
          module.get(),
          [&func_and_index](llvm::StringRef func_name, int arg_index) {
            func_and_index.push_back({func_name.str(), arg_index});
          });
    
      ASSERT_EQ(func_and_index.size(), 1);
      EXPECT_EQ(func_and_index[0].first, "test");
      EXPECT_EQ(func_and_index[0].second, 2);
    }
    
    }  // namespace
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 06 03:08:33 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  6. platforms/core-runtime/internal-instrumentation-processor/src/main/java/org/gradle/internal/instrumentation/processor/codegen/groovy/CodeGeneratingSignatureTreeVisitor.java

            result.addStatement("boolean $L = true", varargMatched);
            result.beginControlFlow("for (int argIndex = $1L; argIndex < invocation.getArgsCount(); argIndex++)", paramIndex);
    
            CodeBlock nextArg = CodeBlock.of("nextArg");
            result.addStatement("Object $L = invocation.getArgument(argIndex)", nextArg);
            result.beginControlFlow("if ($1L == null || $1L instanceof $2T)", nextArg, entryParamType);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:40 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/arch/arm/armasm/gnu.go

    		sep = ", "
    		buf.WriteString(text)
    	}
    	return buf.String()
    }
    
    func gnuArg(inst *Inst, argIndex int, arg Arg) string {
    	switch inst.Op &^ 15 {
    	case LDRD_EQ, LDREXD_EQ, STRD_EQ:
    		if argIndex == 1 {
    			// second argument in consecutive pair not printed
    			return ""
    		}
    	case STREXD_EQ:
    		if argIndex == 2 {
    			// second argument in consecutive pair not printed
    			return ""
    		}
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 14 17:21:52 UTC 2016
    - 3.5K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/ir/host_runtime/tfrt_ops.cc

        if (index < 0) {
          return emitOpError() << "variable_arg_indices must be positive";
        }
    
        if (index <= prev_index) {
          return emitOpError()
                 << "variable_arg_indices must be sorted in ascending order";
        }
        prev_index = index;
      }
    
      return mlir::success();
    }
    
    }  // namespace TF
    }  // namespace mlir
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/optimize_global_tensors.cc

    // A global tensor is bound to arguments of multiple funcs.
    // This struct tracks which funcs (and which argument to that func) the global
    // tensor is bound to.
    struct GlobalTensorUse {
      mutable func::FuncOp func;
      size_t arg_index;
    };
    
    using GlobalTensorUsesMap =
        std::map<GlobalTensorOp, std::vector<GlobalTensorUse>>;
    
    bool IsImmutable(GlobalTensorOp global_tensor,
                     ArrayRef<GlobalTensorUse> global_tensor_uses,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  10. platforms/core-runtime/internal-instrumentation-processor/src/main/java/org/gradle/internal/instrumentation/processor/codegen/groovy/MatchesSignatureGeneratingSignatureTreeVisitor.java

            result.addStatement("boolean $L = true", varargMatched);
            result.beginControlFlow("for (int argIndex = $1L; argIndex < argumentClasses.length; argIndex++)", paramIndex);
            CodeBlock nextArg = CodeBlock.of("nextArg");
            result.addStatement("Class<?> $L = argumentClasses[argIndex]", nextArg);
            result.beginControlFlow("if ($2L != null && !$1T.class.isAssignableFrom($2L))", entryParamType, nextArg);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Oct 02 15:44:14 UTC 2023
    - 7.3K bytes
    - Viewed (0)
Back to top