WebAssembly's tablegen instructions have the names WebAssembly expects, but by LLVM convention they're uppercase and suffixed with their type after an underscore. Leave the C++ code that way, but print outt he names WebAssembly expects (lowercase, no type). We could teach tablegen to do this later, maybe by using !cast<string>(node) in the .td files.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp | ||
---|---|---|
85 ↗ | (On Diff #31390) | Please avoid std::tolower since it has locale-specific behavior, and compiler output should not be locale-specific. |
111 ↗ | (On Diff #31390) | We should really just teach the generic operand printing code below how to handle immediate operands, and then even the ARGUMENT opcodes can just go through the generic path. |
lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp | ||
---|---|---|
85 ↗ | (On Diff #31390) | FYI we have such a function in LLVM, ascii_tolower, but it would need to move to a header file. |