Lines Matching refs:GlobalVariable
688 bool GlobalIsLinkerInitialized(GlobalVariable *G);
819 ArrayRef<GlobalVariable *> ExtendedGlobals,
822 ArrayRef<GlobalVariable *> ExtendedGlobals,
826 ArrayRef<GlobalVariable *> ExtendedGlobals,
830 ArrayRef<GlobalVariable *> ExtendedGlobals,
833 GlobalVariable *CreateMetadataGlobal(Module &M, Constant *Initializer,
835 void SetComdatForGlobalMetadata(GlobalVariable *G, GlobalVariable *Metadata,
839 const GlobalVariable *getExcludedAliasedGlobal(const GlobalAlias &GA) const;
840 bool shouldInstrumentGlobal(GlobalVariable *G) const;
1190 auto *GV = dyn_cast<GlobalVariable>(StrippedV); in GlobalsMetadata()
1306 static GlobalVariable *createPrivateGlobalForSourceLoc(Module &M, in createPrivateGlobalForSourceLoc()
1314 auto GV = new GlobalVariable(M, LocStruct->getType(), true, in createPrivateGlobalForSourceLoc()
1322 static bool GlobalWasGeneratedByCompiler(GlobalVariable *G) { in GlobalWasGeneratedByCompiler()
1525 bool AddressSanitizer::GlobalIsLinkerInitialized(GlobalVariable *G) { in GlobalIsLinkerInitialized()
1625 GlobalVariable *G = dyn_cast<GlobalVariable>(getUnderlyingObject(Addr)); in instrumentMop()
1837 GlobalVariable *GV = M.getGlobalVariable("llvm.global_ctors"); in createInitializerPoisonCalls()
1861 const GlobalVariable *
1874 return dyn_cast<GlobalVariable>(C->stripPointerCastsAndAliases()); in getExcludedAliasedGlobal()
1879 bool ModuleAddressSanitizer::shouldInstrumentGlobal(GlobalVariable *G) const { in shouldInstrumentGlobal()
2083 GlobalVariable *G, GlobalVariable *Metadata, StringRef InternalSuffix) { in SetComdatForGlobalMetadata()
2119 GlobalVariable *
2123 ? GlobalVariable::InternalLinkage in CreateMetadataGlobal()
2124 : GlobalVariable::PrivateLinkage; in CreateMetadataGlobal()
2125 GlobalVariable *Metadata = new GlobalVariable( in CreateMetadataGlobal()
2146 IRBuilder<> &IRB, Module &M, ArrayRef<GlobalVariable *> ExtendedGlobals, in InstrumentGlobalsCOFF()
2154 GlobalVariable *G = ExtendedGlobals[i]; in InstrumentGlobalsCOFF()
2155 GlobalVariable *Metadata = in InstrumentGlobalsCOFF()
2179 IRBuilder<> &IRB, Module &M, ArrayRef<GlobalVariable *> ExtendedGlobals, in InstrumentGlobalsELF()
2192 GlobalVariable *G = ExtendedGlobals[i]; in InstrumentGlobalsELF()
2193 GlobalVariable *Metadata = in InstrumentGlobalsELF()
2214 GlobalVariable *RegisteredFlag = new GlobalVariable( in InstrumentGlobalsELF()
2215 M, IntptrTy, false, GlobalVariable::CommonLinkage, in InstrumentGlobalsELF()
2217 RegisteredFlag->setVisibility(GlobalVariable::HiddenVisibility); in InstrumentGlobalsELF()
2220 GlobalVariable *StartELFMetadata = new GlobalVariable( in InstrumentGlobalsELF()
2221 M, IntptrTy, false, GlobalVariable::ExternalWeakLinkage, nullptr, in InstrumentGlobalsELF()
2223 StartELFMetadata->setVisibility(GlobalVariable::HiddenVisibility); in InstrumentGlobalsELF()
2224 GlobalVariable *StopELFMetadata = new GlobalVariable( in InstrumentGlobalsELF()
2225 M, IntptrTy, false, GlobalVariable::ExternalWeakLinkage, nullptr, in InstrumentGlobalsELF()
2227 StopELFMetadata->setVisibility(GlobalVariable::HiddenVisibility); in InstrumentGlobalsELF()
2247 IRBuilder<> &IRB, Module &M, ArrayRef<GlobalVariable *> ExtendedGlobals, in InstrumentGlobalsMachO()
2259 GlobalVariable *G = ExtendedGlobals[i]; in InstrumentGlobalsMachO()
2260 GlobalVariable *Metadata = in InstrumentGlobalsMachO()
2268 GlobalVariable *Liveness = new GlobalVariable( in InstrumentGlobalsMachO()
2269 M, LivenessTy, false, GlobalVariable::InternalLinkage, LivenessBinder, in InstrumentGlobalsMachO()
2288 GlobalVariable *RegisteredFlag = new GlobalVariable( in InstrumentGlobalsMachO()
2289 M, IntptrTy, false, GlobalVariable::CommonLinkage, in InstrumentGlobalsMachO()
2291 RegisteredFlag->setVisibility(GlobalVariable::HiddenVisibility); in InstrumentGlobalsMachO()
2306 IRBuilder<> &IRB, Module &M, ArrayRef<GlobalVariable *> ExtendedGlobals, in InstrumentGlobalsWithMetadataArray()
2316 auto AllGlobals = new GlobalVariable( in InstrumentGlobalsWithMetadataArray()
2317 M, ArrayOfGlobalStructTy, false, GlobalVariable::InternalLinkage, in InstrumentGlobalsWithMetadataArray()
2347 SmallPtrSet<const GlobalVariable *, 16> AliasedGlobalExclusions; in InstrumentGlobals()
2350 if (const GlobalVariable *GV = getExcludedAliasedGlobal(GA)) in InstrumentGlobals()
2355 SmallVector<GlobalVariable *, 16> GlobalsToChange; in InstrumentGlobals()
2382 SmallVector<GlobalVariable *, 16> NewGlobals(n); in InstrumentGlobals()
2389 GlobalVariable *ModuleName = createPrivateGlobalForString( in InstrumentGlobals()
2393 GlobalVariable *G = GlobalsToChange[i]; in InstrumentGlobals()
2401 GlobalVariable *Name = createPrivateGlobalForString( in InstrumentGlobals()
2418 GlobalVariable *NewGlobal = new GlobalVariable( in InstrumentGlobals()
2480 new GlobalVariable(M, IRB.getInt8Ty(), false, Linkage, in InstrumentGlobals()
2513 GlobalVariable *G = NewGlobals[i]; in InstrumentGlobals()
3397 GlobalVariable *StackDescriptionGlobal = in processStaticAllocas()