In applications that want to inspect the intermediate
representation rather before compiling, rather than directly using
odin, use either odin_parse or
odin_validate and then pass the result to
odin::odin_build
.
The return value of this function includes information about how
long the compilation took, if it was successful, etc, in the same
style as odin_validate:
- success
Logical, indicating if compilation was successful
- elapsed
Time taken to compile the model, as a
proc_time
object, as returned by proc.time.
- output
Any output produced when compiling the model (only
present if compiling to C, and if the cache was not hit.
- model
The model itself, as an odin_generator
object,
as returned by odin.
- ir
The intermediate representation.
- error
Any error thrown during compilation