Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/llvm/include/llvm/SandboxIR/
H A DModule.h54 LLVM_ABI GlobalVariable *getGlobalVariable(StringRef Name,
56 GlobalVariable *getGlobalVariable(StringRef Name) const { in getGlobalVariable() function
57 return getGlobalVariable(Name, /*AllowInternal=*/false); in getGlobalVariable()
63 return getGlobalVariable(Name, true); in getNamedGlobal()
/freebsd/contrib/llvm-project/llvm/lib/SandboxIR/
H A DModule.cpp22 GlobalVariable *Module::getGlobalVariable(StringRef Name, in getGlobalVariable() function in Module
25 Ctx.getValue(LLVMM.getGlobalVariable(Name, AllowInternal))); in getGlobalVariable()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DModule.h430 GlobalVariable *getGlobalVariable(StringRef Name) const { in getGlobalVariable() function
431 return getGlobalVariable(Name, false); in getGlobalVariable()
434 GlobalVariable *getGlobalVariable(StringRef Name, bool AllowInternal) const;
436 GlobalVariable *getGlobalVariable(StringRef Name,
438 return static_cast<const Module *>(this)->getGlobalVariable(Name,
446 return getGlobalVariable(Name, true); in getNamedGlobal()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DConstantMerge.cpp137 FindUsedValues(M.getGlobalVariable("llvm.used"), UsedGlobals); in mergeConstants()
138 FindUsedValues(M.getGlobalVariable("llvm.compiler.used"), UsedGlobals); in mergeConstants()
H A DEmbedBitcodePass.cpp26 if (M.getGlobalVariable("llvm.embedded.module", /*AllowInternal=*/true)) in run()
H A DAnnotation2Metadata.cpp32 auto *Annotations = M.getGlobalVariable("llvm.global.annotations"); in convertAnnotation2Metadata()
H A DStripSymbols.cpp123 findUsedValues(M.getGlobalVariable("llvm.used"), llvmUsedValues); in StripSymbolNames()
124 findUsedValues(M.getGlobalVariable("llvm.compiler.used"), llvmUsedValues); in StripSymbolNames()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/ObjCARC/
H A DObjCARCAPElim.cpp114 GlobalVariable *GV = M.getGlobalVariable("llvm.global_ctors"); in runImpl()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DIndirectCallPromotion.cpp573 GlobalVariable *VTableVar = Symtab->getGlobalVariable(VTableVal); in computeVTableInfos()
766 Remark << ore::NV("VTable", Symtab->getGlobalVariable(*Iter)); in tryToPromoteWithVTableCmp()
865 dbgs() << " {" << Symtab->getGlobalVariable(GUID)->getName() << ", " in isProfitableToCompareVTables()
912 auto *VTableVar = Symtab->getGlobalVariable(VTableGUID); in shouldSkipVTable()
H A DInstrProfiling.cpp752 M.getGlobalVariable(INSTR_PROF_QUOTE(INSTR_PROF_PROFILE_SAMPLING_VAR)); in doSampling()
1096 GlobalVariable *Bias = M.getGlobalVariable(VarName); in getOrCreateBiasVar()
2054 if (M.getGlobalVariable(getInstrProfRuntimeHookVarName())) in emitRuntimeHook()
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/
H A DReOptimizeLayer.cpp212 M.getGlobalVariable("__orc_rt_jit_dispatch_ctx"); in createReoptimizeCall()
218 M.getGlobalVariable("__orc_rt_reoptimize_tag"); in createReoptimizeCall()
/freebsd/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()
H A DModuleUtils.cpp137 GlobalVariable *GV = M.getGlobalVariable(Name); in appendToUsedList()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGObjCGNU.cpp212 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()
1873 llvm::GlobalVariable *OffsetVar = TheModule.getGlobalVariable(OffsetName); in GenerateClass()
2219 llvm::GlobalVariable *ClassSymbol = TheModule.getGlobalVariable(SymbolName); in GetClassNamed()
2338 if (TheModule.getGlobalVariable(symbolRef)) in EmitClassRef()
2341 llvm::GlobalVariable *ClassSymbol = TheModule.getGlobalVariable(symbolName); in EmitClassRef()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUCtorDtorLowering.cpp149 GlobalVariable *GV = M.getGlobalVariable(GlobalName); in createInitOrFiniKernel()
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/MCJIT/
H A DMCJIT.cpp309 GlobalVariable *G = M->getGlobalVariable(DemangledName); in findModuleForSymbol()
478 GlobalVariable *GV = (*I)->getGlobalVariable(Name, AllowInternal); in FindGlobalVariableNamedInModulePtrSet()
/freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXCtorDtorLowering.cpp216 GlobalVariable *GV = M.getGlobalVariable(GlobalName); in createInitOrFiniKernel()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DModule.cpp244 GlobalVariable *Module::getGlobalVariable(StringRef Name, in getGlobalVariable() function in Module
866 GlobalVariable *GV = M.getGlobalVariable(Name); in collectUsedGlobalVariables()
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyLowerEmscriptenEHSjLj.cpp406 static GlobalVariable *getGlobalVariable(Module &M, Type *Ty, in getGlobalVariable() function
930 ThrewGV = getGlobalVariable(M, getAddrIntType(&M), TM, "__THREW__"); in runOnModule()
931 ThrewValueGV = getGlobalVariable(M, IRB.getInt32Ty(), TM, "__threwValue"); in runOnModule()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DShadowStackGCLowering.cpp252 Head = M.getGlobalVariable("llvm_gc_root_chain"); in doInitialization()
H A DGlobalMerge.cpp619 const GlobalVariable *GV = M.getGlobalVariable(Name); in collectUsedGlobalVariables()
/freebsd/contrib/llvm-project/llvm/include/llvm/ProfileData/
H A DInstrProf.h708 inline GlobalVariable *getGlobalVariable(uint64_t MD5Hash);
788 GlobalVariable *InstrProfSymtab::getGlobalVariable(uint64_t MD5Hash) { in getGlobalVariable() function

12