s-barannikov wrote: Re: encoding of asm strings (or whatever the proper term is) from a perspective of a target with non-8-bit bytes
Using literal encoding for asm strings would break the assembler, as it expects the source file in an encoding understandable by the host, not by the target. I accept that we may need to translate an asm string to some other encoding, but that should *not* be literal encoding. Furthermore, since *evaluated* strings literal imply *literal encoding*, I would also make them *unevaluated*. This would, however, preclude constexpr usage, hexadecimal/octal escape sequences, and everything else *evaluated* strings allow. Why? Because `\x1234` escape sequence is single byte on a target with 16-bit bytes (and will be accepted by StringLiteralParser), but it is invalid on a host with 8-bit bytes --> cannot be emitted into assembly file. But this is irrelevant to this PR. https://github.com/llvm/llvm-project/pull/169803 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
