[llvm] [Xtensa] Lower GlobalAddress/BlockAddress/JumpTable (PR #95256)

Andrei Safronov via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 17 16:07:17 PDT 2024


================
@@ -519,6 +537,87 @@ SDValue XtensaTargetLowering::LowerImmediate(SDValue Op,
   return Op;
 }
 
+SDValue XtensaTargetLowering::LowerGlobalAddress(SDValue Op,
+                                                 SelectionDAG &DAG) const {
+  const GlobalAddressSDNode *G = cast<GlobalAddressSDNode>(Op);
+  SDLoc DL(Op);
+  auto PtrVt = getPointerTy(DAG.getDataLayout());
+  const GlobalValue *GV = G->getGlobal();
+
+  // Check Op SDNode users
----------------
andreisfr wrote:

Thank you very much for comment! I removed redundant code.

https://github.com/llvm/llvm-project/pull/95256


More information about the llvm-commits mailing list