Home
last modified time | relevance | path

Searched defs:GV (Results 1 – 25 of 381) sorted by relevance

12345678910>>...16

/llvm-project/llvm/include/llvm/Frontend/OpenMP/
H A DOMPGridValues.h57 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
/llvm-project/llvm/tools/llvm-reduce/deltas/
H A DReduceGlobalValues.cpp19 static bool shouldReduceDSOLocal(GlobalValue &GV) { in shouldReduceDSOLocal()
23 static bool shouldReduceVisibility(GlobalValue &GV) { in shouldReduceVisibility()
27 static bool shouldReduceUnnamedAddress(GlobalValue &GV) { in shouldReduceUnnamedAddress()
31 static bool shouldReduceDLLStorageClass(GlobalValue &GV) { in shouldReduceDLLStorageClass()
36 static bool shouldReduceThreadLocal(GlobalValue &GV) { in shouldReduceThreadLocal()
40 static bool shouldReduceLinkage(GlobalValue &GV) { in shouldReduceLinkage()
45 for (auto &GV : Program.getModule().global_values()) { in reduceGVs() local
H A DReduceGlobalVars.cpp21 static bool shouldAlwaysKeep(const GlobalVariable &GV) { in shouldAlwaysKeep()
31 for (auto &GV : Program.globals()) { in extractGVsFromModule() local
43 for (auto &GV : Program.globals()) { in extractGVsFromModule() local
51 for (auto *GV : ToRemove) { in extractGVsFromModule() local
/llvm-project/llvm/lib/ExecutionEngine/
H A DExecutionEngine.cpp98 : CallbackVH(const_cast<GlobalVariable*>(GV)) {} in GVMemoryBlock() argument
104 Type *ElTy = GV->getValueType(); in Create() argument
123 return GVMemoryBlock::Create(GV, getDataLayout()); in getMemoryForGV() argument
164 if (GV 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...]
/llvm-project/llvm/lib/Transforms/IPO/
H A DInternalize.cpp66 bool operator()(const GlobalValue &GV) { in operator ()() argument
103 bool InternalizePass::shouldPreserveGV(const GlobalValue &GV) { in shouldPreserveGV() argument
134 maybeInternalize(GlobalValue & GV,DenseMap<const Comdat *,ComdatInfo> & ComdatMap) maybeInternalize() argument
174 checkComdat(GlobalValue & GV,DenseMap<const Comdat *,ComdatInfo> & ComdatMap) checkComdat() argument
249 for (auto &GV : M.globals()) { internalizeModule() local
[all...]
H A DConstantMerge.cpp52 GlobalValue *GV = cast<GlobalValue>(Operand); in FindUsedValues() local
69 static bool hasMetadataOtherThanDebugLoc(const GlobalVariable *GV) { in hasMetadataOtherThanDebugLoc()
86 static Align getAlign(GlobalVariable *GV) { in getAlign()
92 isUnmergeableGlobal(GlobalVariable *GV, in isUnmergeableGlobal()
H A DGlobalOpt.cpp111 isLeakCheckerRoot(GlobalVariable * GV) isLeakCheckerRoot() argument
192 CleanupPointerRootUsers(GlobalVariable * GV,function_ref<TargetLibraryInfo & (Function &)> GetTLI) CleanupPointerRootUsers() argument
270 CleanupConstantGlobalUsers(GlobalVariable * GV,const DataLayout & DL) CleanupConstantGlobalUsers() argument
350 collectSRATypes(DenseMap<uint64_t,GlobalPart> & Parts,GlobalVariable * GV,const DataLayout & DL) collectSRATypes() argument
438 transferSRADebugInfo(GlobalVariable * GV,GlobalVariable * NGV,uint64_t FragmentOffsetInBits,uint64_t FragmentSizeInBits,uint64_t VarSize) transferSRADebugInfo() argument
518 SRAGlobal(GlobalVariable * GV,const DataLayout & DL) SRAGlobal() argument
706 allUsesOfLoadedValueWillTrapIfNull(const GlobalVariable * GV) allUsesOfLoadedValueWillTrapIfNull() argument
736 allUsesOfLoadAndStores(GlobalVariable * GV,SmallVector<Value *,4> & Uses) allUsesOfLoadAndStores() argument
826 OptimizeAwayTrappingUsesOfLoads(GlobalVariable * GV,Constant * LV,const DataLayout & DL,function_ref<TargetLibraryInfo & (Function &)> GetTLI) OptimizeAwayTrappingUsesOfLoads() argument
912 OptimizeGlobalAddressOfAllocation(GlobalVariable * GV,CallInst * CI,uint64_t AllocSize,Constant * InitVal,const DataLayout & DL,TargetLibraryInfo * TLI) OptimizeGlobalAddressOfAllocation() argument
1031 valueIsOnlyUsedLocallyOrStoredToOneGlobal(const CallInst * CI,const GlobalVariable * GV) valueIsOnlyUsedLocallyOrStoredToOneGlobal() argument
1074 tryToOptimizeStoreOfAllocationToGlobal(GlobalVariable * GV,CallInst * CI,const DataLayout & DL,TargetLibraryInfo * TLI) tryToOptimizeStoreOfAllocationToGlobal() argument
1121 optimizeOnceStoredGlobal(GlobalVariable * GV,Value * StoredOnceVal,const DataLayout & DL,function_ref<TargetLibraryInfo & (Function &)> GetTLI) optimizeOnceStoredGlobal() argument
1157 TryToShrinkGlobalToBoolean(GlobalVariable * GV,Constant * OtherVal) TryToShrinkGlobalToBoolean() argument
1246 for(auto *GV : GVs) TryToShrinkGlobalToBoolean() local
1316 deleteIfDead(GlobalValue & GV,SmallPtrSetImpl<const Comdat * > & NotDiscardableComdats,function_ref<void (Function &)> DeleteFnCallback=nullptr) deleteIfDead() argument
1347 isPointerValueDeadOnEntryToFunction(const Function * F,GlobalValue * GV,function_ref<DominatorTree & (Function &)> LookupDomTree) isPointerValueDeadOnEntryToFunction() argument
1416 forwardStoredOnceStore(GlobalVariable * GV,const StoreInst * StoredOnceStore,function_ref<DominatorTree & (Function &)> LookupDomTree) forwardStoredOnceStore() argument
1451 processInternalGlobal(GlobalVariable * GV,const GlobalStatus & GS,function_ref<TargetTransformInfo & (Function &)> GetTTI,function_ref<TargetLibraryInfo & (Function &)> GetTLI,function_ref<DominatorTree & (Function &)> LookupDomTree) processInternalGlobal() argument
1624 processGlobal(GlobalValue & GV,function_ref<TargetTransformInfo & (Function &)> GetTTI,function_ref<TargetLibraryInfo & (Function &)> GetTLI,function_ref<DominatorTree & (Function &)> LookupDomTree) processGlobal() argument
2184 usedErase(GlobalValue * GV) usedErase() argument
2185 compilerUsedErase(GlobalValue * GV) compilerUsedErase() argument
2186 usedInsert(GlobalValue * GV) usedInsert() argument
2188 compilerUsedInsert(GlobalValue * GV) compilerUsedInsert() argument
2218 mayHaveOtherReferences(GlobalValue & GV,const LLVMUsed & U) mayHaveOtherReferences() argument
2266 __anon1705889c0802(GlobalValue &GV) OptimizeGlobalAliases() argument
2500 for (const GlobalVariable &GV : M.globals()) optimizeGlobalsInModule() local
[all...]
/llvm-project/llvm/lib/Target/X86/
H A DX86TargetObjectFile.cpp19 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()
/llvm-project/llvm/lib/Transforms/Utils/
H A DSplitModule.cpp104 const GlobalObject *GO = GV->getAliaseeObject(); in getGVPartitioningRoot() argument
73 addNonConstUser(ClusterMapType & GVtoClusterMap,const GlobalValue * GV,const User * U) addNonConstUser() argument
88 addAllGlobalValueUsers(ClusterMapType & GVtoClusterMap,const GlobalValue * GV,const Value * V) addAllGlobalValueUsers() argument
125 __anon21db16b30202(GlobalValue &GV) findPartitions() argument
222 externalize(GlobalValue * GV) externalize() argument
235 isInPartition(const GlobalValue * GV,unsigned I,unsigned N) isInPartition() argument
316 __anon21db16b30402(const GlobalValue *GV) SplitModule() argument
[all...]
H A DCloneModule.cpp48 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...]
H A DNameAnonGlobals.cpp45 for (auto &GV : TheModule.globals()) { in get() local
68 auto RenameIfNeed = [&](GlobalValue &GV) { in nameUnamedGlobals()
/llvm-project/llvm/unittests/Transforms/Utils/
H A DCallPromotionUtilsTest.cpp72 auto *GV = M->getNamedValue("f"); TEST() local
105 auto *GV = M->getNamedValue("f"); TEST() local
132 auto *GV = M->getNamedValue("f"); TEST() local
167 auto *GV = M->getNamedValue("f"); TEST() local
206 auto *GV = M->getNamedValue("f"); TEST() local
248 auto *GV = M->getNamedValue("f"); TEST() local
307 auto *GV = M->getNamedValue("_Z2g1v"); TEST() local
375 auto *GV = M->getNamedValue("f"); TEST() local
[all...]
/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64TargetObjectFile.cpp89 const GlobalValue *GV, const MCSymbol *Sym, const MCValue &MV, in getNameWithPrefix() argument
33 getIndirectSymViaGOTPCRel(const GlobalValue * GV,const MCSymbol * Sym,const MCValue & MV,int64_t Offset,MachineModuleInfo * MMI,MCStreamer & Streamer) const getIndirectSymViaGOTPCRel() argument
47 getTTypeGlobalReference(const GlobalValue * GV,unsigned Encoding,const TargetMachine & TM,MachineModuleInfo * MMI,MCStreamer & Streamer) const getTTypeGlobalReference() argument
68 getCFIPersonalitySymbol(const GlobalValue * GV,const TargetMachine & TM,MachineModuleInfo * MMI) const getCFIPersonalitySymbol() argument
74 getIndirectSymViaGOTPCRel(const GlobalValue * GV,const MCSymbol * Sym,const MCValue & MV,int64_t Offset,MachineModuleInfo * MMI,MCStreamer & Streamer) const getIndirectSymViaGOTPCRel() argument
/llvm-project/clang/lib/CodeGen/
H A DSanitizerMetadata.cpp37 reportGlobal(llvm::GlobalVariable * GV,SourceLocation Loc,StringRef Name,QualType Ty,SanitizerMask NoSanitizeAttrMask,bool IsDynInit) reportGlobal() argument
78 reportGlobal(llvm::GlobalVariable * GV,const VarDecl & D,bool IsDynInit) reportGlobal() argument
101 disableSanitizerForGlobal(llvm::GlobalVariable * GV) disableSanitizerForGlobal() argument
[all...]
H A DCGHLSLRuntime.cpp130 auto *GV = cast<GlobalVariable>(CGM.GetAddrOfGlobalVar(D)); in addConstant() local
81 GlobalVariable *GV = Const.first; layoutBuffer() local
180 GlobalVariable *GV = replaceBuffer(Buf); finishCodeGen() local
197 addBufferResourceAnnotation(llvm::GlobalVariable * GV,llvm::hlsl::ResourceClass RC,llvm::hlsl::ResourceKind RK,bool IsROV,llvm::hlsl::ElementType ET,BufferResBinding & Binding) addBufferResourceAnnotation() argument
276 annotateHLSLResource(const VarDecl * D,GlobalVariable * GV) annotateHLSLResource() argument
401 const auto *GV = gatherFunctions() local
453 if (auto *GV = M.getNamedGlobal("llvm.global_ctors")) generateGlobalCtorDtorCalls() local
455 if (auto *GV = M.getNamedGlobal("llvm.global_dtors")) generateGlobalCtorDtorCalls() local
[all...]
/llvm-project/llvm/lib/Transforms/Scalar/
H A DTLSVariableHoist.cpp
/llvm-project/llvm/lib/Target/AMDGPU/Utils/
H A DAMDGPUMemoryUtils.cpp
/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXCtorDtorLowering.cpp52 addKernelMetadata(Module & M,GlobalValue * GV) addKernelMetadata() argument
140 auto *GV = new GlobalVariable( createInitOrFiniCalls() local
153 auto *GV = new GlobalVariable( createInitOrFiniCalls() local
207 createInitOrFiniGlobals(Module & M,GlobalVariable * GV,bool IsCtor) createInitOrFiniGlobals() argument
232 auto *GV = new GlobalVariable(M, F->getType(), /*IsConstant=*/true, createInitOrFiniGlobals() local
248 GlobalVariable *GV = M.getGlobalVariable(GlobalName); createInitOrFiniKernel() local
[all...]
/llvm-project/llvm/lib/LTO/
H A DLTOCodeGenerator.cpp439 if (GV.hasAvailableExternallyLinkage()) in preserveDiscardableGVs() argument
452 for (auto &GV : TheModule) preserveDiscardableGVs() local
454 for (auto &GV : TheModule.globals()) preserveDiscardableGVs() local
456 for (auto &GV : TheModule.aliases()) preserveDiscardableGVs() local
473 __anon1d11ba120402(const GlobalValue &GV) applyScopeRestrictions() argument
497 __anon1d11ba120502(const GlobalValue &GV) applyScopeRestrictions() argument
504 for (auto &GV : MergedModule->globals()) applyScopeRestrictions() local
506 for (auto &GV : MergedModule->aliases()) applyScopeRestrictions() local
530 __anon1d11ba120602(GlobalValue &GV) restoreLinkageForExternals() argument
[all...]
/llvm-project/llvm/lib/ExecutionEngine/Interpreter/
H A DExternalFunctions.cpp328 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
/llvm-project/llvm/lib/ExecutionEngine/Orc/
H A DThreadSafeModule.cpp32 auto Tmp = CloneModule(M, VMap, [&](const GlobalValue *GV) { in cloneToNewContext()
41 for (auto *GV : ClonedDefsInSrc) in cloneToNewContext() local
H A DCompileOnDemandLayer.cpp24 __anon9978c83b0102(GlobalValue &GV) extractSubModule() argument
240 for (const auto *GV : Partition) expandPartition() local
255 for (const auto *GV : GVsToAdd) expandPartition() local
273 for (auto &GV : getStaticInitGVs(M)) emitPartition() local
345 for (const auto *GV : HashGVs) { emitPartition() local
359 __anon9978c83b0902(const GlobalValue &GV) emitPartition() argument
/llvm-project/llvm/lib/Analysis/
H A DGlobalsModRef.cpp180 void addModRefInfoForGlobal(const GlobalValue &GV, ModRefInfo NewMRI) { in addModRefInfoForGlobal()
192 void eraseModRefInfoForGlobal(const GlobalValue &GV) { in eraseModRefInfoForGlobal()
211 if (GlobalValue *GV = dyn_cast<GlobalValue>(V)) { in deleted() local
413 bool GlobalsAAResult::AnalyzeIndirectGlobalMemory(GlobalVariable *GV) { in AnalyzeIndirectGlobalMemory()
633 static bool isNonEscapingGlobalNoAliasWithLoad(const GlobalValue *GV, in isNonEscapingGlobalNoAliasWithLoad()
715 bool GlobalsAAResult::isNonEscapingGlobalNoAlias(const GlobalValue *GV, in isNonEscapingGlobalNoAlias()
857 const GlobalValue *GV = GV1 ? GV1 : GV2; in alias() local
872 if (GlobalVariable *GV = dyn_cast<GlobalVariable>(LI->getOperand(0))) in alias() local
876 if (const GlobalVariable *GV = dyn_cast<GlobalVariable>(LI->getOperand(0))) in alias() local
904 const GlobalValue *GV, in getModRefInfoForArgument()
[all …]
/llvm-project/llvm/lib/Target/
H A DTargetLoweringObjectFile.cpp81 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
399 getTTypeGlobalReference(const GlobalValue * GV,unsigned Encoding,const TargetMachine & TM,MachineModuleInfo * MMI,MCStreamer & Streamer) const getTTypeGlobalReference() argument
434 getNameWithPrefix(SmallVectorImpl<char> & OutName,const GlobalValue * GV,const TargetMachine & TM) const getNameWithPrefix() argument
[all...]
/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUMachineFunction.cpp95 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...]

12345678910>>...16