Home
last modified time | relevance | path

Searched refs:getOrInsertGlobal (Results 1 – 25 of 31) sorted by relevance

12

/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DLowerEmuTLS.cpp123 M.getOrInsertGlobal(EmuTlsVarName, EmuTlsVarType)); in addEmuTlsVar()
138 M.getOrInsertGlobal(EmuTlsTmplName, GVType)); in addEmuTlsVar()
H A DJMCInstrumenter.cpp169 Flag = M.getOrInsertGlobal(FlagName, FlagTy, [&] { in runOnModule()
H A DWasmEHPrepare.cpp221 M.getOrInsertGlobal("__wasm_lpad_context", LPadContextTy)); in prepareEHPads()
H A DTargetLoweringBase.cpp1979 Constant *C = M.getOrInsertGlobal("__guard_local", PtrTy); in getIRStackGuard()
/llvm-project-15.0.7/llvm/lib/Transforms/CFGuard/
H A DCFGuard.cpp246 M.getOrInsertGlobal("__guard_check_icall_fptr", GuardFnPtrType); in doInitialization()
250 M.getOrInsertGlobal("__guard_dispatch_icall_fptr", GuardFnPtrType); in doInitialization()
/llvm-project-15.0.7/llvm/unittests/IR/
H A DValueTest.cpp69 Constant *Dummy1 = M->getOrInsertGlobal("dummy", Int32Ty); in TEST()
87 Constant *DummyCast1 = M->getOrInsertGlobal("dummy_cast", Int8Ty); in TEST()
H A DConstantsTest.cpp215 M->getOrInsertGlobal("dummy", PointerType::getUnqual(Int32Ty)); in TEST()
217 M->getOrInsertGlobal("dummy2", PointerType::getUnqual(Int32Ty)); in TEST()
315 M->getOrInsertGlobal("dummy", PointerType::getUnqual(Int32Ty)); in TEST()
784 GlobalVariable *GV1 = cast<GlobalVariable>(M.getOrInsertGlobal("gv1", Ty)); in TEST()
789 GlobalVariable *GV2 = cast<GlobalVariable>(M.getOrInsertGlobal("gv2", Ty)); in TEST()
H A DPatternMatch.cpp1795 M->getOrInsertGlobal("dummy", PointerType::getUnqual(IRB.getInt32Ty())); in TEST_F()
/llvm-project-15.0.7/llvm/lib/IR/
H A DModule.cpp205 Constant *Module::getOrInsertGlobal( in getOrInsertGlobal() function in Module
226 Constant *Module::getOrInsertGlobal(StringRef Name, Type *Ty) { in getOrInsertGlobal() function in Module
227 return getOrInsertGlobal(Name, Ty, [&] { in getOrInsertGlobal()
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DLowerGlobalDtors.cpp145 Constant *DsoHandle = M.getOrInsertGlobal("__dso_handle", DsoHandleTy, [&] { in runImpl()
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DModule.h442 getOrInsertGlobal(StringRef Name, Type *Ty,
447 Constant *getOrInsertGlobal(StringRef Name, Type *Ty);
/llvm-project-15.0.7/llvm/unittests/Analysis/
H A DBasicAliasAnalysisTest.cpp84 cast<GlobalVariable>(M.getOrInsertGlobal("some_global", B.getInt8Ty())); in TEST_F()
/llvm-project-15.0.7/polly/lib/CodeGen/
H A DManagedMemoryRewrite.cpp219 cast<GlobalVariable>(M.getOrInsertGlobal(NewName, ElemPtrTy)); in replaceGlobalArray()
/llvm-project-15.0.7/llvm/unittests/CodeGen/
H A DMachineOperandTest.cpp244 M.getOrInsertGlobal("foo", Type::getInt32Ty(Ctx)); in TEST()
/llvm-project-15.0.7/llvm/lib/Transforms/Instrumentation/
H A DMemorySanitizer.cpp757 static Constant *getOrInsertGlobal(Module &M, StringRef Name, Type *Ty) { in getOrInsertGlobal() function
758 return M.getOrInsertGlobal(Name, Ty, [&] { in getOrInsertGlobal()
779 getOrInsertGlobal(M, "__msan_retval_tls", in createUserspaceApi()
782 RetvalOriginTLS = getOrInsertGlobal(M, "__msan_retval_origin_tls", OriginTy); in createUserspaceApi()
785 getOrInsertGlobal(M, "__msan_param_tls", in createUserspaceApi()
789 getOrInsertGlobal(M, "__msan_param_origin_tls", in createUserspaceApi()
793 getOrInsertGlobal(M, "__msan_va_arg_tls", in createUserspaceApi()
797 getOrInsertGlobal(M, "__msan_va_arg_origin_tls", in createUserspaceApi()
801 getOrInsertGlobal(M, "__msan_va_arg_overflow_size_tls", IRB.getInt64Ty()); in createUserspaceApi()
974 M.getOrInsertGlobal("__msan_track_origins", IRB.getInt32Ty(), [&] { in initializeModule()
[all …]
H A DHWAddressSanitizer.cpp617 Constant *C = M.getOrInsertGlobal("__hwasan_tls", IntptrTy, [&] { in initializeModule()
657 ShadowGlobal = M.getOrInsertGlobal("__hwasan_shadow", in initializeCallbacks()
704 IRB.GetInsertBlock()->getParent()->getParent()->getOrInsertGlobal( in getShadowNonTls()
H A DMemProfiler.cpp595 Value *GlobalDynamicAddress = F.getParent()->getOrInsertGlobal( in insertDynamicShadowAtFunctionEntry()
H A DDataFlowSanitizer.cpp1311 (void)Mod->getOrInsertGlobal("__dfsan_shadow_width_bits", IntTy, [&] { in injectMetadataGlobals()
1316 (void)Mod->getOrInsertGlobal("__dfsan_shadow_width_bytes", IntTy, [&] { in injectMetadataGlobals()
1337 Constant *C = Mod->getOrInsertGlobal(Name, Ty); in runImpl()
1356 (void)Mod->getOrInsertGlobal("__dfsan_track_origins", OriginTy, [&] { in runImpl()
H A DAddressSanitizer.cpp2532 AsanShadowGlobal = M.getOrInsertGlobal("__asan_shadow", in initializeCallbacks()
2580 Value *GlobalDynamicAddress = F.getParent()->getOrInsertGlobal( in maybeInsertDynamicShadowAtFunctionEntry()
3175 Constant *OptionDetectUseAfterReturn = F.getParent()->getOrInsertGlobal( in processStaticAllocas()
H A DSanitizerCoverage.cpp464 M.getOrInsertGlobal(SanCovLowestStackName, IntptrTy); in instrumentModule()
/llvm-project-15.0.7/llvm/lib/Target/X86/
H A DX86WinEHState.cpp328 Cookie = TheModule->getOrInsertGlobal("__security_cookie", Int32Ty); in emitExceptionRegistrationRecord()
/llvm-project-15.0.7/llvm/lib/Target/WebAssembly/
H A DWebAssemblyLowerEmscriptenEHSjLj.cpp415 auto *GV = dyn_cast<GlobalVariable>(M.getOrInsertGlobal(Name, Ty)); in getGlobalVariable()
/llvm-project-15.0.7/llvm/lib/Transforms/IPO/
H A DWholeProgramDevirt.cpp1554 M.getOrInsertGlobal(getGlobalName(Slot, Args, Name), Int8Arr0Ty); in importGlobal()
H A DLowerTypeTests.cpp949 Constant *C = M.getOrInsertGlobal(("__typeid_" + TypeId + "_" + Name).str(), in importTypeId()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DItaniumCXXABI.cpp3571 VTable = CGM.getModule().getOrInsertGlobal(VTableName, CGM.Int8PtrTy); in BuildVTablePointer()

12