[llvm] [Xtensa] Lowering FRAMEADDR/RETURNADDR operations. (PR #107363)
Andrei Safronov via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 9 15:00:07 PDT 2024
================
@@ -594,6 +594,26 @@ SDValue XtensaTargetLowering::LowerSELECT_CC(SDValue Op,
FalseValue, TargetCC);
}
+SDValue XtensaTargetLowering::LowerRETURNADDR(SDValue Op,
+ SelectionDAG &DAG) const {
+ // check the depth
+ // TODO: xtensa-gcc can handle this, by navigating through the stack, we
+ // should be able to do this too
+ assert((cast<ConstantSDNode>(Op.getOperand(0))->getZExtValue() == 0) &&
----------------
andreisfr wrote:
Fixed. I hope that I understand correctly your comment,
https://github.com/llvm/llvm-project/pull/107363
More information about the llvm-commits
mailing list