/external/llvm/unittests/ExecutionEngine/JIT/ |
D | JITMemoryManagerTest.cpp | 34 OwningPtr<JITMemoryManager> MemMgr( in TEST() local 42 uint8_t *FunctionBody1 = MemMgr->startFunctionBody(F1.get(), size); in TEST() 44 MemMgr->endFunctionBody(F1.get(), FunctionBody1, FunctionBody1 + 1024); in TEST() 45 EXPECT_TRUE(MemMgr->CheckInvariants(Error)) << Error; in TEST() 49 uint8_t *FunctionBody2 = MemMgr->startFunctionBody(F2.get(), size); in TEST() 51 MemMgr->endFunctionBody(F2.get(), FunctionBody2, FunctionBody2 + 1024); in TEST() 52 EXPECT_TRUE(MemMgr->CheckInvariants(Error)) << Error; in TEST() 56 uint8_t *FunctionBody3 = MemMgr->startFunctionBody(F3.get(), size); in TEST() 58 MemMgr->endFunctionBody(F3.get(), FunctionBody3, FunctionBody3 + 1024); in TEST() 59 EXPECT_TRUE(MemMgr->CheckInvariants(Error)) << Error; in TEST() [all …]
|
D | JITTest.cpp | 246 JITMemoryManager *MemMgr = JITMemoryManager::CreateDefaultMemManager(); in TEST() local 249 MemMgr->setPoisonMemory(true); in TEST() 254 .setJITMemoryManager(MemMgr) in TEST()
|
/external/llvm/unittests/ExecutionEngine/MCJIT/ |
D | MCJITMemoryManagerTest.cpp | 20 OwningPtr<SectionMemoryManager> MemMgr(new SectionMemoryManager()); in TEST() local 22 uint8_t *code1 = MemMgr->allocateCodeSection(256, 0, 1); in TEST() 23 uint8_t *data1 = MemMgr->allocateDataSection(256, 0, 2, true); in TEST() 24 uint8_t *code2 = MemMgr->allocateCodeSection(256, 0, 3); in TEST() 25 uint8_t *data2 = MemMgr->allocateDataSection(256, 0, 4, false); in TEST() 49 EXPECT_FALSE(MemMgr->applyPermissions(&Error)); in TEST() 53 OwningPtr<SectionMemoryManager> MemMgr(new SectionMemoryManager()); in TEST() local 55 uint8_t *code1 = MemMgr->allocateCodeSection(0x100000, 0, 1); in TEST() 56 uint8_t *data1 = MemMgr->allocateDataSection(0x100000, 0, 2, true); in TEST() 57 uint8_t *code2 = MemMgr->allocateCodeSection(0x100000, 0, 3); in TEST() [all …]
|
/external/llvm/lib/ExecutionEngine/JIT/ |
D | JITEmitter.cpp | 284 JITMemoryManager *MemMgr; member in __anon51408e480111::JITEmitter 373 MemMgr = JMM ? JMM : JITMemoryManager::CreateDefaultMemManager(); in JITEmitter() 375 MemMgr->AllocateGOT(); in JITEmitter() 384 delete MemMgr; in ~JITEmitter() 782 MemMgr->setMemoryWritable(); in startFunction() 789 BufferBegin = CurBufferPtr = MemMgr->startFunctionBody(F.getFunction(), in startFunction() 816 MemMgr->endFunctionBody(F.getFunction(), BufferBegin, CurBufferPtr); in finishFunction() 873 if (MR.isGOTRelative() && MemMgr->isManagingGOT()) { in finishFunction() 876 if (((void**)MemMgr->getGOTBase())[idx] != ResultPtr) { in finishFunction() 878 << " pointing at " << ((void**)MemMgr->getGOTBase())[idx] in finishFunction() [all …]
|
/external/llvm/tools/llvm-rtdyld/ |
D | llvm-rtdyld.cpp | 127 TrivialMemoryManager *MemMgr = new TrivialMemoryManager; in printLineInfoForInput() local 128 RuntimeDyld Dyld(MemMgr); in printLineInfoForInput() 183 TrivialMemoryManager *MemMgr = new TrivialMemoryManager; in executeInput() local 184 RuntimeDyld Dyld(MemMgr); in executeInput() 207 MemMgr->invalidateInstructionCache(); in executeInput() 217 for (unsigned i = 0, e = MemMgr->FunctionMemory.size(); i != e; ++i) { in executeInput() 218 sys::MemoryBlock &Data = MemMgr->FunctionMemory[i]; in executeInput()
|
/external/llvm/tools/llvm-jitlistener/ |
D | llvm-jitlistener.cpp | 127 JITMemoryManager *MemMgr = JITMemoryManager::CreateDefaultMemManager(); in InitEE() local 128 if (!MemMgr) { in InitEE() 135 MemMgr->setPoisonMemory(true); in InitEE() 152 .setJITMemoryManager(MemMgr) in InitEE()
|
/external/clang/lib/StaticAnalyzer/Core/ |
D | SValBuilder.cpp | 104 return loc::MemRegionVal(MemMgr.getSymbolicRegion(sym)); in getRegionValueSymbolVal() 128 return loc::MemRegionVal(MemMgr.getSymbolicRegion(sym)); in conjureSymbolVal() 144 return loc::MemRegionVal(MemMgr.getSymbolicRegion(sym)); in conjureSymbolVal() 158 return loc::MemRegionVal(MemMgr.getSymbolicHeapRegion(sym)); in getConjuredHeapSymbolVal() 171 return loc::MemRegionVal(MemMgr.getSymbolicRegion(sym)); in getMetadataSymbolVal() 187 return loc::MemRegionVal(MemMgr.getSymbolicRegion(sym)); in getDerivedRegionValueSymbolVal() 193 return loc::MemRegionVal(MemMgr.getFunctionTextRegion(func)); in getFunctionPointer() 200 MemMgr.getBlockTextRegion(block, locTy, locContext->getAnalysisDeclContext()); in getBlockPointer() 201 const BlockDataRegion *BD = MemMgr.getBlockDataRegion(BC, locContext); in getBlockPointer()
|
D | MemRegion.cpp | 1289 MemRegionManager &MemMgr = *getMemRegionManager(); in getCaptureRegions() local 1294 VR = MemMgr.getVarRegion(VD, this); in getCaptureRegions() 1295 OriginalVR = MemMgr.getVarRegion(VD, LC); in getCaptureRegions() 1299 VR = MemMgr.getVarRegion(VD, LC); in getCaptureRegions() 1303 VR = MemMgr.getVarRegion(VD, MemMgr.getUnknownRegion()); in getCaptureRegions() 1304 OriginalVR = MemMgr.getVarRegion(VD, LC); in getCaptureRegions() 1323 MemRegionManager &MemMgr = *getMemRegionManager(); in LazyInitializeReferencedVars() local 1324 llvm::BumpPtrAllocator &A = MemMgr.getAllocator(); in LazyInitializeReferencedVars()
|
D | SimpleSValBuilder.cpp | 687 const MemSpaceRegion *UnknownMS = MemMgr.getUnknownRegion(); in evalBinOpLL() 934 return loc::MemRegionVal(MemMgr.getElementRegion(elementType, *indexV, in evalBinOpLN()
|
/external/llvm/lib/ExecutionEngine/MCJIT/ |
D | MCJIT.cpp | 54 : ExecutionEngine(m), TM(tm), Ctx(0), MemMgr(MM), Dyld(MM), in MCJIT() 63 delete MemMgr; in ~MCJIT() 131 MemMgr->applyPermissions(); in finalizeObject() 140 MemMgr->applyPermissions(); in finalizeObject() 290 if (!isSymbolSearchingDisabled() && MemMgr) { in getPointerToNamedFunction() 291 void *ptr = MemMgr->getPointerToNamedFunction(Name, false); in getPointerToNamedFunction()
|
D | MCJIT.h | 27 MCJIT(Module *M, TargetMachine *tm, RTDyldMemoryManager *MemMgr, 32 RTDyldMemoryManager *MemMgr; variable
|
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
D | SValBuilder.h | 43 MemRegionManager MemMgr; variable 66 MemMgr(context, alloc), in SValBuilder() 139 MemRegionManager &getRegionManager() { return MemMgr; } in getRegionManager() 140 const MemRegionManager &getRegionManager() const { return MemMgr; } in getRegionManager() 293 return loc::MemRegionVal(MemMgr.getSymbolicRegion(sym)); in makeLoc()
|
/external/llvm/lib/ExecutionEngine/RuntimeDyld/ |
D | RuntimeDyld.cpp | 181 uint8_t *Addr = MemMgr->allocateDataSection(TotalSize, sizeof(void*), in emitCommonSymbols() 257 ? MemMgr->allocateCodeSection(Allocate, Alignment, SectionID) in emitSection() 258 : MemMgr->allocateDataSection(Allocate, Alignment, SectionID, IsReadOnly); in emitSection() 442 uint8_t *Addr = (uint8_t*) MemMgr->getPointerToNamedFunction(Name.data(), in resolveExternalSymbols()
|
D | RuntimeDyldImpl.h | 126 RTDyldMemoryManager *MemMgr; 299 RuntimeDyldImpl(RTDyldMemoryManager *mm) : MemMgr(mm), HasError(false) {} in RuntimeDyldImpl()
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
D | MallocChecker.cpp | 1313 MemRegionManager &MemMgr = C.getSValBuilder().getRegionManager(); in checkPostStmt() local 1318 VR = MemMgr.getVarRegion(VR->getDecl(), LC); in checkPostStmt()
|
D | RetainCountChecker.cpp | 2595 MemRegionManager &MemMgr = C.getSValBuilder().getRegionManager(); in checkPostStmt() local 2600 VR = MemMgr.getVarRegion(VR->getDecl(), LC); in checkPostStmt()
|