Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

LLVM changes related to BPFv2 #34250

Open
9 of 10 tasks
pgarg66 opened this issue Nov 28, 2023 · 0 comments
Open
9 of 10 tasks

LLVM changes related to BPFv2 #34250

pgarg66 opened this issue Nov 28, 2023 · 0 comments
Assignees

Comments

@pgarg66
Copy link
Contributor

pgarg66 commented Nov 28, 2023

Problem

This issue is split off from #20323
Need LLVM changes corresponding to the following items

Proposed Solution

@LucasSte LucasSte self-assigned this Dec 11, 2023
nvjle pushed a commit to anza-xyz/llvm-project that referenced this issue Dec 12, 2023
This PR replaces sub r11, imm by add r11, -imm and is the equivalent of solana-labs/rbpf#488 for the SBF target in LLVM.

This is the first task in solana-labs/solana#34250
nvjle pushed a commit to anza-xyz/llvm-project that referenced this issue Dec 16, 2023
Following the alterations made in solana-labs/rbpf#489, this PR removes the neg instructions and changes the semantics of sub when one of the operands is an immediate.

sub r1, 2 now means r1 = 2 - r1, instead of r1 = r1 - 2.
neg r1 is represented as r1 = 0  - r1.

This is the second task in solana-labs/solana#34250.
nvjle pushed a commit to anza-xyz/llvm-project that referenced this issue Dec 21, 2023
This PR addressed two more items in solana-labs/solana#34250. 
It removes the little endian byte swap instructions (solana-labs/rbpf#493) 
and the input buffers related instructions (solana-labs/rbpf#251).
@Lichtso Lichtso mentioned this issue Dec 22, 2023
18 tasks
LucasSte added a commit to LucasSte/llvm-project that referenced this issue Jan 31, 2024
This PR replaces sub r11, imm by add r11, -imm and is the equivalent of solana-labs/rbpf#488 for the SBF target in LLVM.

This is the first task in solana-labs/solana#34250
LucasSte added a commit to LucasSte/llvm-project that referenced this issue Jan 31, 2024
Following the alterations made in solana-labs/rbpf#489, this PR removes the neg instructions and changes the semantics of sub when one of the operands is an immediate.

sub r1, 2 now means r1 = 2 - r1, instead of r1 = r1 - 2.
neg r1 is represented as r1 = 0  - r1.

This is the second task in solana-labs/solana#34250.
LucasSte added a commit to LucasSte/llvm-project that referenced this issue Jan 31, 2024
This PR addressed two more items in solana-labs/solana#34250.
It removes the little endian byte swap instructions (solana-labs/rbpf#493)
and the input buffers related instructions (solana-labs/rbpf#251).
LucasSte added a commit to anza-xyz/llvm-project that referenced this issue Feb 16, 2024
This PR replaces sub r11, imm by add r11, -imm and is the equivalent of solana-labs/rbpf#488 for the SBF target in LLVM.

This is the first task in solana-labs/solana#34250
LucasSte added a commit to anza-xyz/llvm-project that referenced this issue Feb 16, 2024
Following the alterations made in solana-labs/rbpf#489, this PR removes the neg instructions and changes the semantics of sub when one of the operands is an immediate.

sub r1, 2 now means r1 = 2 - r1, instead of r1 = r1 - 2.
neg r1 is represented as r1 = 0  - r1.

This is the second task in solana-labs/solana#34250.
LucasSte added a commit to anza-xyz/llvm-project that referenced this issue Feb 16, 2024
This PR addressed two more items in solana-labs/solana#34250.
It removes the little endian byte swap instructions (solana-labs/rbpf#493)
and the input buffers related instructions (solana-labs/rbpf#251).
LucasSte added a commit to LucasSte/llvm-project that referenced this issue Jun 28, 2024
This PR replaces sub r11, imm by add r11, -imm and is the equivalent of solana-labs/rbpf#488 for the SBF target in LLVM.

This is the first task in solana-labs/solana#34250
LucasSte added a commit to LucasSte/llvm-project that referenced this issue Jun 28, 2024
Following the alterations made in solana-labs/rbpf#489, this PR removes the neg instructions and changes the semantics of sub when one of the operands is an immediate.

sub r1, 2 now means r1 = 2 - r1, instead of r1 = r1 - 2.
neg r1 is represented as r1 = 0  - r1.

This is the second task in solana-labs/solana#34250.
LucasSte added a commit to LucasSte/llvm-project that referenced this issue Jun 28, 2024
This PR addressed two more items in solana-labs/solana#34250.
It removes the little endian byte swap instructions (solana-labs/rbpf#493)
and the input buffers related instructions (solana-labs/rbpf#251).
LucasSte added a commit to anza-xyz/llvm-project that referenced this issue Aug 19, 2024
This PR replaces sub r11, imm by add r11, -imm and is the equivalent of solana-labs/rbpf#488 for the SBF target in LLVM.

This is the first task in solana-labs/solana#34250
LucasSte added a commit to anza-xyz/llvm-project that referenced this issue Aug 19, 2024
Following the alterations made in solana-labs/rbpf#489, this PR removes the neg instructions and changes the semantics of sub when one of the operands is an immediate.

sub r1, 2 now means r1 = 2 - r1, instead of r1 = r1 - 2.
neg r1 is represented as r1 = 0  - r1.

This is the second task in solana-labs/solana#34250.
LucasSte added a commit to anza-xyz/llvm-project that referenced this issue Aug 19, 2024
This PR addressed two more items in solana-labs/solana#34250.
It removes the little endian byte swap instructions (solana-labs/rbpf#493)
and the input buffers related instructions (solana-labs/rbpf#251).
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants