Home
last modified time | relevance | path

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

12345

/llvm-project-15.0.7/bolt/test/X86/Inputs/
H A Dplt-sec-8-byte.yaml353 - Name: "GA!\b"
395 - Name: "GA!\b"
437 - Name: "GA!\b"
479 - Name: "GA!\b"
521 - Name: "GA!\b"
563 - Name: "GA!\b"
614 - Name: "GA!\b"
656 - Name: "GA!\b"
698 - Name: "GA!\b"
740 - Name: "GA!\b"
[all …]
/llvm-project-15.0.7/llvm/lib/Transforms/IPO/
H A DExtractGV.cpp123 for (GlobalAlias &GA : llvm::make_early_inc_range(M.aliases())) { in runOnModule()
124 bool Delete = deleteStuff == (bool)Named.count(&GA); in runOnModule()
125 makeVisible(GA, Delete); in runOnModule()
128 Type *Ty = GA.getValueType(); in runOnModule()
130 GA.removeFromParent(); in runOnModule()
135 GA.getAddressSpace(), GA.getName(), &M); in runOnModule()
140 nullptr, GA.getName()); in runOnModule()
142 GA.replaceAllUsesWith(Declaration); in runOnModule()
143 delete &GA; in runOnModule()
H A DGlobalDCE.cpp313 for (GlobalAlias &GA : M.aliases()) in run()
314 if (Comdat *C = GA.getComdat()) in run()
336 GA.removeDeadConstantUsers(); in run()
338 if (!GA.isDiscardableIfUnused()) in run()
339 MarkLive(GA); in run()
341 UpdateGVDependencies(GA); in run()
392 for (GlobalAlias &GA : M.aliases()) in run()
393 if (!AliveGlobals.count(&GA)) { in run()
394 DeadAliases.push_back(&GA); in run()
395 GA.setAliasee(nullptr); in run()
[all …]
H A DInternalize.cpp200 for (GlobalAlias &GA : M.aliases()) in internalizeModule()
201 checkComdat(GA, ComdatMap); in internalizeModule()
265 for (auto &GA : M.aliases()) { in internalizeModule() local
266 if (!maybeInternalize(GA, ComdatMap)) in internalizeModule()
271 LLVM_DEBUG(dbgs() << "Internalized alias " << GA.getName() << "\n"); in internalizeModule()
H A DFunctionImport.cpp1193 Function *Fn = cast<Function>(GA->getAliaseeObject()); in replaceAliasWithAliasee()
1199 NewFn->setLinkage(GA->getLinkage()); in replaceAliasWithAliasee()
1200 NewFn->setVisibility(GA->getVisibility()); in replaceAliasWithAliasee()
1201 GA->replaceAllUsesWith(ConstantExpr::getBitCast(NewFn, GA->getType())); in replaceAliasWithAliasee()
1202 NewFn->takeName(GA); in replaceAliasWithAliasee()
1287 for (GlobalAlias &GA : SrcModule->aliases()) { in importFunctions()
1288 if (!GA.hasName() || isa<GlobalIFunc>(GA.getAliaseeObject())) in importFunctions()
1290 auto GUID = GA.getGUID(); in importFunctions()
1296 if (Error Err = GA.materialize()) in importFunctions()
1299 GlobalObject *GO = GA.getAliaseeObject(); in importFunctions()
[all …]
H A DGlobalOpt.cpp2222 if (GA.use_empty()) // No use at all. in hasUseOtherThanLLVMUsed()
2225 assert((!U.usedCount(&GA) || !U.compilerUsedCount(&GA)) && in hasUseOtherThanLLVMUsed()
2228 if (!GA.hasOneUse()) in hasUseOtherThanLLVMUsed()
2234 return !U.usedCount(&GA) && !U.compilerUsedCount(&GA); in hasUseOtherThanLLVMUsed()
2249 if (!GA.hasLocalLinkage()) in mayHaveOtherReferences()
2252 return U.usedCount(&GA) || U.compilerUsedCount(&GA); in mayHaveOtherReferences()
2259 if (hasUseOtherThanLLVMUsed(GA, U)) in hasUsesToReplace()
2263 if (!mayHaveOtherReferences(GA, U)) in hasUsesToReplace()
2272 Constant *Aliasee = GA.getAliasee(); in hasUsesToReplace()
2479 for (GlobalAlias &GA : M.aliases()) in optimizeGlobalsInModule()
[all …]
H A DMergeFunctions.cpp775 auto *GA = GlobalAlias::create(G->getValueType(), PtrType->getAddressSpace(), in writeAlias() local
779 GA->takeName(G); in writeAlias()
780 GA->setVisibility(G->getVisibility()); in writeAlias()
781 GA->setUnnamedAddr(GlobalValue::UnnamedAddr::Global); in writeAlias()
784 G->replaceAllUsesWith(GA); in writeAlias()
787 LLVM_DEBUG(dbgs() << "writeAlias: " << GA->getName() << '\n'); in writeAlias()
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DCanonicalizeAliases.cpp42 if (auto *GA = dyn_cast<GlobalAlias>(C)) { in canonicalizeAlias() local
43 auto *NewAliasee = canonicalizeAlias(GA->getAliasee(), Changed); in canonicalizeAlias()
44 if (NewAliasee != GA->getAliasee()) { in canonicalizeAlias()
45 GA->setAliasee(NewAliasee); in canonicalizeAlias()
64 for (auto &GA : M.aliases()) in canonicalizeAliases() local
65 canonicalizeAlias(&GA, Changed); in canonicalizeAliases()
H A DCloneModule.cpp105 auto *GA = GlobalAlias::create(I.getValueType(), in CloneModule() local
108 GA->copyAttributesFrom(&I); in CloneModule()
109 VMap[&I] = GA; in CloneModule()
182 GlobalAlias *GA = cast<GlobalAlias>(VMap[&I]); in CloneModule() local
184 GA->setAliasee(MapValue(C, VMap)); in CloneModule()
H A DNameAnonGlobals.cpp78 for (auto &GA : M.aliases()) in nameUnamedGlobals() local
79 RenameIfNeed(GA); in nameUnamedGlobals()
H A DMetaRenamer.cpp149 for (GlobalAlias &GA : M.aliases()) { in MetaRename()
150 StringRef Name = GA.getName(); in MetaRename()
155 GA.setName("alias"); in MetaRename()
/llvm-project-15.0.7/llvm/tools/llvm-reduce/deltas/
H A DReduceAliases.cpp24 for (auto &GA : make_early_inc_range(Program.aliases())) { in extractAliasesFromModule() local
26 GA.replaceAllUsesWith(GA.getAliasee()); in extractAliasesFromModule()
27 GA.eraseFromParent(); in extractAliasesFromModule()
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DAMDGPUCtorDtorLowering.cpp55 ConstantArray *GA = dyn_cast<ConstantArray>(GV->getInitializer()); in createInitOrFiniKernel() local
56 if (!GA || GA->getNumOperands() == 0) in createInitOrFiniKernel()
60 for (Value *V : GA->operands()) { in createInitOrFiniKernel()
/llvm-project-15.0.7/llvm/tools/llvm-extract/
H A Dllvm-extract.cpp154 GlobalAlias *GA = M->getNamedAlias(ExtractAliases[i]); in main() local
155 if (!GA) { in main()
160 GVs.insert(GA); in main()
172 for (Module::alias_iterator GA = M->alias_begin(), E = M->alias_end(); in main() local
173 GA != E; GA++) { in main()
174 if (RegEx.match(GA->getName())) { in main()
175 GVs.insert(&*GA); in main()
/llvm-project-15.0.7/llvm/lib/IR/
H A DGlobals.cpp172 if (auto *GA = dyn_cast<GlobalAlias>(this)) { in getSection() local
174 if (const GlobalObject *GO = GA->getAliaseeObject()) in getSection()
182 if (auto *GA = dyn_cast<GlobalAlias>(this)) { in getComdat() local
184 if (const GlobalObject *GO = GA->getAliaseeObject()) in getComdat()
327 if (auto *GA = dyn_cast<GlobalAlias>(C)) { in findBaseObject() local
328 Op(*GA); in findBaseObject()
329 if (Aliases.insert(GA).second) in findBaseObject()
330 return findBaseObject(GA->getOperand(0), Aliases, Op); in findBaseObject()
/llvm-project-15.0.7/llvm/test/Linker/
H A Daddrspace.ll6 @GA = alias i32, i32 addrspace(2)* @G
7 ; CHECK: @GA = alias i32, i32 addrspace(2)* @G
/llvm-project-15.0.7/clang/test/Layout/
H A Dms-x86-vtordisp.cpp293 struct GA { struct
296 struct GB: public GA {}; argument
297 struct GC: public virtual GA {
/llvm-project-15.0.7/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 (GlobalAlias &GA : SrcM->aliases()) in run()
507 if (GA.hasLinkOnceLinkage()) in run()
508 if (const Comdat *SC = GA.getComdat()) in run()
509 LazyComdatMembers[SC].push_back(&GA); in run()
522 for (GlobalAlias &GA : SrcM->aliases()) in run()
523 if (linkIfNeeded(GA, GVToClone)) in run()
/llvm-project-15.0.7/llvm/lib/Target/WebAssembly/
H A DWebAssemblyISelLowering.cpp812 const GlobalAddressSDNode *GA) const { in isOffsetFoldingLegal()
814 const GlobalValue *GV = GA->getGlobal(); in isOffsetFoldingLegal()
1463 if (GA && WebAssembly::isWasmVarAddressSpace(GA->getAddressSpace())) { in IsWebAssemblyTable()
1509 GA = cast<GlobalAddressSDNode>(Base); in MatchTableForLowering()
1513 if (GA) { in MatchTableForLowering()
1516 assert(GA->getNumValues() == 1); in MatchTableForLowering()
1548 GlobalAddressSDNode *GA; in LowerStore() local
1599 GlobalAddressSDNode *GA; in LowerLoad() local
1721 const GlobalValue *GV = GA->getGlobal(); in LowerGlobalTLSAddress()
1772 assert(GA->getTargetFlags() == 0 && in LowerGlobalAddress()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/Hexagon/
H A DHexagonISelDAGToDAG.cpp1957 WeightedLeaf GA; in balanceSubTree() local
2096 GA.Value.hasOneUse() && N->use_size() < 3) { in balanceSubTree()
2111 GA.Value = CurDAG->getNode(GA.Value.getOpcode(), SDLoc(GA.Value), in balanceSubTree()
2112 GA.Value.getValueType(), NewTGA); in balanceSubTree()
2113 GA.Weight += Leaves.top().Weight; in balanceSubTree()
2115 NodeHeights[GA.Value] = getHeight(GA.Value.getNode()); in balanceSubTree()
2131 if (NOpcode == ISD::ADD && GA.Value.getNode()) { in balanceSubTree()
2135 GA.Value = CurDAG->getNode(ISD::ADD, SDLoc(GA.Value), in balanceSubTree()
2139 NodeHeights[GA.Value] = Height; in balanceSubTree()
2143 if (GA.Value.getNode()) in balanceSubTree()
[all …]
H A DHexagonISelLowering.cpp1282 SDLoc dl(GA); in GetDynamicTLSAddr()
1315 SDLoc dl(GA); in LowerToTLSInitialExecModel()
1316 int64_t Offset = GA->getOffset(); in LowerToTLSInitialExecModel()
1357 SDLoc dl(GA); in LowerToTLSLocalExecModel()
1358 int64_t Offset = GA->getOffset(); in LowerToTLSLocalExecModel()
1379 SDLoc dl(GA); in LowerToTLSGeneralDynamicModel()
1380 int64_t Offset = GA->getOffset(); in LowerToTLSGeneralDynamicModel()
1417 switch (HTM.getTLSModel(GA->getGlobal())) { in LowerGlobalTLSAddress()
1420 return LowerToTLSGeneralDynamicModel(GA, DAG); in LowerGlobalTLSAddress()
1422 return LowerToTLSInitialExecModel(GA, DAG); in LowerGlobalTLSAddress()
[all …]
/llvm-project-15.0.7/llvm/lib/LTO/
H A DUpdateCompilerUsed.cpp40 for (GlobalAlias &GA : TheModule.aliases()) in findInModule()
41 findLibCallsAndAsm(GA); in findInModule()
/llvm-project-15.0.7/llvm/lib/Transforms/Vectorize/
H A DVPlanSLP.cpp209 auto *GA = IAI.getInterleaveGroup(A); in areConsecutiveOrMatch() local
212 return GA && GB && GA == GB && GA->getIndex(A) + 1 == GB->getIndex(B); in areConsecutiveOrMatch()
/llvm-project-15.0.7/llvm/lib/CodeGen/AsmPrinter/
H A DAsmPrinter.cpp1805 MCSymbol *Name = getSymbol(&GA); in emitGlobalAlias()
1821 if (isa<GlobalVariable>(GA.getAliaseeObject())) in emitGlobalAlias()
1824 emitLinkage(&GA, Name); in emitGlobalAlias()
1828 emitLinkage(&GA, in emitGlobalAlias()
1835 else if (GA.hasWeakLinkage() || GA.hasLinkOnceLinkage()) in emitGlobalAlias()
1855 emitVisibility(Name, GA.getVisibility()); in emitGlobalAlias()
1864 MCSymbol *LocalAlias = getSymbolPreferLocal(GA); in emitGlobalAlias()
2923 for (const GlobalAlias *GA : AliasIt->second) in emitGlobalAliasInline() local
2924 AP.OutStreamer->emitLabel(AP.getSymbol(GA)); in emitGlobalAliasInline()
3360 for (const GlobalAlias *GA : AliasPair.second) in emitGlobalConstant() local
[all …]
/llvm-project-15.0.7/clang/test/CodeGenOpenCL/
H A Dpartial_initializer.cl8 // CHECK: @GA ={{.*}} addrspace(1) global [6 x [6 x float]] {{[[][[]}}6 x float] [float 1.000000e+0…
10 float GA[6][6] = {1.0f, 2.0f};

12345