Searched refs:GA (Results 1 - 25 of 93) sorted by last modified time

1234

/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMISelLowering.cpp3038 SDValue GA = DAG.getTargetGlobalAddress(dyn_cast<GlobalValue>(GV), local
3040 return LowerGlobalAddress(GA, DAG);
3200 const auto *GA = cast<GlobalAddressSDNode>(Op); local
3201 auto *CPV = ARMConstantPoolConstant::Create(GA->getGlobal(), ARMCP::SECREL);
3212 ARMTargetLowering::LowerToTLSGeneralDynamicModel(GlobalAddressSDNode *GA, argument
3214 SDLoc dl(GA);
3221 ARMConstantPoolConstant::Create(GA->getGlobal(), ARMPCLabelIndex,
3253 ARMTargetLowering::LowerToTLSExecModels(GlobalAddressSDNode *GA, argument
3256 const GlobalValue *GV = GA->getGlobal();
3257 SDLoc dl(GA);
3306 GlobalAddressSDNode *GA = cast<GlobalAddressSDNode>(Op); local
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCISelLowering.cpp2751 SDValue GA) const {
2758 SDValue Ops[] = { GA, Reg };
2775 SDValue GA = DAG.getTargetConstantPool(C, PtrVT, CP->getAlignment(), 0); local
2776 return getTOCEntry(DAG, SDLoc(CP), GA);
2784 SDValue GA = DAG.getTargetConstantPool(C, PtrVT, CP->getAlignment(), local
2786 return getTOCEntry(DAG, SDLoc(CP), GA);
2853 SDValue GA = DAG.getTargetJumpTable(JT->getIndex(), PtrVT); local
2854 return getTOCEntry(DAG, SDLoc(JT), GA);
2862 SDValue GA = DAG.getTargetJumpTable(JT->getIndex(), PtrVT, local
2864 return getTOCEntry(DAG, SDLoc(GA), G
2882 SDValue GA = DAG.getTargetBlockAddress(BA, PtrVT, BASDN->getOffset()); local
2906 GlobalAddressSDNode *GA = cast<GlobalAddressSDNode>(Op); local
3008 SDValue GA = DAG.getTargetGlobalAddress(GV, DL, PtrVT, GSDN->getOffset()); local
3017 SDValue GA = DAG.getTargetGlobalAddress(GV, DL, PtrVT, local
[all...]
H A DPPCISelLowering.h510 /// GPRC = TOC_ENTRY GA, TOC
511 /// Loads the entry for GA from the TOC, where the TOC base is given by
888 bool isOffsetFoldingLegal(const GlobalAddressSDNode *GA) const override;
1050 SDValue getTOCEntry(SelectionDAG &DAG, const SDLoc &dl, SDValue GA) const;
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86ISelLowering.cpp5032 if (const auto *GA = dyn_cast<GlobalAddressSDNode>(BasePtr.getOperand(0)))
5033 return GA->getTargetFlags() != X86II::MO_GOTTPOFF;
18187 GetTLSADDR(SelectionDAG &DAG, SDValue Chain, GlobalAddressSDNode *GA,
18192 SDLoc dl(GA);
18193 SDValue TGA = DAG.getTargetGlobalAddress(GA->getGlobal(), dl,
18194 GA->getValueType(0),
18195 GA->getOffset(),
18219 LowerToTLSGeneralDynamicModel32(GlobalAddressSDNode *GA, SelectionDAG &DAG,
18222 SDLoc dl(GA); // ? function entry point might be better
18228 return GetTLSADDR(DAG, Chain, GA,
[all...]
H A DX86ISelDAGToDAG.cpp2529 // FIXME: We are artificially lowering the criteria to turn ADD %reg, $GA
2589 const GlobalAddressSDNode *GA = cast<GlobalAddressSDNode>(N); local
2592 AM.GV = GA->getGlobal();
2593 AM.Disp += GA->getOffset();
2594 AM.SymbolFlags = GA->getTargetFlags();
2638 auto *GA = cast<GlobalAddressSDNode>(N.getOperand(0)); local
2639 Optional<ConstantRange> CR = GA->getGlobal()->getAbsoluteSymbolRange();
2644 Op = CurDAG->getTargetGlobalAddress(GA->getGlobal(), SDLoc(N), VT,
2645 GA->getOffset(), GA
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DGlobalOpt.cpp2706 static bool hasUseOtherThanLLVMUsed(GlobalAlias &GA, const LLVMUsed &U) {
2707 if (GA.use_empty()) // No use at all.
2710 assert((!U.usedCount(&GA) || !U.compilerUsedCount(&GA)) &&
2713 if (!GA.hasOneUse())
2719 return !U.usedCount(&GA) && !U.compilerUsedCount(&GA);
2733 static bool mayHaveOtherReferences(GlobalAlias &GA, const LLVMUsed &U) {
2734 if (!GA.hasLocalLinkage())
2737 return U.usedCount(&GA) ||
[all...]
H A DWholeProgramDevirt.cpp1256 GlobalAlias *GA = GlobalAlias::create(Int8Ty, 0, GlobalValue::ExternalLinkage, local
1258 GA->setVisibility(GlobalValue::HiddenVisibility);
H A DMergeFunctions.cpp770 auto *GA = GlobalAlias::create( local
775 GA->takeName(G);
776 GA->setVisibility(G->getVisibility());
777 GA->setUnnamedAddr(GlobalValue::UnnamedAddr::Global);
780 G->replaceAllUsesWith(GA);
783 LLVM_DEBUG(dbgs() << "writeAlias: " << GA->getName() << '\n');
H A DLowerTypeTests.cpp909 GlobalAlias *GA =
912 GA->setVisibility(GlobalValue::HiddenVisibility);
1804 for (GlobalAlias *GA : AliasesToErase)
1805 GA->eraseFromParent();
/freebsd-11-stable/contrib/llvm-project/llvm/lib/LTO/
H A DLTO.cpp708 for (auto &GA : M.aliases())
709 if (GlobalObject *GO = GA.getBaseObject())
/freebsd-11-stable/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DTargetLowering.cpp470 TargetLowering::isOffsetFoldingLegal(const GlobalAddressSDNode *GA) const {
472 const GlobalValue *GV = GA->getGlobal();
4001 bool TargetLowering::isGAPlusOffset(SDNode *WN, const GlobalValue *&GA, argument
4007 GA = GASD->getGlobal();
4015 if (isGAPlusOffset(N1.getNode(), GA, Offset)) {
4020 } else if (isGAPlusOffset(N2.getNode(), GA, Offset)) {
4124 GlobalAddressSDNode *GA; local
4129 // Match (GA) or (C) or (GA+C) or (GA
[all...]
H A DDAGCombiner.cpp3230 if (GlobalAddressSDNode *GA = dyn_cast<GlobalAddressSDNode>(N0))
3231 if (!LegalOperations && TLI.isOffsetFoldingLegal(GA)) {
3233 if (N1C && GA->getOpcode() == ISD::GlobalAddress)
3234 return DAG.getGlobalAddress(GA->getGlobal(), SDLoc(N1C), VT,
3235 GA->getOffset() -
3239 if (GA->getGlobal() == GB->getGlobal())
3240 return DAG.getConstant((uint64_t)GA->getOffset() - GB->getOffset(),
/freebsd-11-stable/contrib/llvm-project/clang/lib/CodeGen/
H A DCodeGenModule.cpp358 if (auto GA = dyn_cast<llvm::GlobalIndirectSymbol>(AliaseeGV)) {
359 if (GA->isInterposable()) {
361 << GV->getName() << GA->getName() << IsIFunc;
363 GA->getIndirectSymbol(), Alias->getType());
3051 auto *GA = llvm::GlobalAlias::create( local
3053 GA->setLinkage(llvm::Function::WeakODRLinkage);
3054 SetCommonAttributes(GD, GA);
4526 auto *GA = local
4530 if (GA->getAliasee() == Entry) {
4544 GA
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Analysis/
H A DBasicAliasAnalysis.cpp477 if (const GlobalAlias *GA = dyn_cast<GlobalAlias>(V)) {
478 if (!GA->isInterposable()) {
479 V = GA->getAliasee();
/freebsd-11-stable/contrib/llvm-project/llvm/tools/llvm-extract/
H A Dllvm-extract.cpp155 GlobalAlias *GA = M->getNamedAlias(ExtractAliases[i]); local
156 if (!GA) {
161 GVs.insert(GA);
173 for (Module::alias_iterator GA = M->alias_begin(), E = M->alias_end();
174 GA != E; GA++) {
175 if (RegEx.match(GA->getName())) {
176 GVs.insert(&*GA);
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DVPlanSLP.cpp215 auto *GA = IAI.getInterleaveGroup(A);
218 return GA && GB && GA == GB && GA->getIndex(A) + 1 == GB->getIndex(B);
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DNameAnonGlobals.cpp77 for (auto &GA : M.aliases())
78 RenameIfNeed(GA);
H A DModuleUtils.cpp232 for (GlobalAlias &GA : M.aliases())
233 if (Comdat *C = GA.getComdat()) {
269 for (auto &GA : M->aliases())
270 AddGlobal(GA);
H A DFunctionImportUtils.cpp302 for (GlobalAlias &GA : M.aliases())
303 processGlobalForThinLTO(GA);
H A DCloneModule.cpp107 auto *GA = GlobalAlias::create(I->getValueType(),
110 GA->copyAttributesFrom(&*I);
111 VMap[&*I] = GA;
178 GlobalAlias *GA = cast<GlobalAlias>(VMap[&*I]);
180 GA->setAliasee(MapValue(C, VMap));
H A DCanonicalizeAliases.cpp43 if (auto *GA = dyn_cast<GlobalAlias>(C)) {
44 auto *NewAliasee = canonicalizeAlias(GA->getAliasee(), Changed);
45 if (NewAliasee != GA->getAliasee()) {
46 GA->setAliasee(NewAliasee);
65 for (auto &GA : M.aliases())
66 canonicalizeAlias(&GA, Changed);
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DSROA.cpp1647 } else if (GlobalAlias *GA = dyn_cast<GlobalAlias>(Ptr)) {
1648 if (GA->isInterposable())
1650 Ptr = GA->getAliasee();
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DPGOInstrumentation.cpp704 if (GlobalAlias *GA = dyn_cast<GlobalAlias>(CM.second)) {
706 assert(dyn_cast<Function>(GA->getAliasee()->stripPointerCasts()) == &F);
707 std::string OrigGAName = GA->getName().str();
708 GA->setName(Twine(GA->getName() + "." + Twine(FunctionHash)));
709 GlobalAlias::create(GlobalValue::WeakAnyLinkage, OrigGAName, GA);
1457 for (GlobalAlias &GA : M.aliases())
1458 if (Comdat *C = GA.getComdat())
1459 ComdatMembers.insert(std::make_pair(C, &GA));
H A DDataFlowSanitizer.cpp195 /// If GA aliases a function, the alias's name is matched as a function name
197 bool isIn(const GlobalAlias &GA, StringRef Category) const { argument
198 if (isIn(*GA.getParent(), Category))
201 if (isa<FunctionType>(GA.getValueType()))
202 return SCL->inSection("dataflow", "fun", GA.getName(), Category);
204 return SCL->inSection("dataflow", "global", GA.getName(), Category) ||
205 SCL->inSection("dataflow", "type", GetGlobalTypeString(GA),
363 bool isInstrumented(const GlobalAlias *GA);
611 bool DataFlowSanitizer::isInstrumented(const GlobalAlias *GA) { argument
612 return !ABIList.isIn(*GA, "uninstrumente
803 GlobalAlias *GA = &*i; local
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineLoadStoreAlloca.cpp791 if (GlobalAlias *GA = dyn_cast<GlobalAlias>(P)) {
792 if (GA->isInterposable())
794 Worklist.push_back(GA->getAliasee());

Completed in 587 milliseconds

1234