'How to write an LLVM backend for stack machine?
When I'm trying to build an LLVM backend without defining RegisterClass instances in TableGen file, it throws the following error:
error:No 'RegisterClass' subclasses defined
How to define a stack machine target for LLVM (i.e. that doesn't use registers)?
Solution 1:[1]
While I agree with the admonition to just don't, you should take a look at the WebAssembly backend.
https://github.com/llvm/llvm-project/tree/main/llvm/lib/Target/WebAssembly
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | leo60228 |
