/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/IPO/ |
D | ConstantMerge.cpp | 46 static void FindUsedValues(GlobalVariable *LLVMUsed, in FindUsedValues() 59 static bool IsBetterCanonical(const GlobalVariable &A, in IsBetterCanonical() 60 const GlobalVariable &B) { in IsBetterCanonical() 70 static bool hasMetadataOtherThanDebugLoc(const GlobalVariable *GV) { in hasMetadataOtherThanDebugLoc() 79 static void copyDebugLocMetadata(const GlobalVariable *From, in copyDebugLocMetadata() 80 GlobalVariable *To) { in copyDebugLocMetadata() 87 static unsigned getAlignment(GlobalVariable *GV) { in getAlignment() 95 isUnmergeableGlobal(GlobalVariable *GV, in isUnmergeableGlobal() 105 static CanMerge makeMergeable(GlobalVariable *Old, GlobalVariable *New) { in makeMergeable() 116 static void replace(Module &M, GlobalVariable *Old, GlobalVariable *New) { in replace() [all …]
|
D | GlobalOpt.cpp | 111 static bool isLeakCheckerRoot(GlobalVariable *GV) { in isLeakCheckerRoot() 190 CleanupPointerRootUsers(GlobalVariable *GV, in CleanupPointerRootUsers() 229 GlobalVariable *MemSrc = dyn_cast<GlobalVariable>(MTI->getSource()); in CleanupPointerRootUsers() 436 static bool CanDoGlobalSRA(GlobalVariable *GV) { in CanDoGlobalSRA() 451 static void transferSRADebugInfo(GlobalVariable *GV, GlobalVariable *NGV, in transferSRADebugInfo() 477 static GlobalVariable *SRAGlobal(GlobalVariable *GV, const DataLayout &DL) { in SRAGlobal() 486 std::map<unsigned, GlobalVariable *> NewGlobals; in SRAGlobal() 519 GlobalVariable *NGV = new GlobalVariable( in SRAGlobal() 520 ElTy, false, GlobalVariable::InternalLinkage, In, in SRAGlobal() 676 static bool AllUsesOfLoadedValueWillTrapIfNull(const GlobalVariable *GV) { in AllUsesOfLoadedValueWillTrapIfNull() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/ |
D | GlobalVariable.h | 41 class GlobalVariable : public GlobalObject, public ilist_node<GlobalVariable> { 42 friend class SymbolTableListTraits<GlobalVariable>; 54 GlobalVariable(Type *Ty, bool isConstant, LinkageTypes Linkage, 60 GlobalVariable(Module &M, Type *Ty, bool isConstant, 62 const Twine &Name = "", GlobalVariable *InsertBefore = nullptr, 65 GlobalVariable(const GlobalVariable &) = delete; 66 GlobalVariable &operator=(const GlobalVariable &) = delete; 68 ~GlobalVariable() { in ~GlobalVariable() 165 void copyAttributesFrom(const GlobalVariable *Src); 257 struct OperandTraits<GlobalVariable> : [all …]
|
D | Module.h | 71 using GlobalListType = SymbolTableList<GlobalVariable>; 391 GlobalVariable *getGlobalVariable(StringRef Name) const { in getGlobalVariable() 395 GlobalVariable *getGlobalVariable(StringRef Name, bool AllowInternal) const; 397 GlobalVariable *getGlobalVariable(StringRef Name, 406 const GlobalVariable *getNamedGlobal(StringRef Name) const { in getNamedGlobal() 409 GlobalVariable *getNamedGlobal(StringRef Name) { in getNamedGlobal() 410 return const_cast<GlobalVariable *>( in getNamedGlobal() 420 function_ref<GlobalVariable *()> CreateGlobalCallback); 529 static GlobalListType Module::*getSublistAccess(GlobalVariable*) { in getSublistAccess() argument 873 GlobalVariable *collectUsedGlobalVariables(const Module &M,
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Transforms/Instrumentation/ |
D | InstrProfiling.h | 52 GlobalVariable *RegionCounters = nullptr; 53 GlobalVariable *DataVar = nullptr; 59 DenseMap<GlobalVariable *, PerFunctionProfileData> ProfileDataMap; 61 std::vector<GlobalVariable *> ReferencedNames; 62 GlobalVariable *NamesVar; 98 void lowerCoverageData(GlobalVariable *CoverageNamesVar); 104 GlobalVariable *getOrCreateRegionCounters(InstrProfIncrementInst *Inc);
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/ |
D | LowerEmuTLS.cpp | 40 bool addEmuTlsVar(Module &M, const GlobalVariable *GV); 42 const GlobalVariable *from, in copyLinkageVisibility() 43 GlobalVariable *to) { in copyLinkageVisibility() 75 SmallVector<const GlobalVariable*, 8> TlsVars; in runOnModule() 85 bool LowerEmuTLS::addEmuTlsVar(Module &M, const GlobalVariable *GV) { in addEmuTlsVar() 90 GlobalVariable *EmuTlsVar = M.getNamedGlobal(EmuTlsVarName); in addEmuTlsVar() 121 EmuTlsVar = cast<GlobalVariable>( in addEmuTlsVar() 138 GlobalVariable *EmuTlsTmplVar = nullptr; in addEmuTlsVar() 141 EmuTlsTmplVar = dyn_cast_or_null<GlobalVariable>( in addEmuTlsVar()
|
D | GlobalMerge.cpp | 159 bool doMerge(SmallVectorImpl<GlobalVariable*> &Globals, 164 bool doMerge(const SmallVectorImpl<GlobalVariable *> &Globals, 171 bool isMustKeepGlobalVariable(const GlobalVariable *GV) const { in isMustKeepGlobalVariable() 183 SmallPtrSet<const GlobalVariable *, 16> MustKeepGlobalVariables; 219 bool GlobalMerge::doMerge(SmallVectorImpl<GlobalVariable*> &Globals, in doMerge() 224 Globals, [&DL](const GlobalVariable *GV1, const GlobalVariable *GV2) { in doMerge() 296 GlobalVariable *GV = Globals[GI]; in doMerge() 437 bool GlobalMerge::doMerge(const SmallVectorImpl<GlobalVariable *> &Globals, in doMerge() 516 auto *MergedGV = new GlobalVariable( in doMerge() 518 GlobalVariable::NotThreadLocal, AddrSpace); in doMerge() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/IR/ |
D | Globals.cpp | 233 if (const GlobalVariable *GV = dyn_cast<GlobalVariable>(this)) in isDeclaration() 325 if (auto *Var = dyn_cast<GlobalVariable>(this)) in canBeOmittedFromSymbolTable() 336 GlobalVariable::GlobalVariable(Type *Ty, bool constant, LinkageTypes Link, in GlobalVariable() function in GlobalVariable 341 OperandTraits<GlobalVariable>::op_begin(this), in GlobalVariable() 355 GlobalVariable::GlobalVariable(Module &M, Type *Ty, bool constant, in GlobalVariable() function in GlobalVariable 357 const Twine &Name, GlobalVariable *Before, in GlobalVariable() 361 OperandTraits<GlobalVariable>::op_begin(this), in GlobalVariable() 380 void GlobalVariable::removeFromParent() { in removeFromParent() 384 void GlobalVariable::eraseFromParent() { in eraseFromParent() 388 void GlobalVariable::setInitializer(Constant *InitVal) { in setInitializer() [all …]
|
D | Module.cpp | 65 template class llvm::SymbolTableListTraits<GlobalVariable>; 149 Function *New = Function::Create(Ty, GlobalVariable::ExternalLinkage, in getOrInsertFunction() 189 GlobalVariable *Module::getGlobalVariable(StringRef Name, in getGlobalVariable() 191 if (GlobalVariable *Result = in getGlobalVariable() 192 dyn_cast_or_null<GlobalVariable>(getNamedValue(Name))) in getGlobalVariable() 206 function_ref<GlobalVariable *()> CreateGlobalCallback) { in getOrInsertGlobal() 208 GlobalVariable *GV = dyn_cast_or_null<GlobalVariable>(getNamedValue(Name)); in getOrInsertGlobal() 227 return new GlobalVariable(*this, Ty, false, GlobalVariable::ExternalLinkage, in getOrInsertGlobal() 459 for (GlobalVariable &GV : globals()) in dropAllReferences() 614 GlobalVariable *llvm::collectUsedGlobalVariables( in collectUsedGlobalVariables() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/ |
D | CtorUtils.cpp | 27 static void removeGlobalCtors(GlobalVariable *GCL, const BitVector &CtorsToRemove) { in removeGlobalCtors() 47 GlobalVariable *NGV = in removeGlobalCtors() 48 new GlobalVariable(CA->getType(), GCL->isConstant(), GCL->getLinkage(), in removeGlobalCtors() 65 static std::vector<Function *> parseGlobalCtors(GlobalVariable *GV) { in parseGlobalCtors() 80 static GlobalVariable *findGlobalCtors(Module &M) { in findGlobalCtors() 81 GlobalVariable *GV = M.getGlobalVariable("llvm.global_ctors"); in findGlobalCtors() 118 GlobalVariable *GlobalCtors = findGlobalCtors(M); in optimizeGlobalCtorsList()
|
D | Evaluator.cpp | 137 if (GlobalVariable *GV = dyn_cast<GlobalVariable>(C)) in isSimpleEnoughPointerToCommit() 144 isa<GlobalVariable>(CE->getOperand(0)) && in isSimpleEnoughPointerToCommit() 146 GlobalVariable *GV = cast<GlobalVariable>(CE->getOperand(0)); in isSimpleEnoughPointerToCommit() 167 isa<GlobalVariable>(CE->getOperand(0))) { in isSimpleEnoughPointerToCommit() 170 return cast<GlobalVariable>(CE->getOperand(0))->hasUniqueInitializer(); in isSimpleEnoughPointerToCommit() 206 auto *GV = dyn_cast<GlobalVariable>(C); in getInitializer() 225 if (GlobalVariable *GV = dyn_cast<GlobalVariable>(P)) { in ComputeLoadResult() 472 AllocaTmps.push_back(std::make_unique<GlobalVariable>( in EvaluateBlock() 529 if (GlobalVariable *GV = dyn_cast<GlobalVariable>(Ptr)) { in EvaluateBlock()
|
D | CloneModule.cpp | 63 GlobalVariable *GV = new GlobalVariable(*New, in CloneModule() 67 (GlobalVariable*) nullptr, in CloneModule() 97 GV = new GlobalVariable( in CloneModule() 123 GlobalVariable *GV = cast<GlobalVariable>(VMap[&*I]); in CloneModule()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/NVPTX/ |
D | NVPTXGenericToNVVM.cpp | 55 typedef ValueMap<GlobalVariable *, GlobalVariable *> GVMapTy; 79 GlobalVariable *GV = &*I++; in runOnModule() 83 GlobalVariable *NewGV = new GlobalVariable( in runOnModule() 133 GlobalVariable *GV = I->first; in runOnModule() 134 GlobalVariable *NewGV = I->second; in runOnModule() 166 if (isa<GlobalVariable>(C)) { in remapConstant() 172 GVMapTy::iterator I = GVMap.find(cast<GlobalVariable>(C)); in remapConstant() 174 GlobalVariable *GV = I->second; in remapConstant()
|
/third_party/skia/third_party/externals/tint/src/sem/ |
D | variable.cc | 23 TINT_INSTANTIATE_TYPEINFO(tint::sem::GlobalVariable); 55 GlobalVariable::GlobalVariable(const ast::Variable* declaration, in GlobalVariable() function in tint::sem::GlobalVariable 64 GlobalVariable::~GlobalVariable() = default;
|
D | function.h | 85 const utils::UniqueVector<const GlobalVariable*>& DirectlyReferencedGlobals() in DirectlyReferencedGlobals() 93 void AddDirectlyReferencedGlobal(const sem::GlobalVariable* global) { in AddDirectlyReferencedGlobal() 99 const utils::UniqueVector<const GlobalVariable*>& 107 void AddTransitivelyReferencedGlobal(const sem::GlobalVariable* global) { in AddTransitivelyReferencedGlobal() 258 utils::UniqueVector<const GlobalVariable*> directly_referenced_globals_; 259 utils::UniqueVector<const GlobalVariable*> transitively_referenced_globals_;
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/XCore/ |
D | XCoreLowerThreadLocal.cpp | 49 bool lowerGlobal(GlobalVariable *GV); 161 static bool rewriteNonInstructionUses(GlobalVariable *GV, Pass *P) { in rewriteNonInstructionUses() 180 bool XCoreLowerThreadLocal::lowerGlobal(GlobalVariable *GV) { in lowerGlobal() 196 GlobalVariable *NewGV = in lowerGlobal() 197 new GlobalVariable(*M, NewType, GV->isConstant(), GV->getLinkage(), in lowerGlobal() 199 GlobalVariable::NotThreadLocal, in lowerGlobal() 226 SmallVector<GlobalVariable *, 16> ThreadLocalGlobals; in runOnModule() 227 for (GlobalVariable &GV : M.globals()) in runOnModule()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Instrumentation/ |
D | AddressSanitizer.cpp | 653 bool GlobalIsLinkerInitialized(GlobalVariable *G); 772 ArrayRef<GlobalVariable *> ExtendedGlobals, 775 ArrayRef<GlobalVariable *> ExtendedGlobals, 779 ArrayRef<GlobalVariable *> ExtendedGlobals, 783 ArrayRef<GlobalVariable *> ExtendedGlobals, 786 GlobalVariable *CreateMetadataGlobal(Module &M, Constant *Initializer, 788 void SetComdatForGlobalMetadata(GlobalVariable *G, GlobalVariable *Metadata, 792 bool ShouldInstrumentGlobal(GlobalVariable *G); 1138 auto *GV = dyn_cast<GlobalVariable>(StrippedV); in GlobalsMetadata() 1251 static GlobalVariable *createPrivateGlobalForSourceLoc(Module &M, in createPrivateGlobalForSourceLoc() [all …]
|
D | InstrOrderFile.cpp | 59 GlobalVariable *OrderFileBuffer; 60 GlobalVariable *BufferIdx; 61 GlobalVariable *BitMap; 83 OrderFileBuffer = new GlobalVariable(M, BufferTy, false, GlobalValue::LinkOnceODRLinkage, in createOrderFileData() 90 BufferIdx = new GlobalVariable(M, IdxTy, false, GlobalValue::LinkOnceODRLinkage, in createOrderFileData() 94 BitMap = new GlobalVariable(M, MapTy, false, GlobalValue::PrivateLinkage, in createOrderFileData()
|
D | InstrProfiling.cpp | 509 GlobalVariable *CoverageNamesVar = in run() 585 GlobalVariable *Name = Ind->getName(); in computeNumValueSiteCounts() 598 GlobalVariable *Name = Ind->getName(); in lowerValueProfileInst() 603 GlobalVariable *DataVar = It->second.DataVar; in lowerValueProfileInst() 637 GlobalVariable *Counters = getOrCreateRegionCounters(Inc); in lowerIncrement() 658 void InstrProfiling::lowerCoverageData(GlobalVariable *CoverageNamesVar) { in lowerCoverageData() 664 assert(isa<GlobalVariable>(V) && "Missing reference to function name"); in lowerCoverageData() 665 GlobalVariable *Name = cast<GlobalVariable>(V); in lowerCoverageData() 733 GlobalVariable * 735 GlobalVariable *NamePtr = Inc->getName(); in getOrCreateRegionCounters() [all …]
|
D | SanitizerCoverage.cpp | 207 GlobalVariable *CreateFunctionLocalArrayInSection(size_t NumElements, 210 GlobalVariable *CreatePCArray(Function &F, ArrayRef<BasicBlock *> AllBlocks); 235 GlobalVariable *SanCovLowestStack; 245 GlobalVariable *FunctionGuardArray; // for trace-pc-guard. 246 GlobalVariable *Function8bitCounterArray; // for inline-8bit-counters. 247 GlobalVariable *FunctionPCsArray; // for pc-table. 306 GlobalVariable *SecStart = in CreateSecStartEnd() 307 new GlobalVariable(M, Ty, false, GlobalVariable::ExternalLinkage, nullptr, in CreateSecStartEnd() 310 GlobalVariable *SecEnd = in CreateSecStartEnd() 311 new GlobalVariable(M, Ty, false, GlobalVariable::ExternalLinkage, in CreateSecStartEnd() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ |
D | TargetMachine.cpp | 79 case GlobalVariable::NotThreadLocal: in getSelectedTLSModel() 82 case GlobalVariable::GeneralDynamicTLSModel: in getSelectedTLSModel() 84 case GlobalVariable::LocalDynamicTLSModel: in getSelectedTLSModel() 86 case GlobalVariable::InitialExecTLSModel: in getSelectedTLSModel() 88 case GlobalVariable::LocalExecTLSModel: in getSelectedTLSModel() 132 GV->isDeclarationForLinker() && isa<GlobalVariable>(GV)) in shouldAssumeDSOLocal()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Linker/ |
D | LinkModules.cpp | 65 const GlobalVariable *&GVar); 131 const GlobalVariable *&GVar) { in getComdatLeader() 141 GVar = dyn_cast_or_null<GlobalVariable>(GVal); in getComdatLeader() 186 const GlobalVariable *DstGV; in computeResultingSelectionKind() 187 const GlobalVariable *SrcGV; in computeResultingSelectionKind() 345 auto *DGVar = dyn_cast<GlobalVariable>(DGV); in linkIfNeeded() 346 auto *SGVar = dyn_cast<GlobalVariable>(&GV); in linkIfNeeded() 436 } else if (auto *Var = dyn_cast<GlobalVariable>(&GV)) { in dropReplacedComdat() 447 new GlobalVariable(M, Ty.getElementType(), /*isConstant*/ false, in dropReplacedComdat() 492 GlobalVariable &GV = *I++; in run() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/Orc/ |
D | IndirectionUtils.cpp | 231 GlobalVariable* createImplPointer(PointerType &PT, Module &M, in createImplPointer() 233 auto IP = new GlobalVariable(M, &PT, false, GlobalValue::ExternalLinkage, in createImplPointer() 326 GlobalVariable* cloneGlobalVariableDecl(Module &Dst, const GlobalVariable &GV, in cloneGlobalVariableDecl() 328 GlobalVariable *NewGV = new GlobalVariable( in cloneGlobalVariableDecl() 338 void moveGlobalVariableInitializer(GlobalVariable &OrigGV, in moveGlobalVariableInitializer() 341 GlobalVariable *NewGV) { in moveGlobalVariableInitializer() 344 NewGV = cast<GlobalVariable>(VMap[&OrigGV]); in moveGlobalVariableInitializer()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Transforms/Scalar/ |
D | ConstantHoisting.h | 58 class GlobalVariable; variable 159 using GVCandVecMapType = MapVector<GlobalVariable *, ConstCandVecType>; 165 using GVInfoVecMapType = MapVector<GlobalVariable *, ConstInfoVecType>; 194 void findBaseConstants(GlobalVariable *BaseGV); 199 bool emitBaseConstants(GlobalVariable *BaseGV);
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/WebAssembly/ |
D | WebAssemblyLowerGlobalDtors.cpp | 63 GlobalVariable *GV = M.getGlobalVariable("llvm.global_dtors"); in runOnModule() 122 GlobalVariable *Handle = new GlobalVariable( in runOnModule() 124 GlobalVariable::ExternalWeakLinkage, nullptr, "__dso_handle"); in runOnModule() 125 Handle->setVisibility(GlobalVariable::HiddenVisibility); in runOnModule()
|