Lines Matching refs:pImpl

36 LLVMContext::LLVMContext() : pImpl(new LLVMContextImpl(*this)) {  in LLVMContext()
51 auto *DeoptEntry = pImpl->getOrInsertBundleTag("deopt"); in LLVMContext()
56 auto *FuncletEntry = pImpl->getOrInsertBundleTag("funclet"); in LLVMContext()
61 auto *GCTransitionEntry = pImpl->getOrInsertBundleTag("gc-transition"); in LLVMContext()
66 auto *CFGuardTargetEntry = pImpl->getOrInsertBundleTag("cfguardtarget"); in LLVMContext()
71 auto *PreallocatedEntry = pImpl->getOrInsertBundleTag("preallocated"); in LLVMContext()
76 auto *GCLiveEntry = pImpl->getOrInsertBundleTag("gc-live"); in LLVMContext()
82 pImpl->getOrInsertBundleTag("clang.arc.attachedcall"); in LLVMContext()
88 pImpl->getOrInsertSyncScopeID("singlethread"); in LLVMContext()
94 pImpl->getOrInsertSyncScopeID(""); in LLVMContext()
100 LLVMContext::~LLVMContext() { delete pImpl; } in ~LLVMContext()
103 pImpl->OwnedModules.insert(M); in addModule()
107 pImpl->OwnedModules.erase(M); in removeModule()
117 pImpl->DiagHandler->DiagHandlerCallback = DiagnosticHandler; in setDiagnosticHandlerCallBack()
118 pImpl->DiagHandler->DiagnosticContext = DiagnosticContext; in setDiagnosticHandlerCallBack()
119 pImpl->RespectDiagnosticFilters = RespectFilters; in setDiagnosticHandlerCallBack()
124 pImpl->DiagHandler = std::move(DH); in setDiagnosticHandler()
125 pImpl->RespectDiagnosticFilters = RespectFilters; in setDiagnosticHandler()
129 pImpl->DiagnosticsHotnessRequested = Requested; in setDiagnosticsHotnessRequested()
132 return pImpl->DiagnosticsHotnessRequested; in getDiagnosticsHotnessRequested()
136 pImpl->DiagnosticsHotnessThreshold = Threshold; in setDiagnosticsHotnessThreshold()
140 return pImpl->DiagnosticsHotnessThreshold.getValueOr(UINT64_MAX); in getDiagnosticsHotnessThreshold()
144 return !pImpl->DiagnosticsHotnessThreshold.hasValue(); in isDiagnosticsHotnessThresholdSetFromPSI()
148 return pImpl->MainRemarkStreamer.get(); in getMainRemarkStreamer()
155 pImpl->MainRemarkStreamer = std::move(RemarkStreamer); in setMainRemarkStreamer()
159 return pImpl->LLVMRS.get(); in getLLVMRemarkStreamer()
166 pImpl->LLVMRS = std::move(RemarkStreamer); in setLLVMRemarkStreamer()
171 return pImpl->DiagHandler->DiagHandlerCallback; in getDiagnosticHandlerCallBack()
175 return pImpl->DiagHandler->DiagnosticContext; in getDiagnosticContext()
180 pImpl->YieldCallback = Callback; in setYieldCallback()
181 pImpl->YieldOpaqueHandle = OpaqueHandle; in setYieldCallback()
185 if (pImpl->YieldCallback) in yield()
186 pImpl->YieldCallback(this, pImpl->YieldOpaqueHandle); in yield()
234 if (pImpl->DiagHandler && in diagnose()
235 (!pImpl->RespectDiagnosticFilters || isDiagnosticEnabled(DI)) && in diagnose()
236 pImpl->DiagHandler->handleDiagnostics(DI)) in diagnose()
262 return pImpl->CustomMDKindNames.insert( in getMDKindID()
264 Name, pImpl->CustomMDKindNames.size())) in getMDKindID()
271 Names.resize(pImpl->CustomMDKindNames.size()); in getMDKindNames()
272 for (StringMap<unsigned>::const_iterator I = pImpl->CustomMDKindNames.begin(), in getMDKindNames()
273 E = pImpl->CustomMDKindNames.end(); I != E; ++I) in getMDKindNames()
278 pImpl->getOperandBundleTags(Tags); in getOperandBundleTags()
283 return pImpl->getOrInsertBundleTag(TagName); in getOrInsertBundleTag()
287 return pImpl->getOperandBundleTagID(Tag); in getOperandBundleTagID()
291 return pImpl->getOrInsertSyncScopeID(SSN); in getOrInsertSyncScopeID()
295 pImpl->getSyncScopeNames(SSNs); in getSyncScopeNames()
299 auto It = pImpl->GCNames.find(&Fn); in setGC()
301 if (It == pImpl->GCNames.end()) { in setGC()
302 pImpl->GCNames.insert(std::make_pair(&Fn, std::move(GCName))); in setGC()
309 return pImpl->GCNames[&Fn]; in getGC()
313 pImpl->GCNames.erase(&Fn); in deleteGC()
317 return pImpl->DiscardValueNames; in shouldDiscardValueNames()
320 bool LLVMContext::isODRUniquingDebugTypes() const { return !!pImpl->DITypeMap; } in isODRUniquingDebugTypes()
323 if (pImpl->DITypeMap) in enableDebugTypeODRUniquing()
326 pImpl->DITypeMap.emplace(); in enableDebugTypeODRUniquing()
329 void LLVMContext::disableDebugTypeODRUniquing() { pImpl->DITypeMap.reset(); } in disableDebugTypeODRUniquing()
332 pImpl->DiscardValueNames = Discard; in setDiscardValueNames()
336 return pImpl->getOptPassGate(); in getOptPassGate()
340 pImpl->setOptPassGate(OPG); in setOptPassGate()
344 return pImpl->DiagHandler.get(); in getDiagHandlerPtr()
348 return std::move(pImpl->DiagHandler); in getDiagnosticHandler()
352 return !pImpl->ForceOpaquePointers; in supportsTypedPointers()