[PATCH] D121654: [RISCV] Ensure PseudoLA* can be hoisted

Jessica Clarke via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 17 16:26:36 PDT 2022


jrtc27 added a comment.

Does:

  diff --git a/llvm/lib/Target/RISCV/RISCVISelLowering.cpp b/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
  index f52965dab759..299c68da7c2f 100644
  --- a/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
  +++ b/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
  @@ -3769,6 +3769,15 @@ SDValue RISCVTargetLowering::getAddr(NodeTy *N, SelectionDAG &DAG,
     }
   }
   
  +template SDValue RISCVTargetLowering::getAddr<GlobalAddressSDNode>(
  +    GlobalAddressSDNode *N, SelectionDAG &DAG, bool IsLocal) const;
  +template SDValue RISCVTargetLowering::getAddr<BlockAddressSDNode>(
  +    BlockAddressSDNode *N, SelectionDAG &DAG, bool IsLocal) const;
  +template SDValue RISCVTargetLowering::getAddr<ConstantPoolSDNode>(
  +    ConstantPoolSDNode *N, SelectionDAG &DAG, bool IsLocal) const;
  +template SDValue RISCVTargetLowering::getAddr<JumpTableSDNode>(
  +    JumpTableSDNode *N, SelectionDAG &DAG, bool IsLocal) const;
  +
   SDValue RISCVTargetLowering::lowerGlobalAddress(SDValue Op,
                                                   SelectionDAG &DAG) const {
     SDLoc DL(Op);

fix the error for you?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D121654/new/

https://reviews.llvm.org/D121654



More information about the llvm-commits mailing list