Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 46 for isConst (0.12 sec)

  1. test/slice3.go

    		"v20",
    	}
    
    	parse := func(s string) (n int, isconst bool) {
    		if s == "vminus1" {
    			return -1, false
    		}
    		isconst = true
    		if s[0] == 'v' {
    			isconst = false
    			s = s[1:]
    		}
    		n, _ = strconv.Atoi(s)
    		return n, isconst
    	}
    
    	const Cap = 10 // cap of slice, array
    
    	for _, base := range []string{"array", "slice"} {
    		for _, i := range index {
    			iv, iconst := parse(i)
    			for _, j := range index {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 2.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/experimental/tac/execution_metadata_exporter.cc

    #include "tensorflow/compiler/mlir/lite/ir/tfl_ops.h"
    #include "tensorflow/compiler/mlir/lite/quantization/ir/QuantOps.h"
    #include "tensorflow/compiler/mlir/tensorflow/ir/tf_ops.h"
    
    namespace tflite {
    namespace {
    
    bool IsConst(mlir::Operation* op) {
      return llvm::isa<mlir::arith::ConstantOp, mlir::TF::ConstOp,
                       mlir::TFL::ConstOp, mlir::TFL::QConstOp>(op);
    }
    
    bool IsOpSupported(mlir::Operation* op, const std::string& hardware) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 06:11:34 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/walk/compare.go

    	var cs, ncs ir.Node // const string, non-const string
    	switch {
    	case ir.IsConst(n.X, constant.String) && ir.IsConst(n.Y, constant.String):
    		// ignore; will be constant evaluated
    	case ir.IsConst(n.X, constant.String):
    		cs = n.X
    		ncs = n.Y
    	case ir.IsConst(n.Y, constant.String):
    		cs = n.Y
    		ncs = n.X
    	}
    	if cs != nil {
    		cmp := n.Op()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 24 21:55:14 UTC 2023
    - 16.2K bytes
    - Viewed (0)
  4. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/symbols/descriptorBased/KtFe10DescKotlinPropertySymbol.kt

                }
                descriptor.ktSymbolKind
            }
    
        override val isLateInit: Boolean
            get() = withValidityAssertion { descriptor.isLateInit }
    
        override val isConst: Boolean
            get() = withValidityAssertion { descriptor.isConst }
    
        override val isVal: Boolean
            get() = withValidityAssertion { !descriptor.isVar }
    
        override val isExtension: Boolean
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Mon May 27 09:59:11 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/sccp_test.go

    			Goto("b2")),
    		Bloc("b2",
    			Exit("mem")))
    	sccp(fun.f)
    	CheckFunc(fun.f)
    	for name, value := range fun.values {
    		if strings.HasPrefix(name, "t") {
    			if !isConst(value) {
    				t.Errorf("Must be constant: %v", value.LongString())
    			}
    		}
    	}
    }
    
    func TestSCCPIf(t *testing.T) {
    	c := testConfig(t)
    	fun := c.Fun("b1",
    		Bloc("b1",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 12 21:01:50 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  6. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/symbols/KtFirKotlinPropertySymbol.kt

            }
    
        override val isOverride: Boolean get() = withValidityAssertion { firSymbol.isOverride }
        override val isConst: Boolean get() = withValidityAssertion { firSymbol.isConst }
        override val isStatic: Boolean get() = withValidityAssertion { firSymbol.isStatic }
        override val isActual: Boolean get() = withValidityAssertion { firSymbol.isActual }
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 11 15:45:42 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  7. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/source/SourceMetaDataVisitor.java

            }
        }
    
        @Override
        public void visit(FieldDeclaration fieldDeclaration, ClassMetaDataRepository<ClassMetaData> arg) {
            boolean isConst = getCurrentClass().isInterface() || (fieldDeclaration.isStatic() && fieldDeclaration.isFinal());
            if (isConst) {
                fieldDeclaration.getVariables().forEach(variableDeclarator -> {
                    String constName = variableDeclarator.getNameAsString();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 21 13:27:02 UTC 2023
    - 11.7K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/sccp.go

    	return true
    }
    
    // possibleConst checks if Value can be folded to const. For those Values that can
    // never become constants(e.g. StaticCall), we don't make futile efforts.
    func possibleConst(val *Value) bool {
    	if isConst(val) {
    		return true
    	}
    	switch val.Op {
    	case OpCopy:
    		return true
    	case OpPhi:
    		return true
    	case
    		// negate
    		OpNeg8, OpNeg16, OpNeg32, OpNeg64, OpNeg32F, OpNeg64F,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 16:54:50 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  9. analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/renderer/declarations/modifiers/renderers/KtRendererOtherModifiersProvider.kt

                        if (symbol.isNoinline) add(KtTokens.NOINLINE_KEYWORD)
                    }
    
                    if (symbol is KaKotlinPropertySymbol) {
                        if (symbol.isConst) add(KtTokens.CONST_KEYWORD)
                        if (symbol.isLateInit) add(KtTokens.LATEINIT_KEYWORD)
                    }
    
                    if (symbol is KaNamedClassOrObjectSymbol) {
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:34 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/typecheck/expr.go

    	n.Cap = DefaultLit(Expr(n.Cap), types.Types[types.TINT])
    
    	if ir.IsConst(n.Len, constant.Int) && ir.Int64Val(n.Len) < 0 {
    		base.Fatalf("len for OSLICEHEADER must be non-negative")
    	}
    
    	if ir.IsConst(n.Cap, constant.Int) && ir.Int64Val(n.Cap) < 0 {
    		base.Fatalf("cap for OSLICEHEADER must be non-negative")
    	}
    
    	if ir.IsConst(n.Len, constant.Int) && ir.IsConst(n.Cap, constant.Int) && constant.Compare(n.Len.Val(), token.GTR, n.Cap.Val()) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 23.1K bytes
    - Viewed (0)
Back to top