Idris2Doc : Compiler.Common

Compiler.Common

(source)

Definitions

recordCodegen : Type
  Generic interface to some code generator

Totality: total
Visibility: public export
Constructor: 
MkCG : (RefCtxtDefs->RefSynSyntaxInfo->String->String->ClosedTerm->String->Core (MaybeString)) -> (RefCtxtDefs->RefSynSyntaxInfo->String->ClosedTerm->Core ()) ->Maybe (RefCtxtDefs->RefSynSyntaxInfo->String->Core (Maybe (String, ListString))) ->MaybeString->Codegen

Projections:
.compileExpr : Codegen->RefCtxtDefs->RefSynSyntaxInfo->String->String->ClosedTerm->String->Core (MaybeString)
  Compile an Idris 2 expression, saving it to a file.
.executeExpr : Codegen->RefCtxtDefs->RefSynSyntaxInfo->String->ClosedTerm->Core ()
  Execute an Idris 2 expression directly.
.incCompileFile : Codegen->Maybe (RefCtxtDefs->RefSynSyntaxInfo->String->Core (Maybe (String, ListString)))
  Incrementally compile definitions in the current module (toIR defs)
if supported
Takes a source file name, returns the name of the generated object
file, if successful, plus any other backend specific data in a list
of strings. The generated object file should be placed in the same
directory as the associated TTC.
.incExt : Codegen->MaybeString
  If incremental compilation is supported, get the output file extension
.compileExpr : Codegen->RefCtxtDefs->RefSynSyntaxInfo->String->String->ClosedTerm->String->Core (MaybeString)
  Compile an Idris 2 expression, saving it to a file.

Visibility: public export
compileExpr : Codegen->RefCtxtDefs->RefSynSyntaxInfo->String->String->ClosedTerm->String->Core (MaybeString)
  Compile an Idris 2 expression, saving it to a file.

Visibility: public export
.executeExpr : Codegen->RefCtxtDefs->RefSynSyntaxInfo->String->ClosedTerm->Core ()
  Execute an Idris 2 expression directly.

Visibility: public export
executeExpr : Codegen->RefCtxtDefs->RefSynSyntaxInfo->String->ClosedTerm->Core ()
  Execute an Idris 2 expression directly.

Visibility: public export
.incCompileFile : Codegen->Maybe (RefCtxtDefs->RefSynSyntaxInfo->String->Core (Maybe (String, ListString)))
  Incrementally compile definitions in the current module (toIR defs)
if supported
Takes a source file name, returns the name of the generated object
file, if successful, plus any other backend specific data in a list
of strings. The generated object file should be placed in the same
directory as the associated TTC.

Visibility: public export
incCompileFile : Codegen->Maybe (RefCtxtDefs->RefSynSyntaxInfo->String->Core (Maybe (String, ListString)))
  Incrementally compile definitions in the current module (toIR defs)
if supported
Takes a source file name, returns the name of the generated object
file, if successful, plus any other backend specific data in a list
of strings. The generated object file should be placed in the same
directory as the associated TTC.

Visibility: public export
.incExt : Codegen->MaybeString
  If incremental compilation is supported, get the output file extension

Visibility: public export
incExt : Codegen->MaybeString
  If incremental compilation is supported, get the output file extension

Visibility: public export
dataUsePhase : Type
Totality: total
Visibility: public export
Constructors:
Cases : UsePhase
Lifted : UsePhase
ANF : UsePhase
VMCode : UsePhase

Hints:
EqUsePhase
OrdUsePhase
recordCompileData : Type
Totality: total
Visibility: public export
Constructor: 
MkCompileData : ClosedCExp->List (Name, String) ->List (Name, (FC, NamedDef)) ->List (Name, LiftedDef) ->List (Name, ANFDef) ->List (Name, VMDef) ->CompileData

Projections:
.anf : CompileData->List (Name, ANFDef)
.exported : CompileData->List (Name, String)
.lambdaLifted : CompileData->List (Name, LiftedDef)
.mainExpr : CompileData->ClosedCExp
.namedDefs : CompileData->List (Name, (FC, NamedDef))
.vmcode : CompileData->List (Name, VMDef)
.mainExpr : CompileData->ClosedCExp
Visibility: public export
mainExpr : CompileData->ClosedCExp
Visibility: public export
.exported : CompileData->List (Name, String)
Visibility: public export
exported : CompileData->List (Name, String)
Visibility: public export
.namedDefs : CompileData->List (Name, (FC, NamedDef))
Visibility: public export
namedDefs : CompileData->List (Name, (FC, NamedDef))
Visibility: public export
.lambdaLifted : CompileData->List (Name, LiftedDef)
Visibility: public export
lambdaLifted : CompileData->List (Name, LiftedDef)
Visibility: public export
.anf : CompileData->List (Name, ANFDef)
Visibility: public export
anf : CompileData->List (Name, ANFDef)
Visibility: public export
.vmcode : CompileData->List (Name, VMDef)
Visibility: public export
vmcode : CompileData->List (Name, VMDef)
Visibility: public export
compile : RefCtxtDefs=>RefSynSyntaxInfo=>Codegen->ClosedTerm->String->Core (MaybeString)
  compile
Given a value of type Codegen, produce a standalone function
that executes the `compileExpr` method of the Codegen

Visibility: export
execute : RefCtxtDefs=>RefSynSyntaxInfo=>Codegen->ClosedTerm->Core ()
  execute
As with `compile`, produce a functon that executes
the `executeExpr` method of the given Codegen

Visibility: export
incCompile : RefCtxtDefs=>RefSynSyntaxInfo=>Codegen->String->Core (Maybe (String, ListString))
Visibility: export
nonErased : RefCtxtDefs=>Name->CoreBool
Visibility: export
addForeignImpl : RefCtxtDefs=>Name->Core ()
Visibility: export
getCompileDataWith : RefCtxtDefs=>ListString->Bool->UsePhase->ClosedTerm->CoreCompileData
Visibility: export
getCompileData : RefCtxtDefs=>Bool->UsePhase->ClosedTerm->CoreCompileData
Visibility: export
compileTerm : RefCtxtDefs=>ClosedTerm->CoreClosedCExp
Visibility: export
getIncCompileData : RefCtxtDefs=>Bool->UsePhase->CoreCompileData
Visibility: export
exists : String->IOBool
  check to see if a given file exists

Visibility: export
parseCC : ListString->ListString->Maybe (String, ListString)
Visibility: export
dylib_suffix : String
Visibility: export
locate : RefCtxtDefs=>String->Core (String, String)
Visibility: export
copyLib : (String, String) ->Core ()
Visibility: export
getExtraRuntime : ListString->CoreString
Visibility: export
getWeakMemoLazy : ListString->Bool
Visibility: export
recordConstantPrimitives' : Type->Type
  Cast implementations. Values of `ConstantPrimitives` can
be used in a call to `castInt`, which then determines
the cast implementation based on the given pair of
constants.

Totality: total
Visibility: public export
Constructor: 
MkConstantPrimitives : (IntKind->str->Corestr) -> (IntKind->str->Corestr) -> (IntKind->str->Corestr) -> (IntKind->str->Corestr) -> (IntKind->str->Corestr) -> (IntKind->str->Corestr) -> (IntKind->IntKind->str->Corestr) ->ConstantPrimitives'str

Projections:
.charToInt : ConstantPrimitives'str->IntKind->str->Corestr
.doubleToInt : ConstantPrimitives'str->IntKind->str->Corestr
.intToChar : ConstantPrimitives'str->IntKind->str->Corestr
.intToDouble : ConstantPrimitives'str->IntKind->str->Corestr
.intToInt : ConstantPrimitives'str->IntKind->IntKind->str->Corestr
.intToString : ConstantPrimitives'str->IntKind->str->Corestr
.stringToInt : ConstantPrimitives'str->IntKind->str->Corestr
.charToInt : ConstantPrimitives'str->IntKind->str->Corestr
Visibility: public export
charToInt : ConstantPrimitives'str->IntKind->str->Corestr
Visibility: public export
.intToChar : ConstantPrimitives'str->IntKind->str->Corestr
Visibility: public export
intToChar : ConstantPrimitives'str->IntKind->str->Corestr
Visibility: public export
.stringToInt : ConstantPrimitives'str->IntKind->str->Corestr
Visibility: public export
stringToInt : ConstantPrimitives'str->IntKind->str->Corestr
Visibility: public export
.intToString : ConstantPrimitives'str->IntKind->str->Corestr
Visibility: public export
intToString : ConstantPrimitives'str->IntKind->str->Corestr
Visibility: public export
.doubleToInt : ConstantPrimitives'str->IntKind->str->Corestr
Visibility: public export
doubleToInt : ConstantPrimitives'str->IntKind->str->Corestr
Visibility: public export
.intToDouble : ConstantPrimitives'str->IntKind->str->Corestr
Visibility: public export
intToDouble : ConstantPrimitives'str->IntKind->str->Corestr
Visibility: public export
.intToInt : ConstantPrimitives'str->IntKind->IntKind->str->Corestr
Visibility: public export
intToInt : ConstantPrimitives'str->IntKind->IntKind->str->Corestr
Visibility: public export
ConstantPrimitives : Type
Visibility: public export
castInt : ConstantPrimitives'str->PrimType->PrimType->str->Corestr
  Implements casts from and to integral types by using
the implementations from the provided `ConstantPrimitives`.

Visibility: export