Home
last modified time | relevance | path

Searched refs:pImpl (Results 1 – 18 of 18) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DLLVMContext.cpp63 LLVMContext::LLVMContext() : pImpl(new LLVMContextImpl(*this)) { in LLVMContext()
81 pImpl->getOrInsertBundleTag(knownBundleName(BundleTagID)); in LLVMContext()
86 pImpl->getOrInsertSyncScopeID("singlethread"); in LLVMContext()
92 pImpl->getOrInsertSyncScopeID(""); in LLVMContext()
98 LLVMContext::~LLVMContext() { delete pImpl; } in ~LLVMContext()
101 pImpl->OwnedModules.insert(M); in addModule()
105 pImpl->OwnedModules.erase(M); in removeModule()
106 pImpl->MachineFunctionNums.erase(M); in removeModule()
111 assert(pImpl->OwnedModules.contains(M) && "Unexpected module!"); in generateMachineFunctionNum()
112 return pImpl->MachineFunctionNums[M]++; in generateMachineFunctionNum()
[all …]
H A DAttributes.cpp101 LLVMContextImpl *pImpl = Context.pImpl; in get() local
110 AttributeImpl *PA = pImpl->AttrsSet.FindNodeOrInsertPos(ID, InsertPoint); in get()
116 PA = new (pImpl->Alloc) EnumAttributeImpl(Kind); in get()
118 PA = new (pImpl->Alloc) IntAttributeImpl(Kind, Val); in get()
119 pImpl->AttrsSet.InsertNode(PA, InsertPoint); in get()
127 LLVMContextImpl *pImpl = Context.pImpl; in get() local
133 AttributeImpl *PA = pImpl->AttrsSet.FindNodeOrInsertPos(ID, InsertPoint); in get()
139 pImpl->Alloc.Allocate(StringAttributeImpl::totalSizeToAlloc(Kind, Val), in get()
142 pImpl->AttrsSet.InsertNode(PA, InsertPoint); in get()
152 LLVMContextImpl *pImpl = Context.pImpl; in get() local
[all …]
H A DType.cpp281 Type *Type::getVoidTy(LLVMContext &C) { return &C.pImpl->VoidTy; } in getVoidTy()
282 Type *Type::getLabelTy(LLVMContext &C) { return &C.pImpl->LabelTy; } in getLabelTy()
283 Type *Type::getHalfTy(LLVMContext &C) { return &C.pImpl->HalfTy; } in getHalfTy()
284 Type *Type::getBFloatTy(LLVMContext &C) { return &C.pImpl->BFloatTy; } in getBFloatTy()
285 Type *Type::getFloatTy(LLVMContext &C) { return &C.pImpl->FloatTy; } in getFloatTy()
286 Type *Type::getDoubleTy(LLVMContext &C) { return &C.pImpl->DoubleTy; } in getDoubleTy()
287 Type *Type::getMetadataTy(LLVMContext &C) { return &C.pImpl->MetadataTy; } in getMetadataTy()
288 Type *Type::getTokenTy(LLVMContext &C) { return &C.pImpl->TokenTy; } in getTokenTy()
289 Type *Type::getX86_FP80Ty(LLVMContext &C) { return &C.pImpl->X86_FP80Ty; } in getX86_FP80Ty()
290 Type *Type::getFP128Ty(LLVMContext &C) { return &C.pImpl->FP128Ty; } in getFP128Ty()
[all …]
H A DConstants.cpp869 LLVMContextImpl *pImpl = Context.pImpl; in getTrue() local
870 if (!pImpl->TheTrueVal) in getTrue()
871 pImpl->TheTrueVal = ConstantInt::get(Type::getInt1Ty(Context), 1); in getTrue()
872 return pImpl->TheTrueVal; in getTrue()
876 LLVMContextImpl *pImpl = Context.pImpl; in getFalse() local
877 if (!pImpl->TheFalseVal) in getFalse()
878 pImpl->TheFalseVal = ConstantInt::get(Type::getInt1Ty(Context), 0); in getFalse()
879 return pImpl->TheFalseVal; in getFalse()
909 LLVMContextImpl *pImpl = Context.pImpl; in get() local
911 V.isZero() ? pImpl->IntZeroConstants[V.getBitWidth()] in get()
[all …]
H A DValue.cpp234 BOI.Tag = Assume->getContext().pImpl->getOrInsertBundleTag("ignore"); in dropDroppableUse()
298 auto I = Ctx.pImpl->ValueNames.find(this); in getValueName()
299 assert(I != Ctx.pImpl->ValueNames.end() && in getValueName()
308 assert(HasName == Ctx.pImpl->ValueNames.count(this) && in setValueName()
313 Ctx.pImpl->ValueNames.erase(this); in setValueName()
319 Ctx.pImpl->ValueNames[this] = VN; in setValueName()
1164 LLVMContextImpl *pImpl = getValPtr()->getContext().pImpl; in AddToUseList() local
1169 ValueHandleBase *&Entry = pImpl->ValueHandles[getValPtr()]; in AddToUseList()
1180 DenseMap<Value*, ValueHandleBase*> &Handles = pImpl->ValueHandles; in AddToUseList()
1222 LLVMContextImpl *pImpl = getValPtr()->getContext().pImpl; in RemoveFromUseList() local
[all …]
H A DGlobals.cpp225 return getContext().pImpl->GlobalValuePartitions[this]; in getPartition()
236 S = getContext().pImpl->Saver.save(S); in setPartition()
237 getContext().pImpl->GlobalValuePartitions[this] = S; in setPartition()
247 assert(getContext().pImpl->GlobalValueSanitizerMetadata.count(this)); in getSanitizerMetadata()
248 return getContext().pImpl->GlobalValueSanitizerMetadata[this]; in getSanitizerMetadata()
252 getContext().pImpl->GlobalValueSanitizerMetadata[this] = Meta; in setSanitizerMetadata()
258 getContext().pImpl->GlobalValueSanitizerMetadata; in removeSanitizerMetadata()
272 return getContext().pImpl->GlobalObjectSections[this]; in getSectionImpl()
283 S = getContext().pImpl->Saver.save(S); in setSection()
284 getContext().pImpl->GlobalObjectSections[this] = S; in setSection()
H A DMetadata.cpp66 getType()->getContext().pImpl->MetadataAsValues.erase(MD); in ~MetadataAsValue()
105 auto *&Entry = Context.pImpl->MetadataAsValues[MD]; in get()
114 auto &Store = Context.pImpl->MetadataAsValues; in getIfExists()
121 auto &Store = Context.pImpl->MetadataAsValues; in handleChangedMetadata()
337 auto &Store = Context.pImpl->ValuesAsMetadata; in SalvageDebugInfo()
506 auto *&Entry = Context.pImpl->ValuesAsMetadata[V]; in get()
523 return V->getContext().pImpl->ValuesAsMetadata.lookup(V); in getIfExists()
529 auto &Store = V->getType()->getContext().pImpl->ValuesAsMetadata; in handleDeletion()
552 auto &Store = Context.pImpl->ValuesAsMetadata; in handleRAUW()
608 auto &Store = Context.pImpl->MDStringCache; in get()
[all …]
H A DInlineAsm.cpp49 LLVMContextImpl *pImpl = FTy->getContext().pImpl; in get() local
50 return pImpl->InlineAsms.getOrCreate( in get()
55 getType()->getContext().pImpl->InlineAsms.remove(this); in destroyConstant()
H A DTypedPointerType.cpp21 LLVMContextImpl *CImpl = EltTy->getContext().pImpl; in get()
H A DDebugInfoMetadata.cpp107 if (auto *N = getUniqued(Context.pImpl->DILocations, in getImpl()
125 Storage, Context.pImpl->DILocations); in getImpl()
579 if (auto *N = getUniqued(Context.pImpl->GenericDINodes, Key)) in getImpl()
593 Storage, Context.pImpl->GenericDINodes); in getImpl()
605 if (auto *N = getUniqued(Context.pImpl->CLASS##s, \
618 Storage, Context.pImpl->CLASS##s)
622 Storage, Context.pImpl->CLASS##s)
625 Storage, Context.pImpl->CLASS##s)
629 Storage, Context.pImpl->CLASS##s)
1070 auto *&CT = (*Context.pImpl->DITypeMap)[&Identifier]; in buildODRType()
[all …]
H A DBasicBlock.cpp1125 getContext().pImpl->setTrailingDbgRecords(this, foo); in setTrailingDbgRecords()
1129 return getContext().pImpl->getTrailingDbgRecords(this); in getTrailingDbgRecords()
1133 getContext().pImpl->deleteTrailingDbgRecords(this); in deleteTrailingDbgRecords()
H A DDIBuilder.cpp166 unsigned EntitiesCount = C.pImpl->DIImportedEntitys.size(); in createImportedModule()
169 if (EntitiesCount < C.pImpl->DIImportedEntitys.size()) in createImportedModule()
H A DDebugInfo.cpp1951 auto &Map = Ctx.pImpl->AssignmentIDToInstrs; in getAssignmentInsts()
H A DInstructions.cpp522 auto *ContextImpl = getContext().pImpl; in populateBundleOperandInfos()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DAttributes.h128 AttributeImpl *pImpl = nullptr;
130 Attribute(AttributeImpl *A) : pImpl(A) {} in Attribute()
223 bool isValid() const { return pImpl; } in isValid()
323 bool operator==(Attribute A) const { return pImpl == A.pImpl; }
324 bool operator!=(Attribute A) const { return pImpl != A.pImpl; }
336 return pImpl; in getRawPointer()
523 AttributeListImpl *pImpl = nullptr;
539 explicit AttributeList(AttributeListImpl *LI) : pImpl(LI) {}
1030 bool operator==(const AttributeList &RHS) const { return pImpl == RHS.pImpl; }
1031 bool operator!=(const AttributeList &RHS) const { return pImpl != RHS.pImpl; }
[all …]
H A DLLVMContext.h70 LLVMContextImpl *const pImpl;
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DValueMapper.cpp1193 static Mapper *getAsMapper(void *pImpl) { in getAsMapper() argument
1194 return reinterpret_cast<Mapper *>(pImpl); in getAsMapper()
1203 explicit FlushingMapper(void *pImpl) : M(*getAsMapper(pImpl)) { in FlushingMapper() argument
1218 : pImpl(new Mapper(VM, Flags, TypeMapper, Materializer, IdentityMD)) {} in ValueMapper()
1220 ValueMapper::~ValueMapper() { delete getAsMapper(pImpl); } in ~ValueMapper()
1225 return getAsMapper(pImpl)->registerAlternateMappingContext(VM, Materializer); in registerAlternateMappingContext()
1229 FlushingMapper(pImpl)->addFlags(Flags); in addFlags()
1233 return FlushingMapper(pImpl)->mapValue(&V); in mapValue()
1241 return FlushingMapper(pImpl)->mapMetadata(&MD); in mapMetadata()
1249 FlushingMapper(pImpl)->remapInstruction(&I); in remapInstruction()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DValueMapper.h164 void *pImpl; variable