Home | History | Annotate | Download | only in JIT

Lines Matching refs:JIT

1 //===- JITTest.cpp - Unit tests for the JIT -------------------------------===//
10 #include "llvm/ExecutionEngine/JIT.h"
37 // program from the IR input to the JIT to assert that the JIT doesn't use its
39 // JIT tests are disabled as it is referenced from the .def file.
44 // program from the IR input to the JIT to assert that the JIT doesn't use its
46 // JIT tests are disabled as it is referenced from the .def file.
54 // Tests on ARM, PowerPC and SystemZ disabled as we're running the old jit
187 TheJIT.reset(EngineBuilder(M).setEngineKind(EngineKind::JIT)
204 // Regression test for a bug. The JIT used to allocate globals inside the same
209 TEST(JIT, GlobalInFunction) {
218 OwningPtr<ExecutionEngine> JIT(EngineBuilder(M)
219 .setEngineKind(EngineKind::JIT)
240 // Get the pointer to the native code to force it to JIT the function and
243 reinterpret_cast<void(*)()>((intptr_t)JIT->getPointerToFunction(F1));
246 int32_t *GPtr = (int32_t*)JIT->getPointerToGlobalIfAvailable(G);
258 reinterpret_cast<void(*)()>((intptr_t)JIT->getPointerToFunction(F2));
265 JIT->freeMachineCodeForFunction(F1);
280 // current JIT does this by allocating a stub for any far call.
281 // There was a bug in which the JIT tried to emit a direct call when
282 // the target was already in the JIT's global mappings and lazy
364 // JIT's Function to stub mapping.
390 // Free the JIT state for the functions
601 // Now there are no references inside the JIT, but we've got a pointer outside
638 .setEngineKind(EngineKind::JIT)
667 ASSERT_TRUE(TheJIT.get()) << "Failed to create JIT.";
706 ASSERT_TRUE(TheJIT.get()) << "Failed to create JIT.";
725 // Required to create a JIT.