Skip to content

Commit f7f479b

Browse files
authored
[RISCV] Use templates to reduce duplicated code for assembler operand predicates. (#133351)
We already had a template isUImm function. This patch adds isSImm, isShiftedUImm, and 2 helpers that take a predicate function to validate the immediate with. I'm using a template for the predicate function.
1 parent a983c3b commit f7f479b

File tree

1 file changed

+105
-327
lines changed

1 file changed

+105
-327
lines changed

0 commit comments

Comments
 (0)