Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for constantFold1 (0.1 sec)

  1. test/codegen/arithmetic.go

    // "(C - z) - x -> C - (z + x)" can optimize the following cases.
    func constantFold2(i0, j0, i1, j1 int) (int, int) {
    	// arm64:"ADD","MOVD\t[$]2","SUB"
    	// ppc64x: `SUBC\tR[0-9]+,\s[$]2,\sR`
    	r0 := (3 - i0) - (j0 + 1)
    	// arm64:"ADD","MOVD\t[$]4","SUB"
    	// ppc64x: `SUBC\tR[0-9]+,\s[$]4,\sR`
    	r1 := (3 - i1) - (j1 - 1)
    	return r0, r1
    }
    
    func constantFold3(i, j int) int {
    	// arm64: "MOVD\t[$]30","MUL",-"ADD",-"LSL"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 15:28:00 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/ir/tf_dialect.h

                                                 SmallVectorImpl<OpFoldResult> &);
      static void RegisterConstantFoldHook(ConstantFoldHook fn) {
        constant_fold_hook_ = std::move(fn);
      }
    
      static LogicalResult constantFold(Operation *op, ArrayRef<Attribute> operands,
                                        SmallVectorImpl<OpFoldResult> &results) {
        if (constant_fold_hook_) return constant_fold_hook_(op, operands, results);
        return failure();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 08 01:19:25 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/ir/tf_ops.cc

      LogicalResult fold(Operation *op, ArrayRef<Attribute> operands,
                         SmallVectorImpl<OpFoldResult> &results) const final {
        return TensorFlowDialect::constantFold(op, operands, results);
      }
    };
    
    // Helper function that implements the multi-device inlining policy behavior
    // for the inliner hook. In particular, for all function body nodes set unset
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14.6K bytes
    - Viewed (0)
Back to top