Home
last modified time | relevance | path

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

123

/external/llvm-project/llvm/lib/IR/
DLLVMContext.cpp36 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->getOrInsertSyncScopeID("singlethread"); in LLVMContext()
88 pImpl->getOrInsertSyncScopeID(""); in LLVMContext()
94 LLVMContext::~LLVMContext() { delete pImpl; } in ~LLVMContext()
[all …]
DType.cpp170 Type *Type::getVoidTy(LLVMContext &C) { return &C.pImpl->VoidTy; } in getVoidTy()
171 Type *Type::getLabelTy(LLVMContext &C) { return &C.pImpl->LabelTy; } in getLabelTy()
172 Type *Type::getHalfTy(LLVMContext &C) { return &C.pImpl->HalfTy; } in getHalfTy()
173 Type *Type::getBFloatTy(LLVMContext &C) { return &C.pImpl->BFloatTy; } in getBFloatTy()
174 Type *Type::getFloatTy(LLVMContext &C) { return &C.pImpl->FloatTy; } in getFloatTy()
175 Type *Type::getDoubleTy(LLVMContext &C) { return &C.pImpl->DoubleTy; } in getDoubleTy()
176 Type *Type::getMetadataTy(LLVMContext &C) { return &C.pImpl->MetadataTy; } in getMetadataTy()
177 Type *Type::getTokenTy(LLVMContext &C) { return &C.pImpl->TokenTy; } in getTokenTy()
178 Type *Type::getX86_FP80Ty(LLVMContext &C) { return &C.pImpl->X86_FP80Ty; } in getX86_FP80Ty()
179 Type *Type::getFP128Ty(LLVMContext &C) { return &C.pImpl->FP128Ty; } in getFP128Ty()
[all …]
DAttributes.cpp83 LLVMContextImpl *pImpl = Context.pImpl; in get() local
89 AttributeImpl *PA = pImpl->AttrsSet.FindNodeOrInsertPos(ID, InsertPoint); in get()
95 PA = new (pImpl->Alloc) EnumAttributeImpl(Kind); in get()
97 PA = new (pImpl->Alloc) IntAttributeImpl(Kind, Val); in get()
98 pImpl->AttrsSet.InsertNode(PA, InsertPoint); in get()
106 LLVMContextImpl *pImpl = Context.pImpl; in get() local
112 AttributeImpl *PA = pImpl->AttrsSet.FindNodeOrInsertPos(ID, InsertPoint); in get()
118 pImpl->Alloc.Allocate(StringAttributeImpl::totalSizeToAlloc(Kind, Val), in get()
121 pImpl->AttrsSet.InsertNode(PA, InsertPoint); in get()
130 LLVMContextImpl *pImpl = Context.pImpl; in get() local
[all …]
DConstants.cpp805 LLVMContextImpl *pImpl = Context.pImpl; in getTrue() local
806 if (!pImpl->TheTrueVal) in getTrue()
807 pImpl->TheTrueVal = ConstantInt::get(Type::getInt1Ty(Context), 1); in getTrue()
808 return pImpl->TheTrueVal; in getTrue()
812 LLVMContextImpl *pImpl = Context.pImpl; in getFalse() local
813 if (!pImpl->TheFalseVal) in getFalse()
814 pImpl->TheFalseVal = ConstantInt::get(Type::getInt1Ty(Context), 0); in getFalse()
815 return pImpl->TheFalseVal; in getFalse()
837 LLVMContextImpl *pImpl = Context.pImpl; in get() local
838 std::unique_ptr<ConstantInt> &Slot = pImpl->IntConstants[V]; in get()
[all …]
DValue.cpp212 BOI.Tag = Assume->getContext().pImpl->getOrInsertBundleTag("ignore"); in dropDroppableUse()
271 auto I = Ctx.pImpl->ValueNames.find(this); in getValueName()
272 assert(I != Ctx.pImpl->ValueNames.end() && in getValueName()
281 assert(HasName == Ctx.pImpl->ValueNames.count(this) && in setValueName()
286 Ctx.pImpl->ValueNames.erase(this); in setValueName()
292 Ctx.pImpl->ValueNames[this] = VN; in setValueName()
917 LLVMContextImpl *pImpl = getValPtr()->getContext().pImpl; in AddToUseList() local
922 ValueHandleBase *&Entry = pImpl->ValueHandles[getValPtr()]; in AddToUseList()
933 DenseMap<Value*, ValueHandleBase*> &Handles = pImpl->ValueHandles; in AddToUseList()
975 LLVMContextImpl *pImpl = getValPtr()->getContext().pImpl; in RemoveFromUseList() local
[all …]
DMetadata.cpp69 getType()->getContext().pImpl->MetadataAsValues.erase(MD); in ~MetadataAsValue()
108 auto *&Entry = Context.pImpl->MetadataAsValues[MD]; in get()
117 auto &Store = Context.pImpl->MetadataAsValues; in getIfExists()
124 auto &Store = Context.pImpl->MetadataAsValues; in handleChangedMetadata()
353 auto *&Entry = Context.pImpl->ValuesAsMetadata[V]; in get()
370 return V->getContext().pImpl->ValuesAsMetadata.lookup(V); in getIfExists()
376 auto &Store = V->getType()->getContext().pImpl->ValuesAsMetadata; in handleDeletion()
399 auto &Store = Context.pImpl->ValuesAsMetadata; in handleRAUW()
455 auto &Store = Context.pImpl->MDStringCache; in get()
794 return uniquifyImpl(SubclassThis, getContext().pImpl->CLASS##s); \ in uniquify()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
DLLVMContext.cpp35 LLVMContext::LLVMContext() : pImpl(new LLVMContextImpl(*this)) { in LLVMContext()
50 auto *DeoptEntry = pImpl->getOrInsertBundleTag("deopt"); in LLVMContext()
55 auto *FuncletEntry = pImpl->getOrInsertBundleTag("funclet"); in LLVMContext()
60 auto *GCTransitionEntry = pImpl->getOrInsertBundleTag("gc-transition"); in LLVMContext()
65 auto *CFGuardTargetEntry = pImpl->getOrInsertBundleTag("cfguardtarget"); in LLVMContext()
71 pImpl->getOrInsertSyncScopeID("singlethread"); in LLVMContext()
77 pImpl->getOrInsertSyncScopeID(""); in LLVMContext()
83 LLVMContext::~LLVMContext() { delete pImpl; } in ~LLVMContext()
86 pImpl->OwnedModules.insert(M); in addModule()
90 pImpl->OwnedModules.erase(M); in removeModule()
[all …]
DType.cpp165 Type *Type::getVoidTy(LLVMContext &C) { return &C.pImpl->VoidTy; } in getVoidTy()
166 Type *Type::getLabelTy(LLVMContext &C) { return &C.pImpl->LabelTy; } in getLabelTy()
167 Type *Type::getHalfTy(LLVMContext &C) { return &C.pImpl->HalfTy; } in getHalfTy()
168 Type *Type::getFloatTy(LLVMContext &C) { return &C.pImpl->FloatTy; } in getFloatTy()
169 Type *Type::getDoubleTy(LLVMContext &C) { return &C.pImpl->DoubleTy; } in getDoubleTy()
170 Type *Type::getMetadataTy(LLVMContext &C) { return &C.pImpl->MetadataTy; } in getMetadataTy()
171 Type *Type::getTokenTy(LLVMContext &C) { return &C.pImpl->TokenTy; } in getTokenTy()
172 Type *Type::getX86_FP80Ty(LLVMContext &C) { return &C.pImpl->X86_FP80Ty; } in getX86_FP80Ty()
173 Type *Type::getFP128Ty(LLVMContext &C) { return &C.pImpl->FP128Ty; } in getFP128Ty()
174 Type *Type::getPPC_FP128Ty(LLVMContext &C) { return &C.pImpl->PPC_FP128Ty; } in getPPC_FP128Ty()
[all …]
DAttributes.cpp82 LLVMContextImpl *pImpl = Context.pImpl; in get() local
88 AttributeImpl *PA = pImpl->AttrsSet.FindNodeOrInsertPos(ID, InsertPoint); in get()
97 pImpl->AttrsSet.InsertNode(PA, InsertPoint); in get()
105 LLVMContextImpl *pImpl = Context.pImpl; in get() local
111 AttributeImpl *PA = pImpl->AttrsSet.FindNodeOrInsertPos(ID, InsertPoint); in get()
117 pImpl->AttrsSet.InsertNode(PA, InsertPoint); in get()
126 LLVMContextImpl *pImpl = Context.pImpl; in get() local
132 AttributeImpl *PA = pImpl->AttrsSet.FindNodeOrInsertPos(ID, InsertPoint); in get()
138 pImpl->AttrsSet.InsertNode(PA, InsertPoint); in get()
184 return pImpl && pImpl->isEnumAttribute(); in isEnumAttribute()
[all …]
DValue.cpp191 auto I = Ctx.pImpl->ValueNames.find(this); in getValueName()
192 assert(I != Ctx.pImpl->ValueNames.end() && in getValueName()
201 assert(HasName == Ctx.pImpl->ValueNames.count(this) && in setValueName()
206 Ctx.pImpl->ValueNames.erase(this); in setValueName()
212 Ctx.pImpl->ValueNames[this] = VN; in setValueName()
805 LLVMContextImpl *pImpl = getValPtr()->getContext().pImpl; in AddToUseList() local
810 ValueHandleBase *&Entry = pImpl->ValueHandles[getValPtr()]; in AddToUseList()
821 DenseMap<Value*, ValueHandleBase*> &Handles = pImpl->ValueHandles; in AddToUseList()
863 LLVMContextImpl *pImpl = getValPtr()->getContext().pImpl; in RemoveFromUseList() local
864 DenseMap<Value*, ValueHandleBase*> &Handles = pImpl->ValueHandles; in RemoveFromUseList()
[all …]
DConstants.cpp661 LLVMContextImpl *pImpl = Context.pImpl; in getTrue() local
662 if (!pImpl->TheTrueVal) in getTrue()
663 pImpl->TheTrueVal = ConstantInt::get(Type::getInt1Ty(Context), 1); in getTrue()
664 return pImpl->TheTrueVal; in getTrue()
668 LLVMContextImpl *pImpl = Context.pImpl; in getFalse() local
669 if (!pImpl->TheFalseVal) in getFalse()
670 pImpl->TheFalseVal = ConstantInt::get(Type::getInt1Ty(Context), 0); in getFalse()
671 return pImpl->TheFalseVal; in getFalse()
693 LLVMContextImpl *pImpl = Context.pImpl; in get() local
694 std::unique_ptr<ConstantInt> &Slot = pImpl->IntConstants[V]; in get()
[all …]
DMetadata.cpp68 getType()->getContext().pImpl->MetadataAsValues.erase(MD); in ~MetadataAsValue()
107 auto *&Entry = Context.pImpl->MetadataAsValues[MD]; in get()
116 auto &Store = Context.pImpl->MetadataAsValues; in getIfExists()
123 auto &Store = Context.pImpl->MetadataAsValues; in handleChangedMetadata()
352 auto *&Entry = Context.pImpl->ValuesAsMetadata[V]; in get()
369 return V->getContext().pImpl->ValuesAsMetadata.lookup(V); in getIfExists()
375 auto &Store = V->getType()->getContext().pImpl->ValuesAsMetadata; in handleDeletion()
398 auto &Store = Context.pImpl->ValuesAsMetadata; in handleRAUW()
454 auto &Store = Context.pImpl->MDStringCache; in get()
796 return uniquifyImpl(SubclassThis, getContext().pImpl->CLASS##s); \ in uniquify()
[all …]
/external/llvm/lib/IR/
DLLVMContext.cpp35 LLVMContext::LLVMContext() : pImpl(new LLVMContextImpl(*this)) { in LLVMContext()
141 auto *DeoptEntry = pImpl->getOrInsertBundleTag("deopt"); in LLVMContext()
146 auto *FuncletEntry = pImpl->getOrInsertBundleTag("funclet"); in LLVMContext()
151 auto *GCTransitionEntry = pImpl->getOrInsertBundleTag("gc-transition"); in LLVMContext()
157 LLVMContext::~LLVMContext() { delete pImpl; } in ~LLVMContext()
160 pImpl->OwnedModules.insert(M); in addModule()
164 pImpl->OwnedModules.erase(M); in removeModule()
174 pImpl->InlineAsmDiagHandler = DiagHandler; in setInlineAsmDiagnosticHandler()
175 pImpl->InlineAsmDiagContext = DiagContext; in setInlineAsmDiagnosticHandler()
182 return pImpl->InlineAsmDiagHandler; in getInlineAsmDiagnosticHandler()
[all …]
DAttributes.cpp66 LLVMContextImpl *pImpl = Context.pImpl; in get() local
72 AttributeImpl *PA = pImpl->AttrsSet.FindNodeOrInsertPos(ID, InsertPoint); in get()
81 pImpl->AttrsSet.InsertNode(PA, InsertPoint); in get()
89 LLVMContextImpl *pImpl = Context.pImpl; in get() local
95 AttributeImpl *PA = pImpl->AttrsSet.FindNodeOrInsertPos(ID, InsertPoint); in get()
101 pImpl->AttrsSet.InsertNode(PA, InsertPoint); in get()
146 return pImpl && pImpl->isEnumAttribute(); in isEnumAttribute()
150 return pImpl && pImpl->isIntAttribute(); in isIntAttribute()
154 return pImpl && pImpl->isStringAttribute(); in isStringAttribute()
158 if (!pImpl) return None; in getKindAsEnum()
[all …]
DType.cpp154 Type *Type::getVoidTy(LLVMContext &C) { return &C.pImpl->VoidTy; } in getVoidTy()
155 Type *Type::getLabelTy(LLVMContext &C) { return &C.pImpl->LabelTy; } in getLabelTy()
156 Type *Type::getHalfTy(LLVMContext &C) { return &C.pImpl->HalfTy; } in getHalfTy()
157 Type *Type::getFloatTy(LLVMContext &C) { return &C.pImpl->FloatTy; } in getFloatTy()
158 Type *Type::getDoubleTy(LLVMContext &C) { return &C.pImpl->DoubleTy; } in getDoubleTy()
159 Type *Type::getMetadataTy(LLVMContext &C) { return &C.pImpl->MetadataTy; } in getMetadataTy()
160 Type *Type::getTokenTy(LLVMContext &C) { return &C.pImpl->TokenTy; } in getTokenTy()
161 Type *Type::getX86_FP80Ty(LLVMContext &C) { return &C.pImpl->X86_FP80Ty; } in getX86_FP80Ty()
162 Type *Type::getFP128Ty(LLVMContext &C) { return &C.pImpl->FP128Ty; } in getFP128Ty()
163 Type *Type::getPPC_FP128Ty(LLVMContext &C) { return &C.pImpl->PPC_FP128Ty; } in getPPC_FP128Ty()
[all …]
DValue.cpp167 auto I = Ctx.pImpl->ValueNames.find(this); in getValueName()
168 assert(I != Ctx.pImpl->ValueNames.end() && in getValueName()
177 assert(HasName == Ctx.pImpl->ValueNames.count(this) && in setValueName()
182 Ctx.pImpl->ValueNames.erase(this); in setValueName()
188 Ctx.pImpl->ValueNames[this] = VN; in setValueName()
697 LLVMContextImpl *pImpl = V->getContext().pImpl; in AddToUseList() local
702 ValueHandleBase *&Entry = pImpl->ValueHandles[V]; in AddToUseList()
713 DenseMap<Value*, ValueHandleBase*> &Handles = pImpl->ValueHandles; in AddToUseList()
755 LLVMContextImpl *pImpl = V->getContext().pImpl; in RemoveFromUseList() local
756 DenseMap<Value*, ValueHandleBase*> &Handles = pImpl->ValueHandles; in RemoveFromUseList()
[all …]
DConstants.cpp509 LLVMContextImpl *pImpl = Context.pImpl; in getTrue() local
510 if (!pImpl->TheTrueVal) in getTrue()
511 pImpl->TheTrueVal = ConstantInt::get(Type::getInt1Ty(Context), 1); in getTrue()
512 return pImpl->TheTrueVal; in getTrue()
516 LLVMContextImpl *pImpl = Context.pImpl; in getFalse() local
517 if (!pImpl->TheFalseVal) in getFalse()
518 pImpl->TheFalseVal = ConstantInt::get(Type::getInt1Ty(Context), 0); in getFalse()
519 return pImpl->TheFalseVal; in getFalse()
549 LLVMContextImpl *pImpl = Context.pImpl; in get() local
550 ConstantInt *&Slot = pImpl->IntConstants[V]; in get()
[all …]
DMetadata.cpp36 getType()->getContext().pImpl->MetadataAsValues.erase(MD); in ~MetadataAsValue()
75 auto *&Entry = Context.pImpl->MetadataAsValues[MD]; in get()
84 auto &Store = Context.pImpl->MetadataAsValues; in getIfExists()
91 auto &Store = Context.pImpl->MetadataAsValues; in handleChangedMetadata()
312 auto *&Entry = Context.pImpl->ValuesAsMetadata[V]; in get()
330 return V->getContext().pImpl->ValuesAsMetadata.lookup(V); in getIfExists()
336 auto &Store = V->getType()->getContext().pImpl->ValuesAsMetadata; in handleDeletion()
359 auto &Store = Context.pImpl->ValuesAsMetadata; in handleRAUW()
418 auto &Store = Context.pImpl->MDStringCache; in get()
758 return uniquifyImpl(SubclassThis, getContext().pImpl->CLASS##s); \ in uniquify()
[all …]
/external/swiftshader/third_party/llvm-subzero/include/llvm/IR/
DAttributes.h76 AttributeImpl *pImpl;
77 Attribute(AttributeImpl *A) : pImpl(A) {} in Attribute()
80 Attribute() : pImpl(nullptr) {} in Attribute()
164 bool operator==(Attribute A) const { return pImpl == A.pImpl; }
165 bool operator!=(Attribute A) const { return pImpl != A.pImpl; }
171 ID.AddPointer(pImpl); in Profile()
176 return pImpl; in getRawPointer()
218 AttributeSetImpl *pImpl; variable
234 explicit AttributeSet(AttributeSetImpl *LI) : pImpl(LI) {} in AttributeSet()
237 AttributeSet() : pImpl(nullptr) {} in AttributeSet()
[all …]
/external/llvm/include/llvm/IR/
DAttributes.h76 AttributeImpl *pImpl;
77 Attribute(AttributeImpl *A) : pImpl(A) {} in Attribute()
80 Attribute() : pImpl(nullptr) {} in Attribute()
164 bool operator==(Attribute A) const { return pImpl == A.pImpl; }
165 bool operator!=(Attribute A) const { return pImpl != A.pImpl; }
171 ID.AddPointer(pImpl); in Profile()
176 return pImpl; in getRawPointer()
217 AttributeSetImpl *pImpl; variable
233 explicit AttributeSet(AttributeSetImpl *LI) : pImpl(LI) {} in AttributeSet()
236 AttributeSet() : pImpl(nullptr) {} in AttributeSet()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/
DAttributes.h79 AttributeImpl *pImpl = nullptr;
81 Attribute(AttributeImpl *A) : pImpl(A) {} in Attribute()
177 bool operator==(Attribute A) const { return pImpl == A.pImpl; }
178 bool operator!=(Attribute A) const { return pImpl != A.pImpl; }
184 ID.AddPointer(pImpl); in Profile()
189 return pImpl; in getRawPointer()
354 AttributeListImpl *pImpl = nullptr;
370 explicit AttributeList(AttributeListImpl *LI) : pImpl(LI) {}
660 bool operator==(const AttributeList &RHS) const { return pImpl == RHS.pImpl; }
661 bool operator!=(const AttributeList &RHS) const { return pImpl != RHS.pImpl; }
[all …]
/external/llvm-project/llvm/include/llvm/IR/
DAttributes.h82 AttributeImpl *pImpl = nullptr;
84 Attribute(AttributeImpl *A) : pImpl(A) {} in Attribute()
151 bool isValid() const { return pImpl; } in isValid()
204 bool operator==(Attribute A) const { return pImpl == A.pImpl; }
205 bool operator!=(Attribute A) const { return pImpl != A.pImpl; }
214 return pImpl; in getRawPointer()
382 AttributeListImpl *pImpl = nullptr;
398 explicit AttributeList(AttributeListImpl *LI) : pImpl(LI) {}
708 bool operator==(const AttributeList &RHS) const { return pImpl == RHS.pImpl; }
709 bool operator!=(const AttributeList &RHS) const { return pImpl != RHS.pImpl; }
[all …]
/external/llvm-project/llvm/lib/Transforms/Utils/
DValueMapper.cpp1052 static Mapper *getAsMapper(void *pImpl) { in getAsMapper() argument
1053 return reinterpret_cast<Mapper *>(pImpl); in getAsMapper()
1062 explicit FlushingMapper(void *pImpl) : M(*getAsMapper(pImpl)) { in FlushingMapper() argument
1076 : pImpl(new Mapper(VM, Flags, TypeMapper, Materializer)) {} in ValueMapper()
1078 ValueMapper::~ValueMapper() { delete getAsMapper(pImpl); } in ~ValueMapper()
1083 return getAsMapper(pImpl)->registerAlternateMappingContext(VM, Materializer); in registerAlternateMappingContext()
1087 FlushingMapper(pImpl)->addFlags(Flags); in addFlags()
1091 return FlushingMapper(pImpl)->mapValue(&V); in mapValue()
1099 return FlushingMapper(pImpl)->mapMetadata(&MD); in mapMetadata()
1107 FlushingMapper(pImpl)->remapInstruction(&I); in remapInstruction()
[all …]
/external/llvm/lib/Transforms/Utils/
DValueMapper.cpp1040 static Mapper *getAsMapper(void *pImpl) { in getAsMapper() argument
1041 return reinterpret_cast<Mapper *>(pImpl); in getAsMapper()
1050 explicit FlushingMapper(void *pImpl) : M(*getAsMapper(pImpl)) { in FlushingMapper() argument
1062 : pImpl(new Mapper(VM, Flags, TypeMapper, Materializer)) {} in ValueMapper()
1064 ValueMapper::~ValueMapper() { delete getAsMapper(pImpl); } in ~ValueMapper()
1069 return getAsMapper(pImpl)->registerAlternateMappingContext(VM, Materializer); in registerAlternateMappingContext()
1073 FlushingMapper(pImpl)->addFlags(Flags); in addFlags()
1077 return FlushingMapper(pImpl)->mapValue(&V); in mapValue()
1085 return FlushingMapper(pImpl)->mapMetadata(&MD); in mapMetadata()
1093 FlushingMapper(pImpl)->remapInstruction(&I); in remapInstruction()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DValueMapper.cpp1056 static Mapper *getAsMapper(void *pImpl) { in getAsMapper() argument
1057 return reinterpret_cast<Mapper *>(pImpl); in getAsMapper()
1066 explicit FlushingMapper(void *pImpl) : M(*getAsMapper(pImpl)) { in FlushingMapper() argument
1080 : pImpl(new Mapper(VM, Flags, TypeMapper, Materializer)) {} in ValueMapper()
1082 ValueMapper::~ValueMapper() { delete getAsMapper(pImpl); } in ~ValueMapper()
1087 return getAsMapper(pImpl)->registerAlternateMappingContext(VM, Materializer); in registerAlternateMappingContext()
1091 FlushingMapper(pImpl)->addFlags(Flags); in addFlags()
1095 return FlushingMapper(pImpl)->mapValue(&V); in mapValue()
1103 return FlushingMapper(pImpl)->mapMetadata(&MD); in mapMetadata()
1111 FlushingMapper(pImpl)->remapInstruction(&I); in remapInstruction()
[all …]

123