Home
last modified time | relevance | path

Searched refs:getGlobalVariable (Results 1 – 25 of 39) sorted by relevance

12

/src/contrib/llvm-project/llvm/include/llvm/IR/
H A DModule.h446 GlobalVariable *getGlobalVariable(StringRef Name) const { in getGlobalVariable() function
447 return getGlobalVariable(Name, false); in getGlobalVariable()
450 GlobalVariable *getGlobalVariable(StringRef Name, bool AllowInternal) const;
452 GlobalVariable *getGlobalVariable(StringRef Name,
454 return static_cast<const Module *>(this)->getGlobalVariable(Name,
462 return getGlobalVariable(Name, true); in getNamedGlobal()
/src/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DEmbedBitcodePass.cpp27 if (M.getGlobalVariable("llvm.embedded.module", /*AllowInternal=*/true)) in run()
H A DConstantMerge.cpp137 FindUsedValues(M.getGlobalVariable("llvm.used"), UsedGlobals); in mergeConstants()
138 FindUsedValues(M.getGlobalVariable("llvm.compiler.used"), UsedGlobals); in mergeConstants()
H A DAnnotation2Metadata.cpp33 auto *Annotations = M.getGlobalVariable("llvm.global.annotations"); in convertAnnotation2Metadata()
H A DStripSymbols.cpp122 findUsedValues(M.getGlobalVariable("llvm.used"), llvmUsedValues); in StripSymbolNames()
123 findUsedValues(M.getGlobalVariable("llvm.compiler.used"), llvmUsedValues); in StripSymbolNames()
/src/contrib/llvm-project/llvm/include/llvm/Frontend/HLSL/
H A DHLSLResource.h37 GlobalVariable *getGlobalVariable();
/src/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86WinFixupBufferSecurityCheck.cpp141 GlobalVariable *GV = M.getGlobalVariable("__security_cookie"); in CreateFailCheckSequence()
195 GlobalVariable *GV = M.getGlobalVariable("__security_cookie"); in runOnMachineFunction()
/src/contrib/llvm-project/llvm/lib/Frontend/HLSL/
H A DHLSLResource.cpp21 GlobalVariable *FrontendResource::getGlobalVariable() { in getGlobalVariable() function in FrontendResource
/src/contrib/llvm-project/llvm/lib/Transforms/ObjCARC/
H A DObjCARCAPElim.cpp114 GlobalVariable *GV = M.getGlobalVariable("llvm.global_ctors"); in runImpl()
/src/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DSampleProfileLoaderBaseUtil.cpp173 if (M->getGlobalVariable(FSDiscriminatorVar)) in createFSDiscriminatorVariable()
H A DCtorUtils.cpp78 GlobalVariable *GV = M.getGlobalVariable("llvm.global_ctors"); in findGlobalCtors()
H A DSymbolRewriter.cpp217 GlobalVariable, &Module::getGlobalVariable>;
238 GlobalVariable, &Module::getGlobalVariable,
H A DLowerGlobalDtors.cpp78 GlobalVariable *GV = M.getGlobalVariable("llvm.global_dtors"); in runImpl()
/src/contrib/llvm-project/clang/lib/CodeGen/
H A DCGObjCGNU.cpp213 auto *ConstStr = TheModule.getGlobalVariable(name); in ExportUniqueString()
1318 auto *GV = TheModule.getGlobalVariable(Name); in GenerateEmptyProtocol()
1340 assert(!TheModule.getGlobalVariable(RefName)); in GenerateProtocolRef()
1381 auto *OldGV = TheModule.getGlobalVariable(SymName); in GenerateProtocolRef()
1468 auto *TypesGlobal = TheModule.getGlobalVariable(TypesVarName); in GetTypeString()
1668 auto *global = TheModule.getGlobalVariable(lateInit.first); in ModuleInitFunction()
1864 llvm::GlobalVariable *OffsetVar = TheModule.getGlobalVariable(OffsetName); in GenerateClass()
2204 llvm::GlobalVariable *ClassSymbol = TheModule.getGlobalVariable(SymbolName); in GetClassNamed()
2233 if (TheModule.getGlobalVariable(symbolRef)) in EmitClassRef()
2236 llvm::GlobalVariable *ClassSymbol = TheModule.getGlobalVariable(symbolName); in EmitClassRef()
[all …]
/src/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DIndirectCallPromotion.cpp561 GlobalVariable *VTableVar = Symtab->getGlobalVariable(VTableVal); in computeVTableInfos()
754 Remark << ore::NV("VTable", Symtab->getGlobalVariable(*Iter)); in tryToPromoteWithVTableCmp()
855 LLVM_DEBUG(dbgs() << " {" << Symtab->getGlobalVariable(GUID)->getName() in isProfitableToCompareVTables()
H A DInstrProfiling.cpp741 M.getGlobalVariable(INSTR_PROF_QUOTE(INSTR_PROF_PROFILE_SAMPLING_VAR)); in doSampling()
1081 GlobalVariable *Bias = M.getGlobalVariable(VarName); in getOrCreateBiasVar()
2048 if (M.getGlobalVariable(getInstrProfRuntimeHookVarName())) in emitRuntimeHook()
/src/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUCtorDtorLowering.cpp147 GlobalVariable *GV = M.getGlobalVariable(GlobalName); in createInitOrFiniKernel()
/src/contrib/llvm-project/llvm/lib/ExecutionEngine/MCJIT/
H A DMCJIT.cpp312 GlobalVariable *G = M->getGlobalVariable(DemangledName); in findModuleForSymbol()
481 GlobalVariable *GV = (*I)->getGlobalVariable(Name, AllowInternal); in FindGlobalVariableNamedInModulePtrSet()
/src/contrib/llvm-project/llvm/lib/IR/
H A DModule.cpp208 GlobalVariable *Module::getGlobalVariable(StringRef Name, in getGlobalVariable() function in Module
856 GlobalVariable *GV = M.getGlobalVariable(Name); in collectUsedGlobalVariables()
/src/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXCtorDtorLowering.cpp248 GlobalVariable *GV = M.getGlobalVariable(GlobalName); in createInitOrFiniKernel()
/src/contrib/llvm-project/llvm/lib/Target/DirectX/
H A DDXILResource.cpp59 : ID(I), GV(R.getGlobalVariable()), Name(""), Space(R.getSpace()), in ResourceBase()
/src/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyLowerEmscriptenEHSjLj.cpp407 static GlobalVariable *getGlobalVariable(Module &M, Type *Ty, in getGlobalVariable() function
925 ThrewGV = getGlobalVariable(M, getAddrIntType(&M), TM, "__THREW__"); in runOnModule()
926 ThrewValueGV = getGlobalVariable(M, IRB.getInt32Ty(), TM, "__threwValue"); in runOnModule()
/src/contrib/llvm-project/llvm/include/llvm/ProfileData/
H A DInstrProf.h647 inline GlobalVariable *getGlobalVariable(uint64_t MD5Hash);
727 GlobalVariable *InstrProfSymtab::getGlobalVariable(uint64_t MD5Hash) { in getGlobalVariable() function
/src/contrib/llvm-project/llvm/lib/CodeGen/
H A DShadowStackGCLowering.cpp254 Head = M.getGlobalVariable("llvm_gc_root_chain"); in doInitialization()
H A DGlobalMerge.cpp599 const GlobalVariable *GV = M.getGlobalVariable(Name); in collectUsedGlobalVariables()

12