Spicy
Public Member Functions | List of all members
Spicyc Class Reference
Inheritance diagram for Spicyc:
spicy::Driver hilti::Driver

Public Member Functions

void hookInitRuntime () override
 
void hookFinishRuntime () override
 
- Public Member Functions inherited from spicy::Driver
 Driver (std::string name)
 
 Driver (std::string name, const hilti::rt::filesystem::path &argv0)
 
 Driver (const Driver &)=delete
 
 Driver (Driver &&) noexcept=delete
 
Driveroperator= (const Driver &)=delete
 
Driveroperator= (Driver &&) noexcept=delete
 
spicy::Options spicyCompilerOptions () const
 
void setSpicyCompilerOptions (const spicy::Options &options)
 
- Public Member Functions inherited from hilti::Driver
 Driver (std::string name)
 
 Driver (std::string name, const hilti::rt::filesystem::path &argv0)
 
 Driver (const Driver &)=delete
 
 Driver (Driver &&) noexcept=delete
 
Driveroperator= (const Driver &)=delete
 
Driveroperator= (Driver &&) noexcept=delete
 
Result< NothingparseOptions (int argc, char **argv)
 
Result< NothingaddInput (hilti::Module &&m, const hilti::rt::filesystem::path &path="")
 
Result< NothingaddInput (const hilti::rt::filesystem::path &path)
 
bool hasInputs () const
 
const auto & driverOptions () const
 
const auto & hiltiOptions () const
 
void setDriverOptions (driver::Options options)
 
void setCompilerOptions (hilti::Options options)
 
Result< Nothinginitialize ()
 
Result< Nothingcompile ()
 
Result< NothingtransformUnits ()
 
auto context () const
 
Result< NothinginitRuntime ()
 
Result< NothingexecuteMain ()
 
Result< NothingfinishRuntime ()
 
Result< Nothingrun ()
 

Additional Inherited Members

- Protected Member Functions inherited from spicy::Driver
std::string hookAddCommandLineOptions () override
 
bool hookProcessCommandLineOption (char opt, const char *optarg) override
 
std::string hookAugmentUsage () override
 
- Protected Member Functions inherited from hilti::Driver
void usage ()
 
Result< NothingcompileUnits ()
 
Result< NothingcodegenUnits ()
 
Result< NothinglinkUnits ()
 
Result< NothingoutputUnits ()
 
Result< NothingjitUnits ()
 
result::Error error (std::string_view msg, const hilti::rt::filesystem::path &p="")
 
result::Error augmentError (const result::Error &err, const hilti::rt::filesystem::path &p="")
 
Result< std::ofstream > openOutput (const hilti::rt::filesystem::path &p, bool binary=false, bool append=false)
 
Result< NothingopenInput (std::ifstream &in, const hilti::rt::filesystem::path &p)
 
Result< NothingwriteOutput (std::ifstream &in, const hilti::rt::filesystem::path &p)
 
Result< std::stringstream > readInput (const hilti::rt::filesystem::path &p)
 
Result< hilti::rt::filesystem::path > writeToTemp (std::ifstream &in, const std::string &name_hint, const std::string &extension="tmp")
 
void dumpUnit (const Unit &unit)
 
void printHiltiException (const hilti::rt::Exception &e)
 
virtual void hookAddInput (const hilti::rt::filesystem::path &path)
 
virtual void hookAddInput (const hilti::Module &m, const hilti::rt::filesystem::path &path)
 
virtual void hookNewASTPreCompilation (const ID &name, const std::optional< hilti::rt::filesystem::path > &path, const Node &root)
 
virtual void hookNewASTPostCompilation (const ID &name, const std::optional< hilti::rt::filesystem::path > &path, const Node &root)
 
virtual Result< NothinghookCompilationFinished ()
 

Member Function Documentation

◆ hookFinishRuntime()

void Spicyc::hookFinishRuntime ( )
inlineoverridevirtual

Hook for derived classes to execute custom code just before the HILTI runtime is being shut down.

Reimplemented from hilti::Driver.

◆ hookInitRuntime()

void Spicyc::hookInitRuntime ( )
inlineoverridevirtual

Hook for derived classes to execute custom code when the HILTI runtime has been initialized.

Reimplemented from hilti::Driver.


The documentation for this class was generated from the following file: