[llvm] 1a69f02 - [WebAssembly][NFC] Replace WASM with standard Wasm
Thomas Lively via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 11 12:28:10 PDT 2020
Author: Thomas Lively
Date: 2020-08-11T12:27:59-07:00
New Revision: 1a69f02397ae31a484f640aa2d22dbede9f9e3f1
URL: https://github.com/llvm/llvm-project/commit/1a69f02397ae31a484f640aa2d22dbede9f9e3f1
DIFF: https://github.com/llvm/llvm-project/commit/1a69f02397ae31a484f640aa2d22dbede9f9e3f1.diff
LOG: [WebAssembly][NFC] Replace WASM with standard Wasm
The officially specified abbreviation for WebAssembly is Wasm and the
spec explicitly calls out WASM as being an incorrect spelling. This
patch fixes a few comments and error messages to use the
spec-compliant abbreviation.
Differential Revision: https://reviews.llvm.org/D85764
Added:
Modified:
llvm/lib/Target/WebAssembly/AsmParser/WebAssemblyAsmParser.cpp
llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/WebAssembly/AsmParser/WebAssemblyAsmParser.cpp b/llvm/lib/Target/WebAssembly/AsmParser/WebAssemblyAsmParser.cpp
index e29d85d7588d..2fb7ea63e0c5 100644
--- a/llvm/lib/Target/WebAssembly/AsmParser/WebAssemblyAsmParser.cpp
+++ b/llvm/lib/Target/WebAssembly/AsmParser/WebAssemblyAsmParser.cpp
@@ -38,7 +38,7 @@ using namespace llvm;
namespace {
/// WebAssemblyOperand - Instances of this class represent the operands in a
-/// parsed WASM machine instruction.
+/// parsed Wasm machine instruction.
struct WebAssemblyOperand : public MCParsedAsmOperand {
enum KindTy { Token, Integer, Float, Symbol, BrList } Kind;
@@ -868,7 +868,7 @@ class WebAssemblyAsmParser final : public MCTargetAsmParser {
}
case Match_MissingFeature:
return Parser.Error(
- IDLoc, "instruction requires a WASM feature not currently enabled");
+ IDLoc, "instruction requires a Wasm feature not currently enabled");
case Match_MnemonicFail:
return Parser.Error(IDLoc, "invalid instruction");
case Match_NearMisses:
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
index 5d377e8aa9bd..822b64d3de10 100644
--- a/llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
+++ b/llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
@@ -274,7 +274,7 @@ WebAssemblyTargetLowering::WebAssemblyTargetLowering(
setLibcallName(RTLIB::FPROUND_F32_F16, "__truncsfhf2");
// Define the emscripten name for return address helper.
- // TODO: when implementing other WASM backends, make this generic or only do
+ // TODO: when implementing other Wasm backends, make this generic or only do
// this on emscripten depending on what they end up doing.
setLibcallName(RTLIB::RETURN_ADDRESS, "emscripten_return_address");
More information about the llvm-commits
mailing list