Lines Matching refs:GA
812 const GlobalAddressSDNode *GA) const { in isOffsetFoldingLegal()
814 const GlobalValue *GV = GA->getGlobal(); in isOffsetFoldingLegal()
815 return isa<Function>(GV) ? false : TargetLowering::isOffsetFoldingLegal(GA); in isOffsetFoldingLegal()
1160 GlobalAddressSDNode *GA = cast<GlobalAddressSDNode>(Callee); in LowerCall() local
1161 Callee = DAG.getTargetGlobalAddress(GA->getGlobal(), DL, in LowerCall()
1163 GA->getOffset()); in LowerCall()
1446 if (const GlobalAddressSDNode *GA = dyn_cast<GlobalAddressSDNode>(Op)) in IsWebAssemblyGlobal() local
1447 return WebAssembly::isWasmVarAddressSpace(GA->getAddressSpace()); in IsWebAssemblyGlobal()
1462 const GlobalAddressSDNode *GA = dyn_cast<GlobalAddressSDNode>(Op); in IsWebAssemblyTable() local
1463 if (GA && WebAssembly::isWasmVarAddressSpace(GA->getAddressSpace())) { in IsWebAssemblyTable()
1464 const GlobalValue *Value = GA->getGlobal(); in IsWebAssemblyTable()
1489 GlobalAddressSDNode *&GA, in MatchTableForLowering() argument
1509 GA = cast<GlobalAddressSDNode>(Base); in MatchTableForLowering()
1512 GA = dyn_cast<GlobalAddressSDNode>(Base->getOperand(0)); in MatchTableForLowering()
1513 if (GA) { in MatchTableForLowering()
1516 assert(GA->getNumValues() == 1); in MatchTableForLowering()
1520 GA = dyn_cast<GlobalAddressSDNode>(V->getOperand(1)); in MatchTableForLowering()
1522 if (V->getOpcode() != ISD::ADD || V->getNumOperands() != 2 || !GA) in MatchTableForLowering()
1548 GlobalAddressSDNode *GA; in LowerStore() local
1550 if (!MatchTableForLowering(DAG, DL, Base, GA, Idx)) in LowerStore()
1555 SDValue TableSetOps[] = {SN->getChain(), SDValue(GA, 0), Idx, Value}; in LowerStore()
1599 GlobalAddressSDNode *GA; in LowerLoad() local
1602 if (!MatchTableForLowering(DAG, DL, Base, GA, Idx)) in LowerLoad()
1607 SDValue TableGetOps[] = {LN->getChain(), SDValue(GA, 0), Idx}; in LowerLoad()
1714 const auto *GA = cast<GlobalAddressSDNode>(Op); in LowerGlobalTLSAddress() local
1721 const GlobalValue *GV = GA->getGlobal(); in LowerGlobalTLSAddress()
1751 GV, DL, PtrVT, GA->getOffset(), WebAssemblyII::MO_TLS_BASE_REL); in LowerGlobalTLSAddress()
1762 DAG.getTargetGlobalAddress(GA->getGlobal(), DL, VT, in LowerGlobalTLSAddress()
1763 GA->getOffset(), in LowerGlobalTLSAddress()
1770 const auto *GA = cast<GlobalAddressSDNode>(Op); in LowerGlobalAddress() local
1772 assert(GA->getTargetFlags() == 0 && in LowerGlobalAddress()
1774 if (!WebAssembly::isValidAddressSpace(GA->getAddressSpace())) in LowerGlobalAddress()
1779 const GlobalValue *GV = GA->getGlobal(); in LowerGlobalAddress()
1797 DAG.getTargetGlobalAddress(GA->getGlobal(), DL, VT, GA->getOffset(), in LowerGlobalAddress()
1806 DAG.getTargetGlobalAddress(GA->getGlobal(), DL, VT, in LowerGlobalAddress()
1807 GA->getOffset(), OperandFlags)); in LowerGlobalAddress()