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()
91 pImpl->getOrInsertSyncScopeID("singlethread"); in LLVMContext()
97 pImpl->getOrInsertSyncScopeID(""); in LLVMContext()
103 LLVMContext::~LLVMContext() { delete pImpl; } in ~LLVMContext()
106 pImpl->OwnedModules.insert(M); in addModule()
110 pImpl->OwnedModules.erase(M); in removeModule()
120 pImpl->DiagHandler->DiagHandlerCallback = DiagnosticHandler; in setDiagnosticHandlerCallBack()
121 pImpl->DiagHandler->DiagnosticContext = DiagnosticContext; in setDiagnosticHandlerCallBack()
122 pImpl->RespectDiagnosticFilters = RespectFilters; in setDiagnosticHandlerCallBack()
127 pImpl->DiagHandler = std::move(DH); in setDiagnosticHandler()
128 pImpl->RespectDiagnosticFilters = RespectFilters; in setDiagnosticHandler()
132 pImpl->DiagnosticsHotnessRequested = Requested; in setDiagnosticsHotnessRequested()
135 return pImpl->DiagnosticsHotnessRequested; in getDiagnosticsHotnessRequested()
139 pImpl->DiagnosticsHotnessThreshold = Threshold; in setDiagnosticsHotnessThreshold()
142 pImpl->MisExpectWarningRequested = Requested; in setMisExpectWarningRequested()
145 return pImpl->MisExpectWarningRequested; in getMisExpectWarningRequested()
148 return pImpl->DiagnosticsHotnessThreshold.value_or(UINT64_MAX); in getDiagnosticsHotnessThreshold()
152 pImpl->DiagnosticsMisExpectTolerance = Tolerance; in setDiagnosticsMisExpectTolerance()
155 return pImpl->DiagnosticsMisExpectTolerance.value_or(0); in getDiagnosticsMisExpectTolerance()
159 return !pImpl->DiagnosticsHotnessThreshold.has_value(); in isDiagnosticsHotnessThresholdSetFromPSI()
163 return pImpl->MainRemarkStreamer.get(); in getMainRemarkStreamer()
170 pImpl->MainRemarkStreamer = std::move(RemarkStreamer); in setMainRemarkStreamer()
174 return pImpl->LLVMRS.get(); in getLLVMRemarkStreamer()
181 pImpl->LLVMRS = std::move(RemarkStreamer); in setLLVMRemarkStreamer()
186 return pImpl->DiagHandler->DiagHandlerCallback; in getDiagnosticHandlerCallBack()
190 return pImpl->DiagHandler->DiagnosticContext; in getDiagnosticContext()
195 pImpl->YieldCallback = Callback; in setYieldCallback()
196 pImpl->YieldOpaqueHandle = OpaqueHandle; in setYieldCallback()
200 if (pImpl->YieldCallback) in yield()
201 pImpl->YieldCallback(this, pImpl->YieldOpaqueHandle); in yield()
249 if (pImpl->DiagHandler && in diagnose()
250 (!pImpl->RespectDiagnosticFilters || isDiagnosticEnabled(DI)) && in diagnose()
251 pImpl->DiagHandler->handleDiagnostics(DI)) in diagnose()
277 return pImpl->CustomMDKindNames.insert( in getMDKindID()
279 Name, pImpl->CustomMDKindNames.size())) in getMDKindID()
286 Names.resize(pImpl->CustomMDKindNames.size()); in getMDKindNames()
287 for (StringMap<unsigned>::const_iterator I = pImpl->CustomMDKindNames.begin(), in getMDKindNames()
288 E = pImpl->CustomMDKindNames.end(); I != E; ++I) in getMDKindNames()
293 pImpl->getOperandBundleTags(Tags); in getOperandBundleTags()
298 return pImpl->getOrInsertBundleTag(TagName); in getOrInsertBundleTag()
302 return pImpl->getOperandBundleTagID(Tag); in getOperandBundleTagID()
306 return pImpl->getOrInsertSyncScopeID(SSN); in getOrInsertSyncScopeID()
310 pImpl->getSyncScopeNames(SSNs); in getSyncScopeNames()
314 auto It = pImpl->GCNames.find(&Fn); in setGC()
316 if (It == pImpl->GCNames.end()) { in setGC()
317 pImpl->GCNames.insert(std::make_pair(&Fn, std::move(GCName))); in setGC()
324 return pImpl->GCNames[&Fn]; in getGC()
328 pImpl->GCNames.erase(&Fn); in deleteGC()
332 return pImpl->DiscardValueNames; in shouldDiscardValueNames()
335 bool LLVMContext::isODRUniquingDebugTypes() const { return !!pImpl->DITypeMap; } in isODRUniquingDebugTypes()
338 if (pImpl->DITypeMap) in enableDebugTypeODRUniquing()
341 pImpl->DITypeMap.emplace(); in enableDebugTypeODRUniquing()
344 void LLVMContext::disableDebugTypeODRUniquing() { pImpl->DITypeMap.reset(); } in disableDebugTypeODRUniquing()
347 pImpl->DiscardValueNames = Discard; in setDiscardValueNames()
351 return pImpl->getOptPassGate(); in getOptPassGate()
355 pImpl->setOptPassGate(OPG); in setOptPassGate()
359 return pImpl->DiagHandler.get(); in getDiagHandlerPtr()
363 return std::move(pImpl->DiagHandler); in getDiagnosticHandler()
367 return pImpl->hasOpaquePointersValue(); in hasSetOpaquePointersValue()
371 pImpl->setOpaquePointers(Enable); in setOpaquePointers()
375 return !pImpl->getOpaquePointers(); in supportsTypedPointers()
379 return pImpl->TargetDataStorage; in getTargetData()