Open ASVIEST opened 6 months ago
I think it's less error-prone for users to use a DSL for inline assembly. Not to say that analysis isn't worthwhile, but it doesn't solve the problem that inline ASM is painful to write even if we're aware of the whole syntax.
GCC and Clang inline assembly even differ for memory operands.
See an example DSL here:
And example usage for bigint multiplication:
I still don't get the fixation on the inline assembler when not even "hello world" works with NIR. Priorities from outer space, sorry.
Abstract
Analyse GCC extended asm and generate errors for an invalid code, also change some .
Motivation
Asm stategment does not allow you to write correct code (in some cases), so you have to resort to tricks
Description
It must be implemented when NIR will more complete.
Code Examples
It will possible to support via analysis.
Backwards Compatibility
No response