Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
What is the benefit of doing this vs. just rejecting/ignoring the name? Do we need to support the weird cases?
Also, what about using a string as the escape mechanism? We already do this for other things.
%"a .^x" : i32
Who should own the complexity (and the definition of what a valid asm name is): the core, or all clients?
Also, what about using a string as the escape mechanism?
I'm open to this. This this what Swift does, where you can have an identifier x, or you can have an identifier x that allows a very generous grammar within it.
In this case, I don't think we want to promise to dialects that the textual IR will persist an arbitrary grammar. I think it is better to keep the asm format simple, and force dialects who care about this stuff (none of them today, and almost none of them in the future) to own the autorenaming complexity.
Please use /// for top-level comments.