/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/ |
D | LLVMContext.cpp | 35 LLVMContext::LLVMContext() : pImpl(new LLVMContextImpl(*this)) { in LLVMContext() 72 auto *DeoptEntry = pImpl->getOrInsertBundleTag("deopt"); in LLVMContext() 77 auto *FuncletEntry = pImpl->getOrInsertBundleTag("funclet"); in LLVMContext() 82 auto *GCTransitionEntry = pImpl->getOrInsertBundleTag("gc-transition"); in LLVMContext() 88 pImpl->getOrInsertSyncScopeID("singlethread"); in LLVMContext() 94 pImpl->getOrInsertSyncScopeID(""); in LLVMContext() 100 LLVMContext::~LLVMContext() { delete pImpl; } in ~LLVMContext() 103 pImpl->OwnedModules.insert(M); in addModule() 107 pImpl->OwnedModules.erase(M); in removeModule() 117 pImpl->InlineAsmDiagHandler = DiagHandler; in setInlineAsmDiagnosticHandler() [all …]
|
D | Type.cpp | 161 Type *Type::getVoidTy(LLVMContext &C) { return &C.pImpl->VoidTy; } in getVoidTy() 162 Type *Type::getLabelTy(LLVMContext &C) { return &C.pImpl->LabelTy; } in getLabelTy() 163 Type *Type::getHalfTy(LLVMContext &C) { return &C.pImpl->HalfTy; } in getHalfTy() 164 Type *Type::getFloatTy(LLVMContext &C) { return &C.pImpl->FloatTy; } in getFloatTy() 165 Type *Type::getDoubleTy(LLVMContext &C) { return &C.pImpl->DoubleTy; } in getDoubleTy() 166 Type *Type::getMetadataTy(LLVMContext &C) { return &C.pImpl->MetadataTy; } in getMetadataTy() 167 Type *Type::getTokenTy(LLVMContext &C) { return &C.pImpl->TokenTy; } in getTokenTy() 168 Type *Type::getX86_FP80Ty(LLVMContext &C) { return &C.pImpl->X86_FP80Ty; } in getX86_FP80Ty() 169 Type *Type::getFP128Ty(LLVMContext &C) { return &C.pImpl->FP128Ty; } in getFP128Ty() 170 Type *Type::getPPC_FP128Ty(LLVMContext &C) { return &C.pImpl->PPC_FP128Ty; } in getPPC_FP128Ty() [all …]
|
D | Attributes.cpp | 83 LLVMContextImpl *pImpl = Context.pImpl; in get() local 89 AttributeImpl *PA = pImpl->AttrsSet.FindNodeOrInsertPos(ID, InsertPoint); 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->AttrsSet.InsertNode(PA, InsertPoint); in get() 163 return pImpl && pImpl->isEnumAttribute(); in isEnumAttribute() 167 return pImpl && pImpl->isIntAttribute(); in isIntAttribute() 171 return pImpl && pImpl->isStringAttribute(); in isStringAttribute() 175 if (!pImpl) return None; in getKindAsEnum() [all …]
|
D | Value.cpp | 200 auto I = Ctx.pImpl->ValueNames.find(this); in getValueName() 201 assert(I != Ctx.pImpl->ValueNames.end() && in getValueName() 210 assert(HasName == Ctx.pImpl->ValueNames.count(this) && in setValueName() 215 Ctx.pImpl->ValueNames.erase(this); in setValueName() 221 Ctx.pImpl->ValueNames[this] = VN; in setValueName() 775 LLVMContextImpl *pImpl = getValPtr()->getContext().pImpl; in AddToUseList() local 780 ValueHandleBase *&Entry = pImpl->ValueHandles[getValPtr()]; in AddToUseList() 791 DenseMap<Value*, ValueHandleBase*> &Handles = pImpl->ValueHandles; in AddToUseList() 833 LLVMContextImpl *pImpl = getValPtr()->getContext().pImpl; in RemoveFromUseList() local 834 DenseMap<Value*, ValueHandleBase*> &Handles = pImpl->ValueHandles; in RemoveFromUseList() [all …]
|
D | Constants.cpp | 578 LLVMContextImpl *pImpl = Context.pImpl; in getTrue() local 579 if (!pImpl->TheTrueVal) in getTrue() 580 pImpl->TheTrueVal = ConstantInt::get(Type::getInt1Ty(Context), 1); in getTrue() 581 return pImpl->TheTrueVal; in getTrue() 585 LLVMContextImpl *pImpl = Context.pImpl; in getFalse() local 586 if (!pImpl->TheFalseVal) in getFalse() 587 pImpl->TheFalseVal = ConstantInt::get(Type::getInt1Ty(Context), 0); in getFalse() 588 return pImpl->TheFalseVal; in getFalse() 610 LLVMContextImpl *pImpl = Context.pImpl; in get() local 611 std::unique_ptr<ConstantInt> &Slot = pImpl->IntConstants[V]; in get() [all …]
|
D | Metadata.cpp | 69 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() 795 return uniquifyImpl(SubclassThis, getContext().pImpl->CLASS##s); \ in uniquify() [all …]
|
/external/llvm/lib/IR/ |
D | LLVMContext.cpp | 35 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 …]
|
D | Attributes.cpp | 66 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 …]
|
D | Type.cpp | 154 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 …]
|
D | Value.cpp | 167 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 …]
|
D | Constants.cpp | 509 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 …]
|
D | Metadata.cpp | 36 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/lib/VMCore/ |
D | LLVMContext.cpp | 31 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 …]
|
D | LeakDetector.cpp | 29 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()
|
D | Metadata.cpp | 36 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 …]
|
D | Type.cpp | 200 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 …]
|
D | DebugLoc.cpp | 25 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 …]
|
D | Constants.cpp | 367 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 …]
|
D | Value.cpp | 446 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 …]
|
D | PassRegistry.cpp | 65 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()
|
D | DebugInfoProbe.cpp | 163 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()
|
/external/swiftshader/third_party/llvm-subzero/include/llvm/IR/ |
D | Attributes.h | 76 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/ |
D | Attributes.h | 76 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-7.0/llvm/include/llvm/IR/ |
D | Attributes.h | 79 AttributeImpl *pImpl = nullptr; 81 Attribute(AttributeImpl *A) : pImpl(A) {} in Attribute() 168 bool operator==(Attribute A) const { return pImpl == A.pImpl; } 169 bool operator!=(Attribute A) const { return pImpl != A.pImpl; } 175 ID.AddPointer(pImpl); in Profile() 180 return pImpl; in getRawPointer() 340 AttributeListImpl *pImpl = nullptr; 356 explicit AttributeList(AttributeListImpl *LI) : pImpl(LI) {} 636 bool operator==(const AttributeList &RHS) const { return pImpl == RHS.pImpl; } 637 bool operator!=(const AttributeList &RHS) const { return pImpl != RHS.pImpl; } [all …]
|
/external/swiftshader/third_party/LLVM/lib/CodeGen/ |
D | LiveDebugVariables.cpp | 67 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 …]
|