Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for isSpeculatable (0.1 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/hoist_loop_invariant.cc

    bool ShouldMoveOutOfRegion(
        Operation *op, Region *region,
        const llvm::DenseSet<ResourceHandle> &read_only_vars) {
      return ResourceOpCanBeHoisted(op, region, read_only_vars) ||
             (isMemoryEffectFree(op) && isSpeculatable(op));
    }
    
    bool OnlyHasReadEffect(Operation *op) {
      auto interface = llvm::dyn_cast<MemoryEffectOpInterface>(op);
      if (!interface) return false;
      return interface.onlyHasEffect<MemoryEffects::Read>();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.3K bytes
    - Viewed (0)
Back to top