Skip to content

Constify backends#1549

Merged
aquynh merged 19 commits intocapstone-engine:nextfrom
rth7680:constify
Dec 23, 2019
Merged

Constify backends#1549
aquynh merged 19 commits intocapstone-engine:nextfrom
rth7680:constify

Conversation

@rth7680
Copy link
Copy Markdown
Contributor

@rth7680 rth7680 commented Oct 15, 2019

Reduces the size of .data from 1.6MB to 48 bytes.

Unlike the previous pull (#1502), I've made no attempts to regenerate the files that are apparently generated from suite/synctools/, although I still include changes to those scripts. In most cases doing that regeneration from LLVM 7.0.1 produced non-working output.

Remove two conditionals separating identical bits of code.
Add "const" markup to MCRegisterDesc and MCRegisterClass.

Signed-off-by: Richard Henderson <rth@twiddle.net>
In this case, do not actively strip const.

Signed-off-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Richard Henderson <rth@twiddle.net>
The Mips backend has not been regenerated from LLVM recently,
and there are more fixups required than I'd like.  Just apply
the fixes to the tables by hand for now.

Signed-off-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Richard Henderson <rth@twiddle.net>
The mapping of system register to indexes is easy to
generate read-only.  Since we know the indexes are
between 0 and 31, use uint8_t instead of unsigned.

Signed-off-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Richard Henderson <rth@twiddle.net>
@XVilka
Copy link
Copy Markdown
Contributor

XVilka commented Dec 20, 2019

Any updates on this one?

@aquynh aquynh merged commit aaffb38 into capstone-engine:next Dec 23, 2019
@aquynh
Copy link
Copy Markdown
Collaborator

aquynh commented Dec 23, 2019

merged, thanks!

@rth7680 rth7680 deleted the constify branch December 28, 2019 02:09
@riptl riptl mentioned this pull request Jul 22, 2022
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants