Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for const0_val (0.17 sec)

  1. tensorflow/compiler/mlir/lite/stablehlo/transforms/fold_broadcast_pass.cc

        auto elem_type = const_val.getElementType();
        Attribute result;
        if (mlir::isa<FloatType>(elem_type)) {
          result = ConstFoldBroadcastInDim<FloatAttr>(result_type, const_val,
                                                      bcast_dims);
        } else if (mlir::isa<IntegerType>(elem_type)) {
          result = ConstFoldBroadcastInDim<IntegerAttr>(result_type, const_val,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/func.go

    	if c {
    		i = 1
    	}
    	return f.constVal(OpConstBool, t, i, true)
    }
    func (f *Func) ConstInt8(t *types.Type, c int8) *Value {
    	return f.constVal(OpConst8, t, int64(c), true)
    }
    func (f *Func) ConstInt16(t *types.Type, c int16) *Value {
    	return f.constVal(OpConst16, t, int64(c), true)
    }
    func (f *Func) ConstInt32(t *types.Type, c int32) *Value {
    	return f.constVal(OpConst32, t, int64(c), true)
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/sccp.go

    func rewireSuccessor(block *Block, constVal *Value) bool {
    	switch block.Kind {
    	case BlockIf:
    		block.removeEdge(int(constVal.AuxInt))
    		block.Kind = BlockPlain
    		block.Likely = BranchUnknown
    		block.ResetControls()
    		return true
    	case BlockJumpTable:
    		// Remove everything but the known taken branch.
    		idx := int(constVal.AuxInt)
    		if idx < 0 || idx >= len(block.Succs) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 16:54:50 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/loopbce.go

    						return false
    					}
    					if inclusive && v != limit.AuxInt || !inclusive && v+1 != limit.AuxInt {
    						// We know a better limit than the programmer did. Use our limit instead.
    						limit = f.constVal(limit.Op, limit.Type, v, true)
    						inclusive = true
    					}
    					return true
    				}
    				if step == 1 && !inclusive {
    					// Can't overflow because maxint is never a possible value.
    					return true
    				}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 07 17:37:47 UTC 2023
    - 11.8K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/_gen/rulegen.go

    func genResult0(rr *RuleRewrite, arch arch, result string, top, move bool, pos string, cse map[string]string) string {
    	resname, expr := splitNameExpr(result)
    	result = expr
    	// TODO: when generating a constant result, use f.constVal to avoid
    	// introducing copies just to clean them up again.
    	if result[0] != '(' {
    		// variable
    		if top {
    			// It in not safe in general to move a variable between blocks
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Sep 02 22:09:21 UTC 2023
    - 48.7K bytes
    - Viewed (0)
Back to top