Lines Matching refs:pImpl

99   LLVMContextImpl *pImpl = Context.pImpl;  in get()  local
105 AttributeImpl *PA = pImpl->AttrsSet.FindNodeOrInsertPos(ID, InsertPoint); in get()
111 PA = new (pImpl->Alloc) EnumAttributeImpl(Kind); in get()
113 PA = new (pImpl->Alloc) IntAttributeImpl(Kind, Val); in get()
114 pImpl->AttrsSet.InsertNode(PA, InsertPoint); in get()
122 LLVMContextImpl *pImpl = Context.pImpl; in get() local
128 AttributeImpl *PA = pImpl->AttrsSet.FindNodeOrInsertPos(ID, InsertPoint); in get()
134 pImpl->Alloc.Allocate(StringAttributeImpl::totalSizeToAlloc(Kind, Val), in get()
137 pImpl->AttrsSet.InsertNode(PA, InsertPoint); in get()
147 LLVMContextImpl *pImpl = Context.pImpl; in get() local
153 AttributeImpl *PA = pImpl->AttrsSet.FindNodeOrInsertPos(ID, InsertPoint); in get()
158 PA = new (pImpl->Alloc) TypeAttributeImpl(Kind, Ty); in get()
159 pImpl->AttrsSet.InsertNode(PA, InsertPoint); in get()
258 return pImpl && pImpl->isEnumAttribute(); in isEnumAttribute()
262 return pImpl && pImpl->isIntAttribute(); in isIntAttribute()
266 return pImpl && pImpl->isStringAttribute(); in isStringAttribute()
270 return pImpl && pImpl->isTypeAttribute(); in isTypeAttribute()
274 if (!pImpl) return None; in getKindAsEnum()
277 return pImpl->getKindAsEnum(); in getKindAsEnum()
281 if (!pImpl) return 0; in getValueAsInt()
284 return pImpl->getValueAsInt(); in getValueAsInt()
288 if (!pImpl) return false; in getValueAsBool()
291 return pImpl->getValueAsBool(); in getValueAsBool()
295 if (!pImpl) return {}; in getKindAsString()
298 return pImpl->getKindAsString(); in getKindAsString()
302 if (!pImpl) return {}; in getValueAsString()
305 return pImpl->getValueAsString(); in getValueAsString()
309 if (!pImpl) return {}; in getValueAsType()
312 return pImpl->getValueAsType(); in getValueAsType()
317 return (pImpl && pImpl->hasAttribute(Kind)) || (!pImpl && Kind == None); in hasAttribute()
322 return pImpl && pImpl->hasAttribute(Kind); in hasAttribute()
328 return MaybeAlign(pImpl->getValueAsInt()); in getAlignment()
334 return MaybeAlign(pImpl->getValueAsInt()); in getStackAlignment()
341 return pImpl->getValueAsInt(); in getDereferenceableBytes()
348 return pImpl->getValueAsInt(); in getDereferenceableOrNullBytes()
354 return unpackAllocSizeArgs(pImpl->getValueAsInt()); in getAllocSizeArgs()
360 return unpackVScaleRangeArgs(pImpl->getValueAsInt()); in getVScaleRangeArgs()
364 if (!pImpl) return {}; in getAsString()
456 const auto &AttrVal = pImpl->getValueAsString(); in getAsString()
472 pImpl->Profile(ID); in hasParentContext()
474 return C.pImpl->AttrsSet.FindNodeOrInsertPos(ID, Unused) == pImpl; in hasParentContext()
478 if (!pImpl && !A.pImpl) return false; in operator <()
479 if (!pImpl) return true; in operator <()
480 if (!A.pImpl) return false; in operator <()
481 return *pImpl < *A.pImpl; in operator <()
485 ID.AddPointer(pImpl); in Profile()
734 return C.pImpl->AttrsSetNodes.FindNodeOrInsertPos(ID, Unused) == SetNode; in hasParentContext()
783 LLVMContextImpl *pImpl = C.pImpl; in getSorted() local
792 pImpl->AttrsSetNodes.FindNodeOrInsertPos(ID, InsertPoint); in getSorted()
800 pImpl->AttrsSetNodes.InsertNode(PA, InsertPoint); in getSorted()
1016 LLVMContextImpl *pImpl = C.pImpl; in getImpl() local
1022 pImpl->AttrsLists.FindNodeOrInsertPos(ID, InsertPoint); in getImpl()
1028 void *Mem = pImpl->Alloc.Allocate( in getImpl()
1032 pImpl->AttrsLists.InsertNode(PA, InsertPoint); in getImpl()
1252 if (!pImpl) in addAttributes()
1328 if (!pImpl) in removeAttributes()
1401 return pImpl && pImpl->hasFnAttribute(Kind); in hasFnAttribute()
1415 return pImpl && pImpl->hasAttrSomewhere(Attr, Index); in hasAttrSomewhere()
1491 if (!pImpl || Index >= getNumAttrSets()) in getAttributes()
1493 return pImpl->begin()[Index]; in getAttributes()
1499 pImpl->Profile(ID); in hasParentContext()
1501 return C.pImpl->AttrsLists.FindNodeOrInsertPos(ID, Unused) == pImpl; in hasParentContext()
1505 return pImpl ? pImpl->begin() : nullptr; in begin()
1509 return pImpl ? pImpl->end() : nullptr; in end()
1517 return pImpl ? pImpl->NumAttrSets : 0; in getNumAttrSets()