[llvm-dev] How can I fix the error "Inline asm not supported [...] because we don't have an asm parser for this target"?

Tim Northover via llvm-dev llvm-dev at lists.llvm.org
Thu Feb 25 11:11:27 PST 2021


Hi Alex,

On Thu, 25 Feb 2021 at 17:46, Alex Susu via llvm-dev
<llvm-dev at lists.llvm.org> wrote:
>       <<LLVM ERROR: Inline asm not supported by this streamer because we don't have an asm
> parser for this target"

If you can't parse assembly at all, you should probably be running in
no-integrated-asm mode. That should cause the function to terminate
early after just printing the raw text in this case.

Exactly how to get into that mode varies by tool. In Clang it's
-fno-integrated-as. llc accepts -no-integrated-as, and I have no idea
about any others. It looks like TargetOptions::DisableIntegratedAS
might allow you to hard-code it for your backend, but I've never been
in a position to try that.

Cheers.

Tim.


More information about the llvm-dev mailing list