Skip to content

Commit 81f83a8

Browse files
authored
[RISCV][NFC] Parsed Immediates are Expressions (llvm#159888)
I find it very confusing that we have two different kinds of "immediates": - MCOperands in the backend that are `isImm()` which can only be numbers - RISCVOperands in the parser that are `isImm()` which can contain expressions This change aims to make it clearer that in the AsmParser, we are dealing with expressions, rather than just numbers. Unfortunately, `isImm` comes from the `MCParsedAsmOperand`, which is needed for Microsoft Inline Asm, so we cannot fully get rid of it.
1 parent 87a4e1c commit 81f83a8

File tree

1 file changed

+113
-110
lines changed

1 file changed

+113
-110
lines changed

0 commit comments

Comments
 (0)