Lines Matching refs:pImpl
34 LLVMContext::LLVMContext() : pImpl(new LLVMContextImpl(*this)) { in LLVMContext()
49 auto *DeoptEntry = pImpl->getOrInsertBundleTag("deopt"); in LLVMContext()
54 auto *FuncletEntry = pImpl->getOrInsertBundleTag("funclet"); in LLVMContext()
59 auto *GCTransitionEntry = pImpl->getOrInsertBundleTag("gc-transition"); in LLVMContext()
64 auto *CFGuardTargetEntry = pImpl->getOrInsertBundleTag("cfguardtarget"); in LLVMContext()
69 auto *PreallocatedEntry = pImpl->getOrInsertBundleTag("preallocated"); in LLVMContext()
74 auto *GCLiveEntry = pImpl->getOrInsertBundleTag("gc-live"); in LLVMContext()
80 pImpl->getOrInsertBundleTag("clang.arc.attachedcall"); in LLVMContext()
85 auto *PtrauthEntry = pImpl->getOrInsertBundleTag("ptrauth"); in LLVMContext()
90 auto *KCFIEntry = pImpl->getOrInsertBundleTag("kcfi"); in LLVMContext()
95 auto *ConvergenceCtrlEntry = pImpl->getOrInsertBundleTag("convergencectrl"); in LLVMContext()
101 pImpl->getOrInsertSyncScopeID("singlethread"); in LLVMContext()
107 pImpl->getOrInsertSyncScopeID(""); in LLVMContext()
113 LLVMContext::~LLVMContext() { delete pImpl; } in ~LLVMContext()
116 pImpl->OwnedModules.insert(M); in addModule()
120 pImpl->OwnedModules.erase(M); in removeModule()
130 pImpl->DiagHandler->DiagHandlerCallback = DiagnosticHandler; in setDiagnosticHandlerCallBack()
131 pImpl->DiagHandler->DiagnosticContext = DiagnosticContext; in setDiagnosticHandlerCallBack()
132 pImpl->RespectDiagnosticFilters = RespectFilters; in setDiagnosticHandlerCallBack()
137 pImpl->DiagHandler = std::move(DH); in setDiagnosticHandler()
138 pImpl->RespectDiagnosticFilters = RespectFilters; in setDiagnosticHandler()
142 pImpl->DiagnosticsHotnessRequested = Requested; in setDiagnosticsHotnessRequested()
145 return pImpl->DiagnosticsHotnessRequested; in getDiagnosticsHotnessRequested()
149 pImpl->DiagnosticsHotnessThreshold = Threshold; in setDiagnosticsHotnessThreshold()
152 pImpl->MisExpectWarningRequested = Requested; in setMisExpectWarningRequested()
155 return pImpl->MisExpectWarningRequested; in getMisExpectWarningRequested()
158 return pImpl->DiagnosticsHotnessThreshold.value_or(UINT64_MAX); in getDiagnosticsHotnessThreshold()
162 pImpl->DiagnosticsMisExpectTolerance = Tolerance; in setDiagnosticsMisExpectTolerance()
165 return pImpl->DiagnosticsMisExpectTolerance.value_or(0); in getDiagnosticsMisExpectTolerance()
169 return !pImpl->DiagnosticsHotnessThreshold.has_value(); in isDiagnosticsHotnessThresholdSetFromPSI()
173 return pImpl->MainRemarkStreamer.get(); in getMainRemarkStreamer()
180 pImpl->MainRemarkStreamer = std::move(RemarkStreamer); in setMainRemarkStreamer()
184 return pImpl->LLVMRS.get(); in getLLVMRemarkStreamer()
191 pImpl->LLVMRS = std::move(RemarkStreamer); in setLLVMRemarkStreamer()
196 return pImpl->DiagHandler->DiagHandlerCallback; in getDiagnosticHandlerCallBack()
200 return pImpl->DiagHandler->DiagnosticContext; in getDiagnosticContext()
205 pImpl->YieldCallback = Callback; in setYieldCallback()
206 pImpl->YieldOpaqueHandle = OpaqueHandle; in setYieldCallback()
210 if (pImpl->YieldCallback) in yield()
211 pImpl->YieldCallback(this, pImpl->YieldOpaqueHandle); in yield()
259 if (pImpl->DiagHandler) { in diagnose()
261 pImpl->DiagHandler->HasErrors = true; in diagnose()
262 if ((!pImpl->RespectDiagnosticFilters || isDiagnosticEnabled(DI)) && in diagnose()
263 pImpl->DiagHandler->handleDiagnostics(DI)) in diagnose()
290 return pImpl->CustomMDKindNames.insert( in getMDKindID()
292 Name, pImpl->CustomMDKindNames.size())) in getMDKindID()
299 Names.resize(pImpl->CustomMDKindNames.size()); in getMDKindNames()
300 for (StringMap<unsigned>::const_iterator I = pImpl->CustomMDKindNames.begin(), in getMDKindNames()
301 E = pImpl->CustomMDKindNames.end(); I != E; ++I) in getMDKindNames()
306 pImpl->getOperandBundleTags(Tags); in getOperandBundleTags()
311 return pImpl->getOrInsertBundleTag(TagName); in getOrInsertBundleTag()
315 return pImpl->getOperandBundleTagID(Tag); in getOperandBundleTagID()
319 return pImpl->getOrInsertSyncScopeID(SSN); in getOrInsertSyncScopeID()
323 pImpl->getSyncScopeNames(SSNs); in getSyncScopeNames()
327 auto It = pImpl->GCNames.find(&Fn); in setGC()
329 if (It == pImpl->GCNames.end()) { in setGC()
330 pImpl->GCNames.insert(std::make_pair(&Fn, std::move(GCName))); in setGC()
337 return pImpl->GCNames[&Fn]; in getGC()
341 pImpl->GCNames.erase(&Fn); in deleteGC()
345 return pImpl->DiscardValueNames; in shouldDiscardValueNames()
348 bool LLVMContext::isODRUniquingDebugTypes() const { return !!pImpl->DITypeMap; } in isODRUniquingDebugTypes()
351 if (pImpl->DITypeMap) in enableDebugTypeODRUniquing()
354 pImpl->DITypeMap.emplace(); in enableDebugTypeODRUniquing()
357 void LLVMContext::disableDebugTypeODRUniquing() { pImpl->DITypeMap.reset(); } in disableDebugTypeODRUniquing()
360 pImpl->DiscardValueNames = Discard; in setDiscardValueNames()
364 return pImpl->getOptPassGate(); in getOptPassGate()
368 pImpl->setOptPassGate(OPG); in setOptPassGate()
372 return pImpl->DiagHandler.get(); in getDiagHandlerPtr()
376 return std::move(pImpl->DiagHandler); in getDiagnosticHandler()