Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 236 for funcPC (0.17 sec)

  1. src/internal/abi/funcpc.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build !gccgo
    
    package abi
    
    // FuncPC* intrinsics.
    //
    // CAREFUL: In programs with plugins, FuncPC* can return different values
    // for the same function (because there are actually multiple copies of
    // the same function in the address space). To be safe, don't use the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 27 21:15:37 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  2. src/internal/abi/abi_test.go

    	"path/filepath"
    	"strings"
    	"testing"
    )
    
    func TestFuncPC(t *testing.T) {
    	// Test that FuncPC* can get correct function PC.
    	pcFromAsm := abi.FuncPCTestFnAddr
    
    	// Test FuncPC for locally defined function
    	pcFromGo := abi.FuncPCTest()
    	if pcFromGo != pcFromAsm {
    		t.Errorf("FuncPC returns wrong PC, want %x, got %x", pcFromAsm, pcFromGo)
    	}
    
    	// Test FuncPC for imported function
    	pcFromGo = abi.FuncPCABI0(abi.FuncPCTestFn)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 29 18:31:05 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ir/func.go

    func (n *Func) editChildren(edit func(Node) Node)           { editNodes(n.Body, edit) }
    func (n *Func) editChildrenWithHidden(edit func(Node) Node) { editNodes(n.Body, edit) }
    
    func (f *Func) Type() *types.Type                { return f.Nname.Type() }
    func (f *Func) Sym() *types.Sym                  { return f.Nname.Sym() }
    func (f *Func) Linksym() *obj.LSym               { return f.Nname.Linksym() }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:05:44 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/walk/expr.go

    		return
    	}
    
    	// looking for either direct method calls and interface method calls of:
    	//	reflect.Type.Method        - func(int) reflect.Method
    	//	reflect.Type.MethodByName  - func(string) (reflect.Method, bool)
    	//
    	//	reflect.Value.Method       - func(int) reflect.Value
    	//	reflect.Value.MethodByName - func(string) reflect.Value
    	methodName := dot.Sel.Name
    	t := dot.Selection.Type
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:34:01 UTC 2024
    - 27.6K bytes
    - Viewed (0)
  5. src/debug/pe/file_test.go

    	return unsafe.Pointer(uintptr(p) + x)
    }
    
    func funcPC(f interface{}) uintptr {
    	var a uintptr
    	return **(**uintptr)(add(unsafe.Pointer(&f), unsafe.Sizeof(a)))
    }
    
    func main() {
    	kernel32 := syscall.MustLoadDLL("kernel32.dll")
    	psapi := syscall.MustLoadDLL("psapi.dll")
    	getModuleHandle := kernel32.MustFindProc("GetModuleHandleW")
    	getCurrentProcess := kernel32.MustFindProc("GetCurrentProcess")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 01 02:25:16 UTC 2023
    - 22.3K bytes
    - Viewed (0)
  6. test/closure3.dir/main.go

    			b := 3
    			return func(y int) int { // ERROR "can inline main.func27.1" "can inline main.main.func27.func34"
    				c := 5
    				return func(z int) int { // ERROR "can inline main.func27.1.1" "can inline main.main.func27.func34.1" "can inline main.func27.main.func27.1.2" "can inline main.main.func27.main.main.func27.func34.func36"
    					return a*x + b*y + c*z
    				}(10) // ERROR "inlining call to main.func27.1.1"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 17 19:36:29 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  7. src/runtime/panic.go

    // Declared here to mark them as ABIInternal.
    func panicIndex(x int, y int)
    func panicIndexU(x uint, y int)
    func panicSliceAlen(x int, y int)
    func panicSliceAlenU(x uint, y int)
    func panicSliceAcap(x int, y int)
    func panicSliceAcapU(x uint, y int)
    func panicSliceB(x int, y int)
    func panicSliceBU(x uint, y int)
    func panicSlice3Alen(x int, y int)
    func panicSlice3AlenU(x uint, y int)
    func panicSlice3Acap(x int, y int)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 43.8K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/experimental/tac/tests/raise-target-subgraphs.mlir

      func.return %0 : tensor<i32>
    }
    }
    
    // CHECK:     func.func @simpleWhile(%arg0: tensor<i32>) -> tensor<i32> {
    // CHECK:       %0 = call @func_0_CPU_FLOAT(%arg0) {tac.device = "CPU", tac.inference_type = "FLOAT", tac.interface_name = "func_0"} : (tensor<i32>) -> tensor<i32>
    // CHECK:       return %0 : tensor<i32>
    // CHECK:     }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 74.9K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/experimental/tac/tests/pick-subgraphs.mlir

        %2 = func.call @func_2_CPU_FLOAT(%0, %1) {tac.device = "CPU", tac.inference_type = "FLOAT", tac.interface_name = "func_2"} : (tensor<100xf32>, tensor<100xf32>) -> tensor<2x100xf32>
        func.return %2 : tensor<2x100xf32>
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 24.3K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/experimental/tac/tests/get-alternative-subgraph.mlir

    module {
      func.func @simpleTest(%arg0: tensor<1xf32>, %arg1: tensor<1xf32>, %arg2: tensor<1xf32>, %arg3: tensor<1xf32>) -> tensor<2x1xf32> {
        %0 = func.call @func_0_GPU_FLOAT(%arg0, %arg1, %arg2) {tac.interface_name = "func_0"} : (tensor<1xf32>, tensor<1xf32>, tensor<1xf32>) -> tensor<1xf32>
        %1 = func.call @func_1_GPU_FLOAT(%arg0, %arg3) {tac.interface_name = "func_1"} : (tensor<1xf32>, tensor<1xf32>) -> tensor<1xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 20.1K bytes
    - Viewed (0)
Back to top