Home
last modified time | relevance | path

Searched refs:GA (Results 1 – 25 of 145) sorted by relevance

123456

/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DExtractGV.cpp109 for (GlobalAlias &GA : llvm::make_early_inc_range(M.aliases())) { in run()
110 bool Delete = deleteStuff == (bool)Named.count(&GA); in run()
111 makeVisible(GA, Delete); in run()
114 Type *Ty = GA.getValueType(); in run()
116 GA.removeFromParent(); in run()
120 GA.getAddressSpace(), GA.getName(), &M); in run()
124 M, Ty, false, GlobalValue::ExternalLinkage, nullptr, GA.getName()); in run()
126 GA.replaceAllUsesWith(Declaration); in run()
127 delete &GA; in run()
H A DGlobalDCE.cpp271 for (GlobalAlias &GA : M.aliases()) in run()
272 if (Comdat *C = GA.getComdat()) in run()
273 ComdatMembers.insert(std::make_pair(C, &GA)); in run()
293 for (GlobalAlias &GA : M.aliases()) { in run()
294 GA.removeDeadConstantUsers(); in run()
296 if (!GA.isDiscardableIfUnused()) in run()
297 MarkLive(GA); in run()
299 UpdateGVDependencies(GA); in run()
350 for (GlobalAlias &GA : M.aliases()) in run()
351 if (!AliveGlobals.count(&GA)) { in run()
[all …]
H A DInternalize.cpp198 for (GlobalAlias &GA : M.aliases()) in internalizeModule()
199 checkComdat(GA, ComdatMap); in internalizeModule()
259 for (auto &GA : M.aliases()) { in internalizeModule() local
260 if (!maybeInternalize(GA, ComdatMap)) in internalizeModule()
265 LLVM_DEBUG(dbgs() << "Internalized alias " << GA.getName() << "\n"); in internalizeModule()
H A DFunctionImport.cpp1613 for (auto &GA : TheModule.aliases()) { in thinLTOFinalizeInModule() local
1614 if (GA.hasAvailableExternallyLinkage()) in thinLTOFinalizeInModule()
1616 GlobalObject *Obj = GA.getAliaseeObject(); in thinLTOFinalizeInModule()
1619 GA.setLinkage(GlobalValue::AvailableExternallyLinkage); in thinLTOFinalizeInModule()
1674 static Function *replaceAliasWithAliasee(Module *SrcModule, GlobalAlias *GA) { in replaceAliasWithAliasee() argument
1675 Function *Fn = cast<Function>(GA->getAliaseeObject()); in replaceAliasWithAliasee()
1681 NewFn->setLinkage(GA->getLinkage()); in replaceAliasWithAliasee()
1682 NewFn->setVisibility(GA->getVisibility()); in replaceAliasWithAliasee()
1683 GA->replaceAllUsesWith(NewFn); in replaceAliasWithAliasee()
1684 NewFn->takeName(GA); in replaceAliasWithAliasee()
[all …]
H A DGlobalOpt.cpp2202 static bool hasUseOtherThanLLVMUsed(GlobalAlias &GA, const LLVMUsed &U) { in hasUseOtherThanLLVMUsed() argument
2203 if (GA.use_empty()) // No use at all. in hasUseOtherThanLLVMUsed()
2206 assert((!U.usedCount(&GA) || !U.compilerUsedCount(&GA)) && in hasUseOtherThanLLVMUsed()
2209 if (!GA.hasOneUse()) in hasUseOtherThanLLVMUsed()
2215 return !U.usedCount(&GA) && !U.compilerUsedCount(&GA); in hasUseOtherThanLLVMUsed()
2225 static bool hasUsesToReplace(GlobalAlias &GA, const LLVMUsed &U, in hasUsesToReplace() argument
2227 if (GA.isWeakForLinker()) in hasUsesToReplace()
2232 if (hasUseOtherThanLLVMUsed(GA, U)) in hasUsesToReplace()
2236 if (!mayHaveOtherReferences(GA, U)) in hasUsesToReplace()
2246 Constant *Aliasee = GA.getAliasee(); in hasUsesToReplace()
[all …]
H A DMergeFunctions.cpp830 auto *GA = GlobalAlias::create(G->getValueType(), PtrType->getAddressSpace(), in writeAlias() local
839 GA->takeName(G); in writeAlias()
840 GA->setVisibility(G->getVisibility()); in writeAlias()
841 GA->setUnnamedAddr(GlobalValue::UnnamedAddr::Global); in writeAlias()
844 G->replaceAllUsesWith(GA); in writeAlias()
847 LLVM_DEBUG(dbgs() << "writeAlias: " << GA->getName() << '\n'); in writeAlias()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DCanonicalizeAliases.cpp41 if (auto *GA = dyn_cast<GlobalAlias>(C)) { in canonicalizeAlias() local
42 auto *NewAliasee = canonicalizeAlias(GA->getAliasee(), Changed); in canonicalizeAlias()
43 if (NewAliasee != GA->getAliasee()) { in canonicalizeAlias()
44 GA->setAliasee(NewAliasee); in canonicalizeAlias()
63 for (auto &GA : M.aliases()) in canonicalizeAliases() local
64 canonicalizeAlias(&GA, Changed); in canonicalizeAliases()
H A DCloneModule.cpp111 auto *GA = GlobalAlias::create(I.getValueType(), in CloneModule() local
114 GA->copyAttributesFrom(&I); in CloneModule()
115 VMap[&I] = GA; in CloneModule()
197 GlobalAlias *GA = cast<GlobalAlias>(VMap[&I]); in CloneModule() local
199 GA->setAliasee(MapValue(C, VMap)); in CloneModule()
H A DNameAnonGlobals.cpp76 for (auto &GA : M.aliases()) in nameUnamedGlobals() local
77 RenameIfNeed(GA); in nameUnamedGlobals()
H A DMetaRenamer.cpp178 for (GlobalAlias &GA : M.aliases()) { in MetaRename()
179 StringRef Name = GA.getName(); in MetaRename()
184 GA.setName("alias"); in MetaRename()
/freebsd/contrib/llvm-project/llvm/tools/llvm-extract/
H A Dllvm-extract.cpp160 GlobalAlias *GA = M->getNamedAlias(ExtractAliases[i]); in main() local
161 if (!GA) { in main()
166 GVs.insert(GA); in main()
178 for (Module::alias_iterator GA = M->alias_begin(), E = M->alias_end(); in main() local
179 GA != E; GA++) { in main()
180 if (RegEx.match(GA->getName())) { in main()
181 GVs.insert(&*GA); in main()
/freebsd/contrib/llvm-project/llvm/lib/Linker/
H A DLinkModules.cpp134 if (const auto *GA = dyn_cast_or_null<GlobalAlias>(GVal)) { in getComdatLeader() local
135 GVal = GA->getAliaseeObject(); in getComdatLeader()
506 for (auto &GA : SrcM->aliases()) in run() local
507 if (GlobalObject *GO = GA.getAliaseeObject(); GO && GO->getComdat()) in run()
531 for (GlobalAlias &GA : SrcM->aliases()) in run()
532 if (GA.hasLinkOnceLinkage()) in run()
533 if (const Comdat *SC = GA.getComdat()) in run()
534 LazyComdatMembers[SC].push_back(&GA); in run()
547 for (GlobalAlias &GA : SrcM->aliases()) in run()
548 if (linkIfNeeded(GA, GVToClone)) in run()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DGlobals.cpp184 if (auto *GA = dyn_cast<GlobalAlias>(this)) { in getSection() local
186 if (const GlobalObject *GO = GA->getAliaseeObject()) in getSection()
194 if (auto *GA = dyn_cast<GlobalAlias>(this)) { in getComdat() local
196 if (const GlobalObject *GO = GA->getAliaseeObject()) in getComdat()
363 if (auto *GA = dyn_cast<GlobalAlias>(C)) { in findBaseObject() local
364 Op(*GA); in findBaseObject()
365 if (Aliases.insert(GA).second) in findBaseObject()
366 return findBaseObject(GA->getOperand(0), Aliases, Op); in findBaseObject()
/freebsd/contrib/llvm-project/llvm/lib/Target/M68k/
H A DM68kISelLowering.h197 bool isOffsetFoldingLegal(const GlobalAddressSDNode *GA) const override {
198 // In many cases, `GA` doesn't give the correct offset to fold. It's
286 SDValue getTLSGetAddr(GlobalAddressSDNode *GA, SelectionDAG &DAG,
290 SDValue LowerTLSGeneralDynamic(GlobalAddressSDNode *GA,
292 SDValue LowerTLSLocalDynamic(GlobalAddressSDNode *GA,
294 SDValue LowerTLSInitialExec(GlobalAddressSDNode *GA, SelectionDAG &DAG) const;
295 SDValue LowerTLSLocalExec(GlobalAddressSDNode *GA, SelectionDAG &DAG) const;
H A DM68kISelLowering.cpp1444 SDValue M68kTargetLowering::getTLSGetAddr(GlobalAddressSDNode *GA, in getTLSGetAddr() argument
1449 GA->getGlobal(), GA, GA->getValueType(0), GA->getOffset(), TargetFlags); in getTLSGetAddr()
1450 SDValue Arg = DAG.getNode(ISD::ADD, SDLoc(GA), MVT::i32, GOT, TGA); in getTLSGetAddr()
1459 return LowerExternalSymbolCall(DAG, SDLoc(GA), "__tls_get_addr", in getTLSGetAddr()
1467 SDValue M68kTargetLowering::LowerTLSGeneralDynamic(GlobalAddressSDNode *GA, in LowerTLSGeneralDynamic() argument
1469 return getTLSGetAddr(GA, DAG, M68kII::MO_TLSGD); in LowerTLSGeneralDynamic()
1472 SDValue M68kTargetLowering::LowerTLSLocalDynamic(GlobalAddressSDNode *GA, in LowerTLSLocalDynamic() argument
1474 SDValue Addr = getTLSGetAddr(GA, DAG, M68kII::MO_TLSLDM); in LowerTLSLocalDynamic()
1476 DAG.getTargetGlobalAddress(GA->getGlobal(), GA, GA->getValueType(0), in LowerTLSLocalDynamic()
1477 GA->getOffset(), M68kII::MO_TLSLD); in LowerTLSLocalDynamic()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUCtorDtorLowering.cpp150 ConstantArray *GA = dyn_cast<ConstantArray>(GV->getInitializer()); in run()
151 if (!GA || GA->getNumOperands() == 0) in run()
119 ConstantArray *GA = dyn_cast<ConstantArray>(GV->getInitializer()); createInitOrFiniKernel() local
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonISelDAGToDAG.cpp1556 if (GlobalAddressSDNode *GA = dyn_cast<GlobalAddressSDNode>(Addr)) { in SelectGlobalAddress() local
1557 if (GA->getOpcode() == ISD::TargetGlobalAddress) { in SelectGlobalAddress()
1558 uint64_t NewOff = GA->getOffset() + (uint64_t)Const->getSExtValue(); in SelectGlobalAddress()
1559 R = CurDAG->getTargetGlobalAddress(GA->getGlobal(), SDLoc(Const), in SelectGlobalAddress()
2104 WeightedLeaf GA; in balanceSubTree() local
2173 if (isTargetConstant(Child) && !GA.Value.getNode()) in balanceSubTree()
2174 GA = WeightedLeaf(Child, Weight, InsertionOrder++); in balanceSubTree()
2242 if (NOpcode == ISD::ADD && GA.Value.getNode() && Leaves.hasConst() && in balanceSubTree()
2243 GA.Value.hasOneUse() && N->use_size() < 3) { in balanceSubTree()
2245 cast<GlobalAddressSDNode>(GA.Value.getOperand(0)); in balanceSubTree()
[all …]
H A DHexagonISelLowering.cpp1246 SDValue GA = DAG.getTargetGlobalAddress(GV, dl, PtrVT, Offset); in LowerGLOBALADDRESS() local
1249 return DAG.getNode(HexagonISD::CONST32_GP, dl, PtrVT, GA); in LowerGLOBALADDRESS()
1250 return DAG.getNode(HexagonISD::CONST32, dl, PtrVT, GA); in LowerGLOBALADDRESS()
1255 SDValue GA = DAG.getTargetGlobalAddress(GV, dl, PtrVT, Offset, in LowerGLOBALADDRESS() local
1257 return DAG.getNode(HexagonISD::AT_PCREL, dl, PtrVT, GA); in LowerGLOBALADDRESS()
1262 SDValue GA = DAG.getTargetGlobalAddress(GV, dl, PtrVT, 0, HexagonII::MO_GOT); in LowerGLOBALADDRESS() local
1264 return DAG.getNode(HexagonISD::AT_GOT, dl, PtrVT, GOT, GA, Off); in LowerGLOBALADDRESS()
1295 GlobalAddressSDNode *GA, SDValue Glue, EVT PtrVT, unsigned ReturnReg, in GetDynamicTLSAddr() argument
1300 SDLoc dl(GA); in GetDynamicTLSAddr()
1301 SDValue TGA = DAG.getTargetGlobalAddress(GA->getGlobal(), dl, in GetDynamicTLSAddr()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXCtorDtorLowering.cpp209 ConstantArray *GA = dyn_cast<ConstantArray>(GV->getInitializer()); in createInitOrFiniGlobals() local
210 if (!GA || GA->getNumOperands() == 0) in createInitOrFiniGlobals()
216 for (Value *V : GA->operands()) { in createInitOrFiniGlobals()
H A DNVPTXAsmPrinter.cpp608 void NVPTXAsmPrinter::emitAliasDeclaration(const GlobalAlias *GA, in emitAliasDeclaration() argument
610 const Function *F = dyn_cast_or_null<Function>(GA->getAliaseeObject()); in emitAliasDeclaration()
615 if (GA->hasLinkOnceLinkage() || GA->hasWeakLinkage() || in emitAliasDeclaration()
616 GA->hasAvailableExternallyLinkage() || GA->hasCommonLinkage()) in emitAliasDeclaration()
619 emitDeclarationWithName(F, getSymbol(GA), O); in emitAliasDeclaration()
781 for (const GlobalAlias &GA : M.aliases()) in emitDeclarations() local
782 emitAliasDeclaration(&GA, O); in emitDeclarations()
872 void NVPTXAsmPrinter::emitGlobalAlias(const Module &M, const GlobalAlias &GA) { in emitGlobalAlias() argument
876 MCSymbol *Name = getSymbol(&GA); in emitGlobalAlias()
878 OS << ".alias " << Name->getName() << ", " << GA.getAliaseeObject()->getName() in emitGlobalAlias()
/freebsd/contrib/llvm-project/llvm/lib/LTO/
H A DUpdateCompilerUsed.cpp40 for (GlobalAlias &GA : TheModule.aliases()) in findInModule()
41 findLibCallsAndAsm(GA); in findInModule()
/freebsd/secure/caroot/untrusted/
H A DOISTE_WISeKey_Global_Root_GA_CA.pem2 ## OISTE WISeKey Global Root GA CA
18 …eKey, OU = Copyright (c) 2005, OU = OISTE Foundation Endorsed, CN = OISTE WISeKey Global Root GA CA
22 …eKey, OU = Copyright (c) 2005, OU = OISTE Foundation Endorsed, CN = OISTE WISeKey Global Root GA CA
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DVPlanSLP.cpp210 auto *GA = IAI.getInterleaveGroup(A); in areConsecutiveOrMatch() local
213 return GA && GB && GA == GB && GA->getIndex(A) + 1 == GB->getIndex(B); in areConsecutiveOrMatch()
/freebsd/contrib/wpa/wpa_supplicant/
H A DREADME-Windows.txt204 ctrl_interface=SDDL=D:(A;;GA;;;BA)
206 ("A" == "access allowed", "GA" == GENERIC_ALL == all permissions, and
214 ctrl_interface=SDDL=D:(A;;GA;;;BA)(A;;GA;;;PU)
222 ctrl_interface=SDDL=D:(A;;GA;;;AU)
232 ctrl_interface=SDDL=D:(A;;GA;;;BU)(A;;GA;;;AN)
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/
H A DAsmPrinter.cpp2098 void AsmPrinter::emitGlobalAlias(const Module &M, const GlobalAlias &GA) { in emitGlobalAlias() argument
2099 MCSymbol *Name = getSymbol(&GA); in emitGlobalAlias()
2100 bool IsFunction = GA.getValueType()->isFunctionTy(); in emitGlobalAlias()
2104 IsFunction = isa<Function>(GA.getAliasee()->stripPointerCasts()); in emitGlobalAlias()
2115 if (isa<GlobalVariable>(GA.getAliaseeObject())) in emitGlobalAlias()
2118 emitLinkage(&GA, Name); in emitGlobalAlias()
2122 emitLinkage(&GA, in emitGlobalAlias()
2123 getObjFileLowering().getFunctionEntryPointSymbol(&GA, TM)); in emitGlobalAlias()
2127 if (GA.hasExternalLinkage() || !MAI->getWeakRefDirective()) in emitGlobalAlias()
2129 else if (GA.hasWeakLinkage() || GA.hasLinkOnceLinkage()) in emitGlobalAlias()
[all …]

123456