Rather than having a number of static local variables, we now use a single `OffloadContext` struct to store global state. This is initialised by `olInit`, but is never deleted (de-initialization of Offload isn't yet implemented). The error reporting mechanism has not been moved to the struct, since that's going to cause issues with teardown (error messages must outlive liboffload).
Offload New API
This directory contains the implementation of the experimental work-in-progress new API for Offload. It builds on top of the existing plugin implementations but provides a single level of abstraction suitable for runtimes for languages other than OpenMP to be built on top of.
See the API definition readme for implementation details.