builtinsΒΆ

This module exposes the selene and hugr artifacts and steps, for registration with a build planner. Note that it does not expose the compilation from hugr to selene-compatible object files, as this is managed by the Interface plugin being used.

Classes

SeleneExecutableKind()

SeleneObjectFileKind()

SeleneObjectToSeleneExecutable(input_kind, ...)

Link selene object with selene core library to create the final executable.

HUGREnvelopeFileKind()

HUGREnvelopeBytesKind()

HUGRPackageKind()

HUGRPackagePointerKind()

HUGRPackageToHUGREnvelopeBytesStep(...)

Convert a HUGR package to a .hugr file

HUGRPackagePointerToHugrPackageStep(...)

Convert a HUGR package pointer to a HUGR package

HUGREnvelopeBytesToHUGRPackageStep(...)

Convert a HUGR file to a HUGR package

HUGREnvelopeBytesToHUGREnvelopeFileStep(...)

Convert a HUGR file to a HUGR package

HUGREnvelopeFileToHUGREnvelopeBytesStep(...)

Convert a HUGR file to a HUGR package

HeliosLLVMIRStringKind()

HeliosLLVMIRFileKind()

HeliosLLVMBitcodeStringKind()

HeliosLLVMBitcodeFileKind()

HeliosObjectFileKind()

LLVMBitcodeStringToLLVMBitcodeFileStep(...)

Convert a bitcode string to a file (by writing the bytes)

LLVMIRStringToLLVMIRFileStep(input_kind, ...)

Convert a LLVM IR string to a file (by writing the text)

HeliosLLVMIRFileToHeliosObjectFileStep(...)

Convert LLVM IR text (.ll) to a Helios object file (.o)

HeliosLLVMBitcodeFileToHeliosObjectFileStep(...)

Convert LLVM Bitcode (.bc) to a Helios object file (.o)

HeliosObjectFileToSeleneObjectFileStep_Linux(...)

Link helios object with interface + utility shared libs to rebind to the selene interface and fill in any missing libraries.

HeliosObjectFileToSeleneExecutableStep_Windows(...)

Link helios object with the interface shim, utilities, and selene core library to create the final executable.

HeliosObjectFileToSeleneExecutableStep_Darwin(...)

Link helios object with the interface shim, utilities, and selene core library to create the final executable.

Functions

register_builtins(planner)

Register built-in types and steps to the build planner.