Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 67 for Inlining (0.28 sec)

  1. test/newinline.go

    	runtime.GC()
    }
    
    // Issue #29737 - make sure we can do inlining for a chain of recursive functions
    func ee() { // ERROR "can inline ee"
    	ff(100) // ERROR "inlining call to ff" "inlining call to gg" "inlining call to hh"
    }
    
    func ff(x int) { // ERROR "can inline ff"
    	if x < 0 {
    		return
    	}
    	gg(x - 1) // ERROR "inlining call to gg" "inlining call to hh"
    }
    func gg(x int) { // ERROR "can inline gg"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 16 20:15:25 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  2. test/inline.go

    	runtime.GC()
    }
    
    // Issue #29737 - make sure we can do inlining for a chain of recursive functions
    func ee() { // ERROR "can inline ee"
    	ff(100) // ERROR "inlining call to ff" "inlining call to gg" "inlining call to hh"
    }
    
    func ff(x int) { // ERROR "can inline ff"
    	if x < 0 {
    		return
    	}
    	gg(x - 1) // ERROR "inlining call to gg" "inlining call to hh"
    }
    func gg(x int) { // ERROR "can inline gg"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 11.7K 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/internal/obj/pcln.go

    	return int32(f)
    }
    
    // pcinlineState holds the state used to create a function's inlining
    // tree and the PC-value table that maps PCs to nodes in that tree.
    type pcinlineState struct {
    	globalToLocal map[int]int
    	localTree     InlTree
    }
    
    // addBranch adds a branch from the global inlining tree in ctxt to
    // the function's local inlining tree, returning the index in the local tree.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 31 20:45:15 UTC 2022
    - 11.8K bytes
    - Viewed (0)
  5. 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)
  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/internal/src/pos.go

    	// typically generated code and we can't say much about the
    	// original source at that point but for the file:line info
    	// that's provided via a line directive).
    	// TODO(gri) This may not be true if we have an inlining base.
    	// We may want to differentiate at some point.
    	format(w, p.RelFilename(), p.RelLine(), p.RelCol(), showCol)
    	if showOrig {
    		io.WriteString(w, "[")
    		format(w, p.Filename(), p.Line(), p.Col(), showCol)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 01 15:52:41 UTC 2023
    - 15.5K bytes
    - Viewed (0)
  8. 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)
  9. src/runtime/callers_test.go

    	}
    	return line
    }
    
    func BenchmarkCallers(b *testing.B) {
    	b.Run("cached", func(b *testing.B) {
    		// Very pcvalueCache-friendly, no inlining.
    		callersCached(b, 100)
    	})
    	b.Run("inlined", func(b *testing.B) {
    		// Some inlining, still pretty cache-friendly.
    		callersInlined(b, 100)
    	})
    	b.Run("no-cache", func(b *testing.B) {
    		// Cache-hostile
    		callersNoCache(b, 100)
    	})
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 28 21:36:31 UTC 2023
    - 12.1K bytes
    - Viewed (0)
  10. 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)
Back to top