/freebsd-src/contrib/llvm-project/llvm/include/llvm/Frontend/OpenMP/ |
H A D | OMPGridValues.h | 57 struct GV { struct 59 unsigned GV_Slot_Size; argument 61 unsigned GV_Warp_Size; argument 64 return GV_Warp_Size * GV_Slot_Size; in warpSlotSize() argument 68 unsigned GV_Max_Teams; argument 70 unsigned GV_Default_Num_Teams; argument 75 unsigned GV_SimpleBufferSize; argument 77 unsigned GV_Max_WG_Size; argument 79 unsigned GV_Default_WG_Size; argument 87 static constexpr GV AMDGPUGridValues64 = { argument
|
/freebsd-src/contrib/llvm-project/llvm/lib/ExecutionEngine/ |
H A D | ExecutionEngine.cpp | 98 GVMemoryBlock(const GlobalVariable *GV) in GVMemoryBlock() argument 104 static char *Create(const GlobalVariable *GV, const DataLayout& TD) { in Create() argument 123 char *ExecutionEngine::getMemoryForGV(const GlobalVariable *GV) { in getMemoryForGV() argument 164 GlobalVariable *GV = M->getGlobalVariable(Name, AllowInternal); in FindGlobalVariableNamed() local 188 getMangledName(const GlobalValue * GV) getMangledName() argument 203 addGlobalMapping(const GlobalValue * GV,void * Addr) addGlobalMapping() argument 241 updateGlobalMapping(const GlobalValue * GV,void * Addr) updateGlobalMapping() argument 292 getPointerToGlobalIfAvailable(const GlobalValue * GV) getPointerToGlobalIfAvailable() argument 318 if (GlobalValue *GV = Modules[i]->getNamedValue(Name)) getGlobalValueAtAddress() local 370 GlobalVariable *GV = module.getNamedGlobal(Name); runStaticConstructorsDestructors() local 565 getPointerToGlobal(const GlobalValue * GV) getPointerToGlobal() argument 663 GenericValue GV = getConstantValue(Op0); getConstantValue() local 669 GenericValue GV = getConstantValue(Op0); getConstantValue() local 675 GenericValue GV = getConstantValue(Op0); getConstantValue() local 682 GenericValue GV = getConstantValue(Op0); getConstantValue() local 688 GenericValue GV = getConstantValue(Op0); getConstantValue() local 693 GenericValue GV = getConstantValue(Op0); getConstantValue() local 708 GenericValue GV = getConstantValue(Op0); getConstantValue() local 724 GenericValue GV = getConstantValue(Op0); getConstantValue() local 742 GenericValue GV = getConstantValue(Op0); getConstantValue() local 751 GenericValue GV = getConstantValue(Op0); getConstantValue() local 759 GenericValue GV = getConstantValue(Op0); getConstantValue() local 799 GenericValue GV; getConstantValue() local 924 else if (const GlobalVariable *GV = dyn_cast<GlobalVariable>(C)) getConstantValue() local 1224 for (const auto &GV : M.globals()) { emitGlobals() local 1254 for (const auto &GV : M.globals()) { emitGlobals() local 1285 for (const GlobalValue *GV : NonCanonicalGlobals) { emitGlobals() local 1296 for (const auto &GV : M.globals()) { emitGlobals() local 1313 emitGlobalVariable(const GlobalVariable * GV) emitGlobalVariable() argument [all...] |
/freebsd-src/contrib/llvm-project/llvm/lib/Target/AArch64/ |
H A D | AArch64TargetObjectFile.cpp | 64 GV, Encoding, TM, MMI, Streamer); in getCFIPersonalitySymbol() argument 70 return TM.getSymbol(GV); in getIndirectSymViaGOTPCRel() argument 29 getIndirectSymViaGOTPCRel(const GlobalValue * GV,const MCSymbol * Sym,const MCValue & MV,int64_t Offset,MachineModuleInfo * MMI,MCStreamer & Streamer) const getIndirectSymViaGOTPCRel() argument 43 getTTypeGlobalReference(const GlobalValue * GV,unsigned Encoding,const TargetMachine & TM,MachineModuleInfo * MMI,MCStreamer & Streamer) const getTTypeGlobalReference() argument 85 getNameWithPrefix(SmallVectorImpl<char> & OutName,const GlobalValue * GV,const TargetMachine & TM) const getNameWithPrefix() argument
|
/freebsd-src/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | SplitModule.cpp | 61 addNonConstUser(ClusterMapType & GVtoClusterMap,const GlobalValue * GV,const User * U) addNonConstUser() argument 76 addAllGlobalValueUsers(ClusterMapType & GVtoClusterMap,const GlobalValue * GV,const Value * V) addAllGlobalValueUsers() argument 92 getGVPartitioningRoot(const GlobalValue * GV) getGVPartitioningRoot() argument 112 __anon2e3b00d20202(GlobalValue &GV) findPartitions() argument 218 externalize(GlobalValue * GV) externalize() argument 231 isInPartition(const GlobalValue * GV,unsigned I,unsigned N) isInPartition() argument 277 __anon2e3b00d20502(const GlobalValue *GV) SplitModule() argument [all...] |
H A D | CloneModule.cpp | 48 return CloneModule(M, VMap, [](const GlobalValue *GV) { return true; }); in CloneModule() argument 95 GlobalValue *GV; in CloneModule() local 132 GlobalVariable *GV = cast<GlobalVariable>(VMap[&G]); in CloneModule() local [all...] |
/freebsd-src/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
H A D | Internalize.cpp | 66 bool operator()(const GlobalValue &GV) { in operator ()() 103 bool InternalizePass::shouldPreserveGV(const GlobalValue &GV) { in shouldPreserveGV() 134 GlobalValue &GV, DenseMap<const Comdat *, ComdatInfo> &ComdatMap) { in maybeInternalize() 174 GlobalValue &GV, DenseMap<const Comdat *, ComdatInfo> &ComdatMap) { in checkComdat() 249 for (auto &GV : M.globals()) { in internalizeModule() local
|
H A D | GlobalOpt.cpp | 267 /// We just marked GV constant. Loop over all users of the global, cleaning up in CleanupConstantGlobalUsers() argument 108 isLeakCheckerRoot(GlobalVariable * GV) isLeakCheckerRoot() argument 189 CleanupPointerRootUsers(GlobalVariable * GV,function_ref<TargetLibraryInfo & (Function &)> GetTLI) CleanupPointerRootUsers() argument 340 collectSRATypes(DenseMap<uint64_t,GlobalPart> & Parts,GlobalVariable * GV,const DataLayout & DL) collectSRATypes() argument 428 transferSRADebugInfo(GlobalVariable * GV,GlobalVariable * NGV,uint64_t FragmentOffsetInBits,uint64_t FragmentSizeInBits,uint64_t VarSize) transferSRADebugInfo() argument 508 SRAGlobal(GlobalVariable * GV,const DataLayout & DL) SRAGlobal() argument 696 allUsesOfLoadedValueWillTrapIfNull(const GlobalVariable * GV) allUsesOfLoadedValueWillTrapIfNull() argument 726 allUsesOfLoadAndStores(GlobalVariable * GV,SmallVector<Value *,4> & Uses) allUsesOfLoadAndStores() argument 816 OptimizeAwayTrappingUsesOfLoads(GlobalVariable * GV,Constant * LV,const DataLayout & DL,function_ref<TargetLibraryInfo & (Function &)> GetTLI) OptimizeAwayTrappingUsesOfLoads() argument 902 OptimizeGlobalAddressOfAllocation(GlobalVariable * GV,CallInst * CI,uint64_t AllocSize,Constant * InitVal,const DataLayout & DL,TargetLibraryInfo * TLI) OptimizeGlobalAddressOfAllocation() argument 1020 valueIsOnlyUsedLocallyOrStoredToOneGlobal(const CallInst * CI,const GlobalVariable * GV) valueIsOnlyUsedLocallyOrStoredToOneGlobal() argument 1063 tryToOptimizeStoreOfAllocationToGlobal(GlobalVariable * GV,CallInst * CI,const DataLayout & DL,TargetLibraryInfo * TLI) tryToOptimizeStoreOfAllocationToGlobal() argument 1110 optimizeOnceStoredGlobal(GlobalVariable * GV,Value * StoredOnceVal,const DataLayout & DL,function_ref<TargetLibraryInfo & (Function &)> GetTLI) optimizeOnceStoredGlobal() argument 1146 TryToShrinkGlobalToBoolean(GlobalVariable * GV,Constant * OtherVal) TryToShrinkGlobalToBoolean() argument 1235 for(auto *GV : GVs) TryToShrinkGlobalToBoolean() local 1304 deleteIfDead(GlobalValue & GV,SmallPtrSetImpl<const Comdat * > & NotDiscardableComdats,function_ref<void (Function &)> DeleteFnCallback=nullptr) deleteIfDead() argument 1335 isPointerValueDeadOnEntryToFunction(const Function * F,GlobalValue * GV,function_ref<DominatorTree & (Function &)> LookupDomTree) isPointerValueDeadOnEntryToFunction() argument 1404 forwardStoredOnceStore(GlobalVariable * GV,const StoreInst * StoredOnceStore,function_ref<DominatorTree & (Function &)> LookupDomTree) forwardStoredOnceStore() argument 1439 processInternalGlobal(GlobalVariable * GV,const GlobalStatus & GS,function_ref<TargetTransformInfo & (Function &)> GetTTI,function_ref<TargetLibraryInfo & (Function &)> GetTLI,function_ref<DominatorTree & (Function &)> LookupDomTree) processInternalGlobal() argument 1612 processGlobal(GlobalValue & GV,function_ref<TargetTransformInfo & (Function &)> GetTTI,function_ref<TargetLibraryInfo & (Function &)> GetTLI,function_ref<DominatorTree & (Function &)> LookupDomTree) processGlobal() argument 2172 usedErase(GlobalValue * GV) usedErase() argument 2173 compilerUsedErase(GlobalValue * GV) compilerUsedErase() argument 2174 usedInsert(GlobalValue * GV) usedInsert() argument 2176 compilerUsedInsert(GlobalValue * GV) compilerUsedInsert() argument 2206 mayHaveOtherReferences(GlobalValue & GV,const LLVMUsed & U) mayHaveOtherReferences() argument 2254 __anon5e9f3b3b0802(GlobalValue &GV) OptimizeGlobalAliases() argument 2427 for (const GlobalVariable &GV : M.globals()) optimizeGlobalsInModule() local [all...] |
H A D | ConstantMerge.cpp | 51 GlobalValue *GV = cast<GlobalValue>(Operand); FindUsedValues() local 68 hasMetadataOtherThanDebugLoc(const GlobalVariable * GV) hasMetadataOtherThanDebugLoc() argument 85 getAlign(GlobalVariable * GV) getAlign() argument 91 isUnmergeableGlobal(GlobalVariable * GV,const SmallPtrSetImpl<const GlobalValue * > & UsedGlobals) isUnmergeableGlobal() argument [all...] |
/freebsd-src/contrib/llvm-project/llvm/lib/Target/X86/ |
H A D | X86TargetObjectFile.cpp | 19 const GlobalValue *GV, unsigned Encoding, const TargetMachine &TM, in getTTypeGlobalReference() 37 const GlobalValue *GV, const TargetMachine &TM, in getCFIPersonalitySymbol() 43 const GlobalValue *GV, const MCSymbol *Sym, const MCValue &MV, in getIndirectSymViaGOTPCRel() 61 const GlobalValue *GV, const MCSymbol *Sym, const MCValue &MV, in getIndirectSymViaGOTPCRel()
|
/freebsd-src/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | TLSVariableHoist.cpp | 116 auto *GV = dyn_cast<GlobalVariable>(Inst->getOperand(Idx)); in collectTLSCandidate() local 130 M->globals(), [](GlobalVariable &GV) { return GV.isThreadLocal(); }); in collectTLSCandidates() 193 GlobalVariable *GV, in findInsertPos() 219 GlobalVariable *GV) { in genBitCastInst() 229 GlobalVariable *GV) { in tryReplaceTLSCandidate() 253 GlobalVariable *GV = GV2Cand.first; in tryReplaceTLSCandidates() local
|
/freebsd-src/contrib/llvm-project/llvm/lib/Target/NVPTX/ |
H A D | NVPTXCtorDtorLowering.cpp | 51 addKernelMetadata(Module & M,GlobalValue * GV) addKernelMetadata() argument 139 auto *GV = new GlobalVariable( createInitOrFiniCalls() local 152 auto *GV = new GlobalVariable( createInitOrFiniCalls() local 206 createInitOrFiniGlobals(Module & M,GlobalVariable * GV,bool IsCtor) createInitOrFiniGlobals() argument 231 auto *GV = new GlobalVariable(M, F->getType(), /*IsConstant=*/true, createInitOrFiniGlobals() local 247 GlobalVariable *GV = M.getGlobalVariable(GlobalName); createInitOrFiniKernel() local [all...] |
/freebsd-src/contrib/llvm-project/llvm/lib/LTO/ |
H A D | LTOCodeGenerator.cpp | 450 Used.push_back(&GV); in preserveDiscardableGVs() argument 463 for (auto &GV : TheModule) preserveDiscardableGVs() local 465 for (auto &GV : TheModule.globals()) preserveDiscardableGVs() local 467 for (auto &GV : TheModule.aliases()) preserveDiscardableGVs() local 484 __anoncd54f5310402(const GlobalValue &GV) applyScopeRestrictions() argument 508 __anoncd54f5310502(const GlobalValue &GV) applyScopeRestrictions() argument 515 for (auto &GV : MergedModule->globals()) applyScopeRestrictions() local 517 for (auto &GV : MergedModule->aliases()) applyScopeRestrictions() local 541 __anoncd54f5310602(GlobalValue &GV) restoreLinkageForExternals() argument [all...] |
/freebsd-src/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | SanitizerMetadata.cpp | 37 void SanitizerMetadata::reportGlobal(llvm::GlobalVariable *GV, in reportGlobal() 78 void SanitizerMetadata::reportGlobal(llvm::GlobalVariable *GV, const VarDecl &D, in reportGlobal() 101 void SanitizerMetadata::disableSanitizerForGlobal(llvm::GlobalVariable *GV) { in disableSanitizerForGlobal()
|
H A D | CGHLSLRuntime.cpp | 82 GlobalVariable *GV = Const.first; layoutBuffer() local 127 auto *GV = cast<GlobalVariable>(CGM.GetAddrOfGlobalVar(D)); addConstant() local 177 GlobalVariable *GV = replaceBuffer(Buf); finishCodeGen() local 194 addBufferResourceAnnotation(llvm::GlobalVariable * GV,llvm::hlsl::ResourceClass RC,llvm::hlsl::ResourceKind RK,bool IsROV,llvm::hlsl::ElementType ET,BufferResBinding & Binding) addBufferResourceAnnotation() argument 273 annotateHLSLResource(const VarDecl * D,GlobalVariable * GV) annotateHLSLResource() argument 397 const auto *GV = gatherFunctions() local 449 if (auto *GV = M.getNamedGlobal("llvm.global_ctors")) generateGlobalCtorDtorCalls() local 451 if (auto *GV = M.getNamedGlobal("llvm.global_dtors")) generateGlobalCtorDtorCalls() local [all...] |
H A D | ConstantInitBuilder.cpp | 38 void ConstantInitFuture::installInGlobal(llvm::GlobalVariable *GV) { in installInGlobal() argument 73 auto GV = new llvm::GlobalVariable(CGM.getModule(), in createGlobal() local 87 void ConstantInitBuilderBase::setGlobalInitializer(llvm::GlobalVariable *GV, in setGlobalInitializer() argument 95 resolveSelfReferences(llvm::GlobalVariable * GV) resolveSelfReferences() argument [all...] |
/freebsd-src/contrib/llvm-project/llvm/lib/ExecutionEngine/Interpreter/ |
H A D | ExternalFunctions.cpp | 328 GenericValue GV; in lle_X_atexit() local 363 GenericValue GV; in lle_X_sprintf() local 446 GenericValue GV = lle_X_sprintf(FT, NewArgs); in lle_X_printf() local 460 GenericValue GV; in lle_X_sscanf() local 474 GenericValue GV; in lle_X_scanf() local 489 GenericValue GV = lle_X_sprintf(FT, NewArgs); in lle_X_fprintf() local 502 GenericValue GV; in lle_X_memset() local 514 GenericValue GV; in lle_X_memcpy() local
|
/freebsd-src/contrib/llvm-project/llvm/lib/Target/AMDGPU/Utils/ |
H A D | AMDGPUMemoryUtils.cpp | 29 getAlign(DataLayout const & DL,const GlobalVariable * GV) getAlign() argument 34 isDynamicLDS(const GlobalVariable & GV) isDynamicLDS() argument 47 isLDSVariableToLower(const GlobalVariable & GV) isLDSVariableToLower() argument [all...] |
/freebsd-src/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | GlobalsModRef.cpp | 180 void addModRefInfoForGlobal(const GlobalValue &GV, ModRefInfo NewMRI) { in addModRefInfoForGlobal() argument 192 void eraseModRefInfoForGlobal(const GlobalValue &GV) { in eraseModRefInfoForGlobal() argument 211 if (GlobalValue *GV = dyn_cast<GlobalValue>(V)) { in deleted() local 405 AnalyzeIndirectGlobalMemory(GlobalVariable * GV) AnalyzeIndirectGlobalMemory() argument 625 isNonEscapingGlobalNoAliasWithLoad(const GlobalValue * GV,const Value * V,int & Depth,const DataLayout & DL) isNonEscapingGlobalNoAliasWithLoad() argument 707 isNonEscapingGlobalNoAlias(const GlobalValue * GV,const Value * V) isNonEscapingGlobalNoAlias() argument 849 const GlobalValue *GV = GV1 ? GV1 : GV2; alias() local 864 if (GlobalVariable *GV = dyn_cast<GlobalVariable>(LI->getOperand(0))) alias() local 868 if (const GlobalVariable *GV = dyn_cast<GlobalVariable>(LI->getOperand(0))) alias() local 896 getModRefInfoForArgument(const CallBase * Call,const GlobalValue * GV,AAQueryInfo & AAQI) getModRefInfoForArgument() argument 934 if (const GlobalValue *GV = getModRefInfo() local [all...] |
/freebsd-src/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/ |
H A D | CompileOnDemandLayer.cpp | 24 auto DeleteExtractedDefs = [](GlobalValue &GV) { in extractSubModule() 240 for (const auto *GV : Partition) in expandPartition() local 255 for (const auto *GV : GVsToAdd) in expandPartition() local 273 for (auto &GV : getStaticInitGVs(M)) in emitPartition() local 345 for (const auto *GV : HashGVs) { in emitPartition() local 359 auto ShouldExtract = [&](const GlobalValue &GV) -> bool { in emitPartition()
|
H A D | ThreadSafeModule.cpp | 32 auto Tmp = CloneModule(M, VMap, [&](const GlobalValue *GV) { in cloneToNewContext() 41 for (auto *GV : ClonedDefsInSrc) in cloneToNewContext() local
|
/freebsd-src/contrib/llvm-project/llvm/lib/IR/ |
H A D | Mangler.cpp | 119 getNameWithPrefix(raw_ostream & OS,const GlobalValue * GV,bool CannotUsePrivateLabel) const getNameWithPrefix() argument 187 getNameWithPrefix(SmallVectorImpl<char> & OutName,const GlobalValue * GV,bool CannotUsePrivateLabel) const getNameWithPrefix() argument 212 emitLinkerFlagsForGlobalCOFF(raw_ostream & OS,const GlobalValue * GV,const Triple & TT,Mangler & Mangler) emitLinkerFlagsForGlobalCOFF() argument 268 emitLinkerFlagsForUsedCOFF(raw_ostream & OS,const GlobalValue * GV,const Triple & T,Mangler & M) emitLinkerFlagsForUsedCOFF() argument [all...] |
/freebsd-src/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | AMDGPUMachineFunction.cpp | 95 allocateLDSGlobal(const DataLayout & DL,const GlobalVariable & GV,Align Trailing) allocateLDSGlobal() argument 183 getLDSAbsoluteAddress(const GlobalValue & GV) getLDSAbsoluteAddress() argument 202 setDynLDSAlign(const Function & F,const GlobalVariable & GV) setDynLDSAlign() argument [all...] |
H A D | AMDGPULowerModuleLDSPass.cpp | 323 for (auto &GV : M.globals()) eliminateConstantExprUsesOfLDSFromAllInstructions() local 343 for (auto &GV : M.globals()) { getUsesOfLDSByFunction() local 489 GlobalVariable *GV = Variables[i]; getAddressesOfVariablesInKernel() local 541 replaceUseWithTableLookup(Module & M,IRBuilder<> & Builder,GlobalVariable * LookupTable,GlobalVariable * GV,Use & U,Value * OptionalIndex) replaceUseWithTableLookup() argument 584 auto *GV = ModuleScopeVariables[Index]; replaceUsesInInstructionsWithTableLookup() local 626 GlobalVariable *GV = nullptr; chooseBestVariableForModuleStrategy() member 661 GlobalVariable *GV = K.first; chooseBestVariableForModuleStrategy() local 677 recordLDSAbsoluteAddress(Module * M,GlobalVariable * GV,uint32_t Address) recordLDSAbsoluteAddress() argument 781 GlobalVariable *GV = K.first; partitionVariablesIntoIndirectStrategies() local 1002 __anon12261f4c0802(GlobalVariable *GV) buildRepresentativeDynamicLDSInstance() argument 1190 for (auto &GV : KernelAccessVariables) { runOnModule() local 1313 for (auto &GV : make_early_inc_range(M.globals())) runOnModule() local 1334 for (auto &GV : M.globals()) { superAlignLDSGlobals() local 1453 GlobalVariable *GV = LocalVars[I]; createLDSVariableReplacement() local 1499 GlobalVariable *GV = LDSVarsToTransform[I]; replaceLDSVariablesWithStruct() local [all...] |
/freebsd-src/contrib/llvm-project/llvm/tools/bugpoint/ |
H A D | ExtractFunction.cpp | 50 Function *globalInitUsesExternalBA(GlobalVariable *GV) { in globalInitUsesExternalBA() 178 static void eliminateAliases(GlobalValue *GV) { in eliminateAliases() 206 void llvm::DeleteGlobalInitializer(GlobalVariable *GV) { in DeleteGlobalInitializer() 248 GlobalVariable *GV = M1->getNamedGlobal(GlobalName); in SplitStaticCtorDtor() local 339 GlobalVariable *GV = cast<GlobalVariable>(NewVMap[&I]); in SplitFunctionsOutOfModule() local
|
/freebsd-src/contrib/llvm-project/llvm/lib/Target/ |
H A D | TargetLoweringObjectFile.cpp | 81 static bool isSuitableForBSS(const GlobalVariable *GV) { in isSuitableForBSS() argument 128 const GlobalValue *GV, StringRef Suffix, const TargetMachine &TM) const { in getSymbolWithGlobalValueBase() argument 139 const GlobalValue *GV, const TargetMachine &TM, in getCFIPersonalitySymbol() argument 404 getTTypeGlobalReference(const GlobalValue * GV,unsigned Encoding,const TargetMachine & TM,MachineModuleInfo * MMI,MCStreamer & Streamer) const getTTypeGlobalReference() argument 439 getNameWithPrefix(SmallVectorImpl<char> & OutName,const GlobalValue * GV,const TargetMachine & TM) const getNameWithPrefix() argument [all...] |