Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 195 for Inlining (0.16 sec)

  1. 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)
  2. test/fixedbugs/issue19261.dir/p.go

    	print(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
    	print(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
    	print(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
    	print(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
    }
    
    func G() {
    	F() // ERROR "inlining call to F"
    	print(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
    	print(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
    	print(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
    	print(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
    	print(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 11 23:20:44 UTC 2017
    - 713 bytes
    - Viewed (0)
  3. test/fixedbugs/issue29735.go

    // lies between two functions.
    
    package main
    
    import (
    	"runtime"
    )
    
    func main() {
    	var stack [1]uintptr
    	runtime.Callers(1, stack[:])
    	f() // inlined function, to give main some inlining info
    	for i := uintptr(0); true; i++ {
    		f := runtime.FuncForPC(stack[0] + i)
    		if f.Name() != "main.main" && f.Name() != "main.f" {
    			// Reached next function successfully.
    			break
    		}
    	}
    }
    
    func f() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 14 23:37:39 UTC 2019
    - 686 bytes
    - Viewed (0)
  4. src/cmd/compile/internal/inline/inlheur/function_properties.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package inlheur
    
    // This file defines a set of Go function "properties" intended to
    // guide inlining heuristics; these properties may apply to the
    // function as a whole, or to one or more function return values or
    // parameters.
    //
    // IMPORTANT: function properties are produced on a "best effort"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 10 18:52:53 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  5. test/fixedbugs/issue30898.go

    	// Dummy implementation for non-debug build.
    	// A non-empty implementation would be enabled with a build tag.
    }
    
    func bar() { // ERROR "can inline bar"
    	value := 10
    	debugf("value is %d", value) // ERROR "inlining call to debugf" "value does not escape" "\.\.\. argument does not escape"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 26 23:50:45 UTC 2021
    - 676 bytes
    - Viewed (0)
  6. test/inline_math_bits_rotate.go

    // errorcheck -0 -m
    
    //go:build amd64
    
    // Copyright 2018 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Test that inlining of math/bits.RotateLeft* treats those calls as intrinsics.
    
    package p
    
    import "math/bits"
    
    var (
    	x8  uint8
    	x16 uint16
    	x32 uint32
    	x64 uint64
    	x   uint
    )
    
    func f() { // ERROR "can inline f"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 571 bytes
    - Viewed (0)
  7. 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)
  8. src/cmd/compile/internal/inline/inlheur/testdata/dumpscores.go

    }
    
    func inlinable2(x int) int {
    	return noninl(-x)
    }
    
    //go:noinline
    func noninl(x int) int {
    	return x + 1
    }
    
    func tooLargeToInline(x int) int {
    	if x > 101 {
    		// Drive up the cost of inlining this func over the
    		// regular threshold.
    		return big(big(big(big(big(G + x)))))
    	}
    	if x < 100 {
    		// make sure this callsite is scored properly
    		G += inlinable(101, inlinable2)
    		if G == 101 {
    			return 0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 15 14:26:26 UTC 2023
    - 794 bytes
    - Viewed (0)
  9. test/fixedbugs/issue4167.go

    // run
    
    // Copyright 2012 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Issue 4167: inlining of a (*T).Method expression taking
    // its arguments from a multiple return breaks the compiler.
    
    package main
    
    type pa []int
    
    type p int
    
    func (this *pa) func1() (v *p, c int) {
    	for _ = range *this {
    		c++
    	}
    	v = (*p)(&c)
    	return
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 876 bytes
    - Viewed (0)
  10. test/fixedbugs/issue32680.go

    // As of 2019-06, bug affects/ed amd64 and s390x.
    
    package main
    
    var foo = []byte{105, 57, 172, 152}
    
    func main() {
    	for i := 0; i < len(foo); i += 4 {
    		// Requires inlining and non-constant i
    		// Note the bug/fix also apply to different widths, but was unable to reproduce for those.
    		println(readLittleEndian32_2(foo[i], foo[i+1], foo[i+2], foo[i+3]))
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 20 16:56:47 UTC 2019
    - 687 bytes
    - Viewed (0)
Back to top