This refactors some code dealing with setting Wasm symbol types.
Some of the code dealing with types was moved from
WebAssemblyUtilities to WebAssemblyTypeUtilities.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Event Timeline
@sbc100 Address review comments from D115749.
Make WasmSymbolSetType lower case to match what other functions in
WebAssemblyTypeUtilities do.
Also, this function is shared between MCInstLower and AsmPrinter,
therefore it needs to be in a common Utilities file. Since this
deals with types, it makes sense for that file to be
WebAssemblyTypeUtilities.
Is this change completely non-functional? If so can you add NFC to the title?
llvm/lib/Target/WebAssembly/WebAssemblyFastISel.cpp | ||
---|---|---|
20 | Are both WebAssemblyUtilities.h and WebAssemblyTypeUtilities.h needed here? |
llvm/lib/Target/WebAssembly/WebAssemblyFastISel.cpp | ||
---|---|---|
20 | Yes, WebAssemblyUtilities.h is still needed for getOrCreateFunctionTableSymbol. |
Added [NFC] to the title, rebased on main and rechecked that tests are fine.
@sbc100 yes, this is NFC. Happy for this to land?
LGTM % comment about emitTableType
llvm/lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp | ||
---|---|---|
201 | Does removing this block not make this a functional change? Are there no tests that depend on emitTableType here? |
llvm/lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp | ||
---|---|---|
201 |
Does removing this block not make this a functional change? Are there no tests that depend on emitTableType here?