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

Alex Susu via llvm-dev llvm-dev at lists.llvm.org
Fri Feb 26 22:52:13 PST 2021


   Hello.
     Tim, thank you very much for pointing me to the no-integrated-asm mode of LLVM. I 
used llc -no-integrated-as ... and it fixed my problem completely.
     I remain indebted for your answer.

   Best regards,
     Alex


On 2/25/2021 9:11 PM, Tim Northover wrote:
> 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