Home
last modified time | relevance | path

Searched refs:MemMgr (Results 1 – 14 of 14) sorted by relevance

/external/llvm/unittests/ExecutionEngine/JIT/
DJITMemoryManagerTest.cpp34 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 …]
DJITTest.cpp236 JITMemoryManager *MemMgr = JITMemoryManager::CreateDefaultMemManager(); in TEST() local
239 MemMgr->setPoisonMemory(true); in TEST()
244 .setJITMemoryManager(MemMgr) in TEST()
/external/llvm/lib/ExecutionEngine/JIT/
DJITEmitter.cpp284 JITMemoryManager *MemMgr; member in __anon132375280111::JITEmitter
373 MemMgr = JMM ? JMM : JITMemoryManager::CreateDefaultMemManager(); in JITEmitter()
375 MemMgr->AllocateGOT(); in JITEmitter()
384 delete MemMgr; in ~JITEmitter()
787 MemMgr->setMemoryWritable(); in startFunction()
794 BufferBegin = CurBufferPtr = MemMgr->startFunctionBody(F.getFunction(), in startFunction()
821 MemMgr->endFunctionBody(F.getFunction(), BufferBegin, CurBufferPtr); in finishFunction()
878 if (MR.isGOTRelative() && MemMgr->isManagingGOT()) { in finishFunction()
881 if (((void**)MemMgr->getGOTBase())[idx] != ResultPtr) { in finishFunction()
883 << " pointing at " << ((void**)MemMgr->getGOTBase())[idx] in finishFunction()
[all …]
/external/llvm/tools/llvm-rtdyld/
Dllvm-rtdyld.cpp114 TrivialMemoryManager *MemMgr = new TrivialMemoryManager; in executeInput() local
115 RuntimeDyld Dyld(MemMgr); in executeInput()
136 MemMgr->invalidateInstructionCache(); in executeInput()
146 for (unsigned i = 0, e = MemMgr->FunctionMemory.size(); i != e; ++i) { in executeInput()
147 sys::MemoryBlock &Data = MemMgr->FunctionMemory[i]; in executeInput()
/external/clang/lib/StaticAnalyzer/Core/
DSValBuilder.cpp104 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()
DMemRegion.cpp1217 MemRegionManager &MemMgr = *getMemRegionManager(); in LazyInitializeReferencedVars() local
1218 llvm::BumpPtrAllocator &A = MemMgr.getAllocator(); in LazyInitializeReferencedVars()
1233 VR = MemMgr.getVarRegion(VD, this); in LazyInitializeReferencedVars()
1234 OriginalVR = MemMgr.getVarRegion(VD, LC); in LazyInitializeReferencedVars()
1238 VR = MemMgr.getVarRegion(VD, LC); in LazyInitializeReferencedVars()
1242 VR = MemMgr.getVarRegion(VD, MemMgr.getUnknownRegion()); in LazyInitializeReferencedVars()
1243 OriginalVR = MemMgr.getVarRegion(VD, LC); in LazyInitializeReferencedVars()
DSimpleSValBuilder.cpp681 const MemSpaceRegion *UnknownMS = MemMgr.getUnknownRegion(); in evalBinOpLL()
927 return loc::MemRegionVal(MemMgr.getElementRegion(elementType, *indexV, in evalBinOpLN()
/external/llvm/lib/ExecutionEngine/MCJIT/
DMCJIT.cpp52 : ExecutionEngine(m), TM(tm), Ctx(0), MemMgr(MM), Dyld(MM), in MCJIT()
59 delete MemMgr; in ~MCJIT()
258 if (!isSymbolSearchingDisabled() && MemMgr) { in getPointerToNamedFunction()
259 void *ptr = MemMgr->getPointerToNamedFunction(Name, false); in getPointerToNamedFunction()
DMCJIT.h26 MCJIT(Module *M, TargetMachine *tm, RTDyldMemoryManager *MemMgr,
31 RTDyldMemoryManager *MemMgr; variable
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
DSValBuilder.h44 MemRegionManager MemMgr; variable
67 MemMgr(context, alloc), in SValBuilder()
140 MemRegionManager &getRegionManager() { return MemMgr; } in getRegionManager()
141 const MemRegionManager &getRegionManager() const { return MemMgr; } in getRegionManager()
294 return loc::MemRegionVal(MemMgr.getSymbolicRegion(sym)); in makeLoc()
/external/llvm/lib/ExecutionEngine/RuntimeDyld/
DRuntimeDyldImpl.h121 RTDyldMemoryManager *MemMgr;
262 RuntimeDyldImpl(RTDyldMemoryManager *mm) : MemMgr(mm), HasError(false) {} in RuntimeDyldImpl()
DRuntimeDyld.cpp192 uint8_t *Addr = MemMgr->allocateDataSection(TotalSize, sizeof(void*), in emitCommonSymbols()
255 ? MemMgr->allocateCodeSection(Allocate, Alignment, SectionID) in emitSection()
256 : MemMgr->allocateDataSection(Allocate, Alignment, SectionID); in emitSection()
416 uint8_t *Addr = (uint8_t*) MemMgr->getPointerToNamedFunction(Name.data(), in resolveExternalSymbols()
/external/clang/lib/StaticAnalyzer/Checkers/
DMallocChecker.cpp1176 MemRegionManager &MemMgr = C.getSValBuilder().getRegionManager(); in checkPostStmt() local
1181 VR = MemMgr.getVarRegion(VR->getDecl(), LC); in checkPostStmt()
DRetainCountChecker.cpp2612 MemRegionManager &MemMgr = C.getSValBuilder().getRegionManager(); in checkPostStmt() local
2617 VR = MemMgr.getVarRegion(VR->getDecl(), LC); in checkPostStmt()