[llvm] [Xtensa] Lowering FRAMEADDR/RETURNADDR operations. (PR #107363)
Andrei Safronov via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 13 10:10:31 PDT 2024
================
@@ -594,6 +594,27 @@ SDValue XtensaTargetLowering::LowerSELECT_CC(SDValue Op,
FalseValue, TargetCC);
}
+SDValue XtensaTargetLowering::LowerRETURNADDR(SDValue Op,
+ SelectionDAG &DAG) const {
+ // This nodes represent llvm.returnaddress on the DAG.
+ // It takes one operand, the index of the return address to return.
+ // An index of zero corresponds to the current function's return address.
+ // An index of one to the parent's return address, and so on.
+ // Depths > 0 not supported yet!
+ if (Op.getConstantOperandVal(0) > 0)
+ return SDValue();
----------------
andreisfr wrote:
Fixed
https://github.com/llvm/llvm-project/pull/107363
More information about the llvm-commits
mailing list