[clang] [llvm] [ARM] Add support for Windows SEH (PR #184953)
Trung Nguyen via cfe-commits
cfe-commits at lists.llvm.org
Sat Mar 14 08:08:16 PDT 2026
================
@@ -3838,6 +3838,23 @@ ARMTargetLowering::LowerINTRINSIC_WO_CHAIN(SDValue Op, SelectionDAG &DAG,
SDLoc dl(Op);
switch (IntNo) {
default: return SDValue(); // Don't custom lower most intrinsics.
+ case Intrinsic::localaddress: {
+ const MachineFunction &MF = DAG.getMachineFunction();
+ const TargetRegisterInfo *RegInfo = Subtarget->getRegisterInfo();
+ unsigned Reg = RegInfo->getFrameRegister(MF);
----------------
trungnt2910 wrote:
Done. I implemented `getLocalAddressRegister` that handles the different cases, similar to other architectures.
https://github.com/llvm/llvm-project/pull/184953
More information about the cfe-commits
mailing list