Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 50 for cfunc (0.06 sec)

  1. src/cmd/go/testdata/script/cover_coverpkg_partial.txt

    func TestB(t *testing.T) {
    	if BFunc() == 1010101 {
    		t.Fatalf("bad!")
    	}
    }
    -- c/c.go --
    package c
    
    var G int
    
    func CFunc(x, y int) int {
    	G += x
    	G -= y
    	return x + y
    }
    -- c/c_test.go --
    package c
    
    import "testing"
    
    func TestC(t *testing.T) {
    	if CFunc(10, 10) == 1010101 {
    		t.Fatalf("bad!")
    	}
    }
    -- d/d.go --
    package d
    
    const FortyTwo = 42
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 20:12:49 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  2. src/cmd/internal/obj/objfile.go

    	}
    	if s.CFunc() {
    		fmt.Fprintf(ctxt.Bso, "cfunc ")
    	}
    	if s.NoSplit() {
    		fmt.Fprintf(ctxt.Bso, "nosplit ")
    	}
    	if s.Func() != nil && s.Func().FuncFlag&abi.FuncFlagTopFrame != 0 {
    		fmt.Fprintf(ctxt.Bso, "topframe ")
    	}
    	if s.Func() != nil && s.Func().FuncFlag&abi.FuncFlagAsm != 0 {
    		fmt.Fprintf(ctxt.Bso, "asm ")
    	}
    	fmt.Fprintf(ctxt.Bso, "size=%d", s.Size)
    	if s.Type == objabi.STEXT {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 24K bytes
    - Viewed (0)
  3. src/cmd/internal/obj/link.go

    func (a *Attribute) DuplicateOK() bool        { return a.load()&AttrDuplicateOK != 0 }
    func (a *Attribute) MakeTypelink() bool       { return a.load()&AttrMakeTypelink != 0 }
    func (a *Attribute) CFunc() bool              { return a.load()&AttrCFunc != 0 }
    func (a *Attribute) NoSplit() bool            { return a.load()&AttrNoSplit != 0 }
    func (a *Attribute) Leaf() bool               { return a.load()&AttrLeaf != 0 }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 33.1K bytes
    - Viewed (0)
  4. src/cmd/internal/obj/ppc64/obj9.go

    	} else {
    		return
    	}
    	obj.Nopout(p)
    }
    
    func preprocess(ctxt *obj.Link, cursym *obj.LSym, newprog obj.ProgAlloc) {
    	// TODO(minux): add morestack short-cuts with small fixed frame-size.
    	if cursym.Func().Text == nil || cursym.Func().Text.Link == nil {
    		return
    	}
    
    	c := ctxt9{ctxt: ctxt, cursym: cursym, newprog: newprog}
    
    	p := c.cursym.Func().Text
    	textstksiz := p.To.Offset
    	if textstksiz == -8 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 18:17:17 UTC 2024
    - 40.8K bytes
    - Viewed (0)
  5. src/cmd/internal/obj/riscv/obj.go

    // concrete, real RISC-V instructions or directive pseudo-ops like TEXT,
    // PCDATA, and FUNCDATA.
    func preprocess(ctxt *obj.Link, cursym *obj.LSym, newprog obj.ProgAlloc) {
    	if cursym.Func().Text == nil || cursym.Func().Text.Link == nil {
    		return
    	}
    
    	// Generate the prologue.
    	text := cursym.Func().Text
    	if text.As != obj.ATEXT {
    		ctxt.Diag("preprocess: found symbol that does not start with TEXT directive")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 07 03:32:27 UTC 2024
    - 77K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ir/func.go

    	fn.SetTypecheck(1)
    
    	name.Func = fn
    
    	return fn
    }
    
    func (f *Func) isStmt() {}
    
    func (n *Func) copy() Node                                  { panic(n.no("copy")) }
    func (n *Func) doChildren(do func(Node) bool) bool          { return doNodes(n.Body, do) }
    func (n *Func) editChildren(edit func(Node) Node)           { editNodes(n.Body, edit) }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:05:44 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/typecheck/func.go

    // (Call typecheck.Func instead.)
    func tcFunc(n *ir.Func) {
    	if base.EnableTrace && base.Flag.LowerT {
    		defer tracePrint("tcFunc", n)(nil)
    	}
    
    	if name := n.Nname; name.Typecheck() == 0 {
    		base.AssertfAt(name.Type() != nil, n.Pos(), "missing type: %v", name)
    		name.SetTypecheck(1)
    	}
    }
    
    // tcCall typechecks an OCALL node.
    func tcCall(n *ir.CallExpr, top int) ir.Node {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 06 15:23:18 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/common/func.cc

    // Returns true iff the function's symbol is public.
    bool IsPublicFuncOp(func::FuncOp func_op) {
      return SymbolTable::getSymbolVisibility(&*func_op) ==
             SymbolTable::Visibility::Public;
    }
    
    }  // namespace
    
    func::FuncOp FindMainFuncOp(ModuleOp module_op) {
      if (const auto main_func_op = module_op.lookupSymbol<func::FuncOp>(
              kImportModelDefaultGraphFuncName);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Feb 19 06:55:11 UTC 2024
    - 2K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssa/func.go

    }
    func (f *Func) ConstInt32(t *types.Type, c int32) *Value {
    	return f.constVal(OpConst32, t, int64(c), true)
    }
    func (f *Func) ConstInt64(t *types.Type, c int64) *Value {
    	return f.constVal(OpConst64, t, c, true)
    }
    func (f *Func) ConstFloat32(t *types.Type, c float64) *Value {
    	return f.constVal(OpConst32F, t, int64(math.Float64bits(float64(float32(c)))), true)
    }
    func (f *Func) ConstFloat64(t *types.Type, c float64) *Value {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/common/func.h

    #define TENSORFLOW_COMPILER_MLIR_QUANTIZATION_COMMON_FUNC_H_
    
    #include "mlir/Dialect/Func/IR/FuncOps.h"  // from @llvm-project
    #include "mlir/IR/BuiltinOps.h"  // from @llvm-project
    
    namespace mlir::quant {
    
    // Returns a public `func::FuncOp` in `module_op` whose name matches either
    // `main` or `serving_default`. If `func::FuncOps` with both names exist, the
    // function with name "main" takes precedence. Returns null if no such a
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Feb 19 06:55:11 UTC 2024
    - 1.3K bytes
    - Viewed (0)
Back to top