benisxdxd wrote:
@smithp35
I have looked more into the `__chkstk` and stuff which is implemented in
`ARMISelLowering.cpp`.
Also in `Thumb1FrameLowering.cpp` R4 is used as a temporary in
```
// mov r4, sp
// lsrs r4, r4, #NrBitsToZero
// lsls r4, r4, #NrBitsToZero
// mov sp,
benisxdxd wrote:
@smithp35 The system i'm interacting with has a GCC plugin that uses r4 and r5
for custom software mitigations against exploitation.
I need a way to inform LLVM to keep this registers untouched so I don't
interfere and cause a corruption.
By reserving those registers I will be
https://github.com/smithp35 commented:
There was a previous attempt at doing something similar with more global
registers r6-r11 in https://reviews.llvm.org/D68862 based on
http://lists.llvm.org/pipermail/llvm-dev/2018-December/128706.html
This got reverted, and unfortunately didn't get picked
benisxdxd wrote:
Ping
https://github.com/llvm/llvm-project/pull/89849
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/benisxdxd updated
https://github.com/llvm/llvm-project/pull/89849
>From c2485d9c97fd4f01aa68ecfea0fe92c5d039d66f Mon Sep 17 00:00:00 2001
From: benisxdxd <164242179+benisx...@users.noreply.github.com>
Date: Wed, 24 Apr 2024 03:00:16 +0300
Subject: [PATCH 1/2] Support reserving
llvmbot wrote:
@llvm/pr-subscribers-clang
Author: None (benisxdxd)
Changes
I accidentally closed [this
pr](https://github.com/llvm/llvm-project/pull/88981) when trying to fix a
conflict that arose.
---
Full diff: https://github.com/llvm/llvm-project/pull/89849.diff
6 Files Affected:
github-actions[bot] wrote:
Thank you for submitting a Pull Request (PR) to the LLVM Project!
This PR will be automatically labeled and the relevant teams will be
notified.
If you wish to, you can add reviewers by using the "Reviewers" section on this
page.
If this is not working for you, it
https://github.com/benisxdxd created
https://github.com/llvm/llvm-project/pull/89849
I accidentally closed [this
pr](https://github.com/llvm/llvm-project/pull/88981) when trying to fix a
conflict that arose.
>From c2485d9c97fd4f01aa68ecfea0fe92c5d039d66f Mon Sep 17 00:00:00 2001
From: benis