Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,277 for Inliner (0.12 sec)

  1. test/fixedbugs/issue8139.go

    type M interface {
    	M()
    }
    
    var e interface{} = T{}
    var i M = T{}
    var b bool
    
    func f1() int {
    	if b {
    		return f1() // convince inliner not to inline
    	}
    	z := 0x11223344
    	_ = e.(T)
    	return z
    }
    
    func f2() int {
    	if b {
    		return f1() // convince inliner not to inline
    	}
    	z := 0x11223344
    	_ = i.(T)
    	return z
    }
    
    func main() {
    	x := f1()
    	y := f2()
    	if x != 0x11223344 || y != 0x11223344 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 800 bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tfr/passes/decompose.cc

    LogicalResult DecomposeTFOpsPass::InlineTFRFuncCalls() {
      // The Inliner will automatically use the registered dialect inliner.
      InlinerInterface inliner(&getContext());
      func::FuncOp func = getOperation();
      SymbolTable table(external_tfr_module_.has_value()
                            ? *external_tfr_module_
                            : func->getParentOfType<ModuleOp>());
    
      // The inliner only inlines the TFR call op.
      bool changed = false;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/executor_tpuv1_inline_tpu_island.cc

      if (!nested_module) return;
    
      InlinerInterface inliner(&getContext());
      auto walk_result = getOperation().walk([&](TF::PartitionedCallOp call_op) {
        if (!call_op.getF().getRootReference().getValue().starts_with(
                kNestedModule))
          return WalkResult::advance();
        // This is a call we need to inline!
        LLVM_DEBUG(llvm::dbgs()
                   << "Found call to inline: " << *call_op.getOperation() << "\n");
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 19 08:06:04 UTC 2023
    - 4K bytes
    - Viewed (0)
  4. test/fixedbugs/issue54632.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // The inliner would erroneously scan the caller function's body for
    // reassignments *before* substituting the inlined function call body,
    // which could cause false positives in deciding when it's safe to
    // transitively inline indirect function calls.
    
    package main
    
    func main() {
    	bug1()
    	bug2(fail)
    }
    
    func bug1() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 24 14:31:08 UTC 2022
    - 609 bytes
    - Viewed (0)
  5. test/fixedbugs/bug392.dir/one.go

    // license that can be found in the LICENSE file.
    
    // Functions that the inliner exported incorrectly.
    
    package one
    
    type T int
    
    // Issue 2678
    func F1(T *T) bool { return T == nil }
    
    // Issue 2682.
    func F2(c chan int) bool { return c == (<-chan int)(nil) }
    
    // Use of single named return value.
    func F3() (ret []int) { return append(ret, 1) }
    
    // Call of inlined method with blank receiver.
    func (_ *T) M() int { return 1 }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 851 bytes
    - Viewed (0)
  6. test/fixedbugs/issue4326.go

    // compiledir
    
    // 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.
    
    // Printing local variables in inliner shadows global names.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 253 bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/bridge.h

    namespace mlir {
    namespace TF {
    
    inline constexpr char kStandardPipelineBefore[] = "standard_pipeline_before";
    inline constexpr char kStandardPipelineAfter[] = "standard_pipeline_after";
    
    // Runs all passes involved in transforming or optimizing an MLIR graph without
    // any target specialization. When enable_logging is true, enables
    // tensorflow::BridgeLogger. When enable_inliner is true, enables the inliner
    // pass.
    ABSL_DEPRECATED(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 24 22:46:43 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/stablehlo/cc/pass_pipeline.cc

      AddShapeLegalizationPasses(pm);
      pm.addNestedPass<func::FuncOp>(
          CreateConvertCustomAggregationOpToQuantStatsPass());
      pm.addPass(createQuantizeCompositeFunctionsPass(options));
      // Add an inliner pass to inline quantized StableHLO functions.
      pm.addPass(createInlinerPass());
      if (pipeline_config.unpack_quantized_types()) {
        AddStablehloQuantToIntPasses(pm);
      }
    }
    
    void AddWeightOnlyQuantizationPasses(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 10 04:07:09 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/tests/resource_inlining.mlir

    // RUN: tf-opt -tf-shape-inference -inline='default-pipeline=''' %s | FileCheck %s --dump-input=always
    // RUN: tf-opt -tf-standard-pipeline=enable-inliner %s | FileCheck %s --dump-input=always
    
    // Tests function with argument has no resource subtype but caller operand has a
    // resource subtype, and after shape inference, function argument is refined and
    // no `tf.Cast` ops are generated.
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 24 05:47:26 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/inline/inlheur/scoring.go

    			st = "PROMOTED"
    			expinl = true
    		case hairyval <= bud && score > bud:
    			// Demoted: we would have inlined it before, but after
    			// score adjustment we decided not to inline.
    			st = "DEMOTED"
    		}
    		inlined := cs.aux&csAuxInlined != 0
    		indprom := false
    		if cs.parent != nil {
    			indprom = indirectlyDueToPromotion(cs.parent)
    		}
    		if inlined && indprom {
    			st += "|INDPROM"
    		}
    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