#include "OrcTestCommon.h"
#include "llvm/ADT/FunctionExtras.h"
#include "llvm/Config/llvm-config.h"
#include "llvm/ExecutionEngine/Orc/Core.h"
#include "llvm/ExecutionEngine/Orc/Shared/OrcError.h"
#include "llvm/Testing/Support/Error.h"
usingnamespacellvm;
usingnamespacellvm::orc;
class ResourceTrackerStandardTest : public CoreAPIsBasedStandardTest { … };
namespace {
template <typename ResourceT = unsigned>
class SimpleResourceManager : public ResourceManager { … };
TEST_F(ResourceTrackerStandardTest,
BasicDefineAndRemoveAllBeforeMaterializing) { … }
TEST_F(ResourceTrackerStandardTest, BasicDefineAndRemoveAllAfterMaterializing) { … }
TEST_F(ResourceTrackerStandardTest, BasicDefineAndRemoveAllWhileMaterializing) { … }
TEST_F(ResourceTrackerStandardTest, JITDylibClear) { … }
TEST_F(ResourceTrackerStandardTest,
BasicDefineAndExplicitTransferBeforeMaterializing) { … }
TEST_F(ResourceTrackerStandardTest,
BasicDefineAndExplicitTransferAfterMaterializing) { … }
TEST_F(ResourceTrackerStandardTest,
BasicDefineAndExplicitTransferWhileMaterializing) { … }
}