Home
last modified time | relevance | path

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

12

/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 …]
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 …]
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 …]
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 …]
DDebugInfoMetadata.cpp50 getUniqued(Context.pImpl->DILocations, in getImpl()
65 Storage, Context.pImpl->DILocations); in getImpl()
168 if (auto *N = getUniqued(Context.pImpl->GenericDINodes, Key)) in getImpl()
182 Storage, Context.pImpl->GenericDINodes); in getImpl()
194 if (auto *N = getUniqued(Context.pImpl->CLASS##s, \
207 Storage, Context.pImpl->CLASS##s)
210 Storage, Context.pImpl->CLASS##s)
213 Storage, Context.pImpl->CLASS##s)
287 auto *&CT = (*Context.pImpl->DITypeMap)[&Identifier]; in buildODRType()
321 auto *&CT = (*Context.pImpl->DITypeMap)[&Identifier]; in getODRType()
[all …]
DInlineAsm.cpp32 LLVMContextImpl *pImpl = FTy->getContext().pImpl; in get() local
33 return pImpl->InlineAsms.getOrCreate(PointerType::getUnqual(FTy), Key); in get()
50 getType()->getContext().pImpl->InlineAsms.remove(this); in destroyConstant()
/external/swiftshader/third_party/LLVM/lib/VMCore/
DLLVMContext.cpp31 LLVMContext::LLVMContext() : pImpl(new LLVMContextImpl(*this)) { in LLVMContext()
47 LLVMContext::~LLVMContext() { delete pImpl; } in ~LLVMContext()
50 pImpl->OwnedModules.insert(M); in addModule()
54 pImpl->OwnedModules.erase(M); in removeModule()
64 pImpl->InlineAsmDiagHandler = DiagHandler; in setInlineAsmDiagnosticHandler()
65 pImpl->InlineAsmDiagContext = DiagContext; in setInlineAsmDiagnosticHandler()
72 return pImpl->InlineAsmDiagHandler; in getInlineAsmDiagnosticHandler()
78 return pImpl->InlineAsmDiagContext; in getInlineAsmDiagnosticContext()
97 if (pImpl->InlineAsmDiagHandler == 0) { in emitError()
105 pImpl->InlineAsmDiagHandler(Diag, pImpl->InlineAsmDiagContext, LocCookie); in emitError()
[all …]
DMetadata.cpp36 LLVMContextImpl *pImpl = Context.pImpl; in get() local
38 pImpl->MDStringCache.GetOrCreateValue(Str); in get()
107 LLVMContextImpl *pImpl = getType()->getContext().pImpl; in ~MDNode() local
109 pImpl->NonUniquedMDNodes.erase(this); in ~MDNode()
111 pImpl->MDNodeSet.RemoveNode(this); in ~MDNode()
189 LLVMContextImpl *pImpl = Context.pImpl; in getMDNode() local
202 if ((N = pImpl->MDNodeSet.FindNodeOrInsertPos(ID, InsertPoint))) in getMDNode()
230 pImpl->MDNodeSet.InsertNode(N, InsertPoint); in getMDNode()
261 assert(!N->getContext().pImpl->MDNodeSet.RemoveNode(N) && in deleteTemporary()
263 assert(!N->getContext().pImpl->NonUniquedMDNodes.erase(N) && in deleteTemporary()
[all …]
DLeakDetector.cpp29 Context.pImpl->LLVMObjects.clear(); in clearGarbage()
38 LLVMContextImpl *pImpl = Object->getContext().pImpl; in addGarbageObjectImpl() local
39 pImpl->LLVMObjects.addGarbage(Object); in addGarbageObjectImpl()
48 LLVMContextImpl *pImpl = Object->getContext().pImpl; in removeGarbageObjectImpl() local
49 pImpl->LLVMObjects.removeGarbage(Object); in removeGarbageObjectImpl()
54 LLVMContextImpl *pImpl = Context.pImpl; in checkForGarbageImpl() local
58 pImpl->LLVMObjects.setName("LLVM"); in checkForGarbageImpl()
62 pImpl->LLVMObjects.hasGarbage(Message)) in checkForGarbageImpl()
DType.cpp200 Type *Type::getVoidTy(LLVMContext &C) { return &C.pImpl->VoidTy; } in getVoidTy()
201 Type *Type::getLabelTy(LLVMContext &C) { return &C.pImpl->LabelTy; } in getLabelTy()
202 Type *Type::getFloatTy(LLVMContext &C) { return &C.pImpl->FloatTy; } in getFloatTy()
203 Type *Type::getDoubleTy(LLVMContext &C) { return &C.pImpl->DoubleTy; } in getDoubleTy()
204 Type *Type::getMetadataTy(LLVMContext &C) { return &C.pImpl->MetadataTy; } in getMetadataTy()
205 Type *Type::getX86_FP80Ty(LLVMContext &C) { return &C.pImpl->X86_FP80Ty; } in getX86_FP80Ty()
206 Type *Type::getFP128Ty(LLVMContext &C) { return &C.pImpl->FP128Ty; } in getFP128Ty()
207 Type *Type::getPPC_FP128Ty(LLVMContext &C) { return &C.pImpl->PPC_FP128Ty; } in getPPC_FP128Ty()
208 Type *Type::getX86_MMXTy(LLVMContext &C) { return &C.pImpl->X86_MMXTy; } in getX86_MMXTy()
210 IntegerType *Type::getInt1Ty(LLVMContext &C) { return &C.pImpl->Int1Ty; } in getInt1Ty()
[all …]
DConstants.cpp367 LLVMContextImpl *pImpl = Context.pImpl; in getTrue() local
368 if (!pImpl->TheTrueVal) in getTrue()
369 pImpl->TheTrueVal = ConstantInt::get(Type::getInt1Ty(Context), 1); in getTrue()
370 return pImpl->TheTrueVal; in getTrue()
374 LLVMContextImpl *pImpl = Context.pImpl; in getFalse() local
375 if (!pImpl->TheFalseVal) in getFalse()
376 pImpl->TheFalseVal = ConstantInt::get(Type::getInt1Ty(Context), 0); in getFalse()
377 return pImpl->TheFalseVal; in getFalse()
417 ConstantInt *&Slot = Context.pImpl->IntConstants[Key]; in get()
545 LLVMContextImpl* pImpl = Context.pImpl; in get() local
[all …]
DDebugLoc.cpp25 assert(unsigned(ScopeIdx) <= Ctx.pImpl->ScopeRecords.size() && in getScope()
27 return Ctx.pImpl->ScopeRecords[ScopeIdx-1].get(); in getScope()
31 assert(unsigned(-ScopeIdx) <= Ctx.pImpl->ScopeInlinedAtRecords.size() && in getScope()
33 return Ctx.pImpl->ScopeInlinedAtRecords[-ScopeIdx-1].first.get(); in getScope()
42 assert(unsigned(-ScopeIdx) <= Ctx.pImpl->ScopeInlinedAtRecords.size() && in getInlinedAt()
44 return Ctx.pImpl->ScopeInlinedAtRecords[-ScopeIdx-1].second.get(); in getInlinedAt()
58 assert(unsigned(ScopeIdx) <= Ctx.pImpl->ScopeRecords.size() && in getScopeAndInlinedAt()
60 Scope = Ctx.pImpl->ScopeRecords[ScopeIdx-1].get(); in getScopeAndInlinedAt()
66 assert(unsigned(-ScopeIdx) <= Ctx.pImpl->ScopeInlinedAtRecords.size() && in getScopeAndInlinedAt()
68 Scope = Ctx.pImpl->ScopeInlinedAtRecords[-ScopeIdx-1].first.get(); in getScopeAndInlinedAt()
[all …]
DValue.cpp446 LLVMContextImpl *pImpl = VP->getContext().pImpl; in AddToUseList() local
451 ValueHandleBase *&Entry = pImpl->ValueHandles[VP]; in AddToUseList()
462 DenseMap<Value*, ValueHandleBase*> &Handles = pImpl->ValueHandles; in AddToUseList()
503 LLVMContextImpl *pImpl = VP->getContext().pImpl; in RemoveFromUseList() local
504 DenseMap<Value*, ValueHandleBase*> &Handles = pImpl->ValueHandles; in RemoveFromUseList()
517 LLVMContextImpl *pImpl = V->getContext().pImpl; in ValueIsDeleted() local
518 ValueHandleBase *Entry = pImpl->ValueHandles[V]; in ValueIsDeleted()
559 if (pImpl->ValueHandles[V]->getKind() == Assert) in ValueIsDeleted()
575 LLVMContextImpl *pImpl = Old->getContext().pImpl; in ValueIsRAUWd() local
576 ValueHandleBase *Entry = pImpl->ValueHandles[Old]; in ValueIsRAUWd()
[all …]
DPassRegistry.cpp65 if (!pImpl) in getImpl()
66 pImpl = new PassRegistryImpl(); in getImpl()
67 return pImpl; in getImpl()
76 PassRegistryImpl *Impl = static_cast<PassRegistryImpl*>(pImpl); in ~PassRegistry()
83 pImpl = 0; in ~PassRegistry()
201 if (!pImpl) return; in removeRegistrationListener()
DDebugInfoProbe.cpp163 pImpl = new DebugInfoProbeImpl(); in DebugInfoProbe()
167 delete pImpl; in ~DebugInfoProbe()
172 pImpl->initialize(PName, F); in initialize()
178 pImpl->finalize(F); in finalize()
183 pImpl->report(); in report()
DInlineAsm.cpp32 LLVMContextImpl *pImpl = Ty->getContext().pImpl; in get() local
33 return pImpl->InlineAsms.getOrCreate(PointerType::getUnqual(Ty), Key); in get()
50 getType()->getContext().pImpl->InlineAsms.remove(this); in destroyConstant()
/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/lib/CodeGen/
DLiveDebugVariables.cpp67 LiveDebugVariables::LiveDebugVariables() : MachineFunctionPass(ID), pImpl(0) { in LiveDebugVariables()
685 if (!pImpl) in runOnMachineFunction()
686 pImpl = new LDVImpl(this); in runOnMachineFunction()
687 return static_cast<LDVImpl*>(pImpl)->runOnMachineFunction(mf); in runOnMachineFunction()
691 if (pImpl) in releaseMemory()
692 static_cast<LDVImpl*>(pImpl)->clear(); in releaseMemory()
696 if (pImpl) in ~LiveDebugVariables()
697 delete static_cast<LDVImpl*>(pImpl); in ~LiveDebugVariables()
734 if (pImpl) in renameRegister()
735 static_cast<LDVImpl*>(pImpl)->renameRegister(OldReg, NewReg, SubIdx); in renameRegister()
[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/llvm/lib/CodeGen/
DLiveDebugVariables.cpp72 LiveDebugVariables::LiveDebugVariables() : MachineFunctionPass(ID), pImpl(nullptr) { in LiveDebugVariables()
759 if (!pImpl) in runOnMachineFunction()
760 pImpl = new LDVImpl(this); in runOnMachineFunction()
761 return static_cast<LDVImpl*>(pImpl)->runOnMachineFunction(mf); in runOnMachineFunction()
765 if (pImpl) in releaseMemory()
766 static_cast<LDVImpl*>(pImpl)->clear(); in releaseMemory()
770 if (pImpl) in ~LiveDebugVariables()
771 delete static_cast<LDVImpl*>(pImpl); in ~LiveDebugVariables()
909 if (pImpl) in splitRegister()
910 static_cast<LDVImpl*>(pImpl)->splitRegister(OldReg, NewRegs); in splitRegister()
[all …]
/external/swiftshader/third_party/LLVM/include/llvm/
DPassRegistry.h34 mutable void *pImpl; variable
38 PassRegistry() : pImpl(0) { } in PassRegistry()
/external/icu/icu4c/source/common/
Ducnv_bld.h128 #define UCNV_IMMUTABLE_SHARED_DATA_INITIALIZER(pStaticData, pImpl) \ argument
131 NULL, pStaticData, FALSE, FALSE, pImpl, \

12