Documentation

Lean.Compiler.ConstFolding

Constant folding for primitives that have special runtime support.

@[inline, reducible]
Instances For
    @[inline, reducible]
    Instances For
      Instances For
        Instances For
          Instances For
            Instances For
              def Lean.Compiler.foldBinUInt (fn : Lean.Compiler.NumScalarTypeInfoBoolNatNatNat) (beforeErasure : Bool) (a₁ : Lean.Expr) (a₂ : Lean.Expr) :
              Instances For
                def Lean.Compiler.foldUIntAdd (beforeErasure : Bool) (a₁ : Lean.Expr) (a₂ : Lean.Expr) :
                Instances For
                  def Lean.Compiler.foldUIntMul (beforeErasure : Bool) (a₁ : Lean.Expr) (a₂ : Lean.Expr) :
                  Instances For
                    def Lean.Compiler.foldUIntDiv (beforeErasure : Bool) (a₁ : Lean.Expr) (a₂ : Lean.Expr) :
                    Instances For
                      def Lean.Compiler.foldUIntMod (beforeErasure : Bool) (a₁ : Lean.Expr) (a₂ : Lean.Expr) :
                      Instances For
                        def Lean.Compiler.foldUIntSub (beforeErasure : Bool) (a₁ : Lean.Expr) (a₂ : Lean.Expr) :
                        Instances For
                          Instances For
                            def Lean.Compiler.toDecidableExpr (beforeErasure : Bool) (pred : Lean.Expr) (r : Bool) :
                            Instances For
                              def Lean.Compiler.foldNatBinPred (mkPred : Lean.ExprLean.ExprLean.Expr) (fn : NatNatBool) (beforeErasure : Bool) (a₁ : Lean.Expr) (a₂ : Lean.Expr) :
                              Instances For
                                def Lean.Compiler.foldNatDecEq (beforeErasure : Bool) (a₁ : Lean.Expr) (a₂ : Lean.Expr) :
                                Instances For
                                  def Lean.Compiler.foldNatDecLt (beforeErasure : Bool) (a₁ : Lean.Expr) (a₂ : Lean.Expr) :
                                  Instances For
                                    def Lean.Compiler.foldNatDecLe (beforeErasure : Bool) (a₁ : Lean.Expr) (a₂ : Lean.Expr) :
                                    Instances For
                                      Instances For
                                        Instances For
                                          @[export lean_fold_bin_op]
                                          def Lean.Compiler.foldBinOp (beforeErasure : Bool) (f : Lean.Expr) (a : Lean.Expr) (b : Lean.Expr) :
                                          Instances For
                                            @[export lean_fold_un_op]
                                            def Lean.Compiler.foldUnOp (beforeErasure : Bool) (f : Lean.Expr) (a : Lean.Expr) :
                                            Instances For