[llvm] [LoongArch] Use getSignedConstant() where necessary (PR #117172)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 21 08:33:11 PST 2024
================
@@ -1787,6 +1787,12 @@ SDValue SelectionDAG::getIntPtrConstant(uint64_t Val, const SDLoc &DL,
return getConstant(Val, DL, TLI->getPointerTy(getDataLayout()), isTarget);
}
+SDValue SelectionDAG::getSignedIntPtrConstant(int64_t Val, const SDLoc &DL,
+ bool isTarget) {
+ return getSignedConstant(Val, DL, TLI->getPointerTy(getDataLayout()),
+ isTarget);
+}
----------------
arsenm wrote:
Missing address space to getPointerTy
https://github.com/llvm/llvm-project/pull/117172
More information about the llvm-commits
mailing list