Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 79 for Inlining (0.17 sec)

  1. src/cmd/compile/internal/inline/interleaved/interleaved.go

    		inlheur.SetupScoreAdjustments()
    	}
    
    	var inlProfile *pgoir.Profile // copy of profile for inlining
    	if base.Debug.PGOInline != 0 {
    		inlProfile = profile
    	}
    
    	// First compute inlinability of all functions in the package.
    	inline.CanInlineFuncs(pkg.Funcs, inlProfile)
    
    	// Now we make a second pass to do devirtualization and inlining of
    	// calls. Order here should not matter.
    	for _, fn := range pkg.Funcs {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 20:42:52 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/transforms/optimize_functional_ops.cc

                      return WalkResult::interrupt();
                    return WalkResult::advance();
                  })
                  .wasInterrupted();
    }
    
    // Folds TensorFlow If op with constant conditional operand by inlining the
    // function body based on the conditional value.
    class FoldIfOp : public OpRewritePattern<TF::IfOp> {
     public:
      explicit FoldIfOp(MLIRContext* context)
          : OpRewritePattern<TF::IfOp>(context) {}
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/ir/tf_ops.cc

      bool isLegalToInline(Operation *call, Operation *callable,
                           bool wouldBeCloned) const final {
        // Skip inlining for TPUPartitionedCalls and RemoteCalls.
        if (isa<TPUPartitionedCallOp>(call)) return false;
        if (isa<RemoteCallOp>(call)) return false;
        // Maintain inlining for  `tf.function`s with jit_compile option.
        if (callable->hasAttr("tf._XlaMustCompile")) return true;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/test/pgo_inl_test.go

    	// Check that a hash match allows PGO inlining.
    	const srcPos = "example.com/pgo/inline/inline_hot.go:81:19"
    	const hashMatch = "pgohash triggered " + srcPos + " (inline)"
    	pgoDebugRE := regexp.MustCompile(`hot-budget check allows inlining for call .* at ` + strings.ReplaceAll(srcPos, ".", "\\."))
    	hash := "v1" // 1 matches srcPos, v for verbose (print source location)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/tensorflow/passes/convert_tpu_model_to_cpu.td

        NativeCodeCall<"cast<TF::BatchFunctionOp>($0[0].getDefiningOp()).getArgOperands()">;
    
    // Replaces `TF_BatchFunctionOp` into `TF_PartitionedCallOp` that calls the
    // same $f. This may be required, for example, when inlining is desired,
    // because `TF_BatchFunctionOp` doesn't have the `CallOpInterface` trait.
    def ReplaceBatchFunctionOpToPartitionedCallOp : Pat<
      (TF_BatchFunctionOp:$src_op_res
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 02 18:58:35 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/test/inl_test.go

    		// nextFreeFast calls sys.TrailingZeros64, which on 386 is implemented in asm and is not inlinable.
    		// We currently don't have midstack inlining so nextFreeFast is also not inlinable on 386.
    		// On loong64, mips64x and riscv64, TrailingZeros64 is not intrinsified and causes nextFreeFast
    		// too expensive to inline (Issue 22239).
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 09 04:07:57 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ir/func.go

    // An Inline holds fields used for function bodies that can be inlined.
    type Inline struct {
    	Cost int32 // heuristic cost of inlining this function
    
    	// Copy of Func.Dcl for use during inlining. This copy is needed
    	// because the function's Dcl may change from later compiler
    	// transformations. This field is also populated when a function
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:05:44 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/inline/inlheur/scoring.go

    	}
    
    	// First some score adjustments to discourage inlining in selected cases.
    	if csflags&CallSiteOnPanicPath != 0 {
    		score, tmask = adjustScore(panicPathAdj, score, tmask)
    	}
    	if csflags&CallSiteInInitFunc != 0 {
    		score, tmask = adjustScore(initFuncAdj, score, tmask)
    	}
    
    	// Then adjustments to encourage inlining in selected cases.
    	if csflags&CallSiteInLoop != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 20:42:52 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  9. src/runtime/symtabinl_test.go

    package runtime
    
    import (
    	"internal/abi"
    	"internal/stringslite"
    	"runtime/internal/sys"
    )
    
    func XTestInlineUnwinder(t TestingT) {
    	if TestenvOptimizationOff() {
    		t.Skip("skipping test with inlining optimizations disabled")
    	}
    
    	pc1 := abi.FuncPCABIInternal(tiuTest)
    	f := findfunc(pc1)
    	if !f.valid() {
    		t.Fatalf("failed to resolve tiuTest at PC %#x", pc1)
    	}
    
    	want := map[string]int{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 15:41:45 UTC 2024
    - 3K bytes
    - Viewed (0)
  10. src/sync/once.go

    	// This is why the slow path falls back to a mutex, and why
    	// the o.done.Store must be delayed until after f returns.
    
    	if o.done.Load() == 0 {
    		// Outlined slow-path to allow inlining of the fast-path.
    		o.doSlow(f)
    	}
    }
    
    func (o *Once) doSlow(f func()) {
    	o.m.Lock()
    	defer o.m.Unlock()
    	if o.done.Load() == 0 {
    		defer o.done.Store(1)
    		f()
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 21:14:51 UTC 2024
    - 2.5K bytes
    - Viewed (0)
Back to top