summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ObjectYAML/WasmYAML.cpp
diff options
context:
space:
mode:
authorThomas Lively <tlively@google.com>2019-01-08 06:25:55 +0000
committerThomas Lively <tlively@google.com>2019-01-08 06:25:55 +0000
commit6a87ddac9a056c9a7b75eb630908aa356d8a1028 (patch)
tree23cc1254457e558cb7c6ea53d8601517fea5c34d /llvm/lib/ObjectYAML/WasmYAML.cpp
parent616ed1722111a3dcb5d339fe6ce8a5f6d69bdc80 (diff)
downloadbcm5719-llvm-6a87ddac9a056c9a7b75eb630908aa356d8a1028.tar.gz
bcm5719-llvm-6a87ddac9a056c9a7b75eb630908aa356d8a1028.zip
[WebAssembly] Massive instruction renaming
Summary: An automated renaming of all the instructions listed at https://github.com/WebAssembly/spec/issues/884#issuecomment-426433329 as well as some similarly-named identifiers. Reviewers: aheejin, dschuff, aardappel Subscribers: sbc100, jgravelle-google, eraman, sunfish, jfb, llvm-commits Differential Revision: https://reviews.llvm.org/D56338 llvm-svn: 350609
Diffstat (limited to 'llvm/lib/ObjectYAML/WasmYAML.cpp')
-rw-r--r--llvm/lib/ObjectYAML/WasmYAML.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/ObjectYAML/WasmYAML.cpp b/llvm/lib/ObjectYAML/WasmYAML.cpp
index b97803340c0..47bf853e0d3 100644
--- a/llvm/lib/ObjectYAML/WasmYAML.cpp
+++ b/llvm/lib/ObjectYAML/WasmYAML.cpp
@@ -377,7 +377,7 @@ void MappingTraits<wasm::WasmInitExpr>::mapping(IO &IO,
case wasm::WASM_OPCODE_F64_CONST:
IO.mapRequired("Value", Expr.Value.Float64);
break;
- case wasm::WASM_OPCODE_GET_GLOBAL:
+ case wasm::WASM_OPCODE_GLOBAL_GET:
IO.mapRequired("Index", Expr.Value.Global);
break;
}
@@ -491,7 +491,7 @@ void ScalarEnumerationTraits<WasmYAML::ValueType>::enumeration(
ECase(F32);
ECase(F64);
ECase(V128);
- ECase(ANYFUNC);
+ ECase(FUNCREF);
ECase(FUNC);
ECase(NORESULT);
#undef ECase
@@ -516,14 +516,14 @@ void ScalarEnumerationTraits<WasmYAML::Opcode>::enumeration(
ECase(I64_CONST);
ECase(F64_CONST);
ECase(F32_CONST);
- ECase(GET_GLOBAL);
+ ECase(GLOBAL_GET);
#undef ECase
}
void ScalarEnumerationTraits<WasmYAML::TableType>::enumeration(
IO &IO, WasmYAML::TableType &Type) {
#define ECase(X) IO.enumCase(Type, #X, wasm::WASM_TYPE_##X);
- ECase(ANYFUNC);
+ ECase(FUNCREF);
#undef ECase
}
OpenPOWER on IntegriCloud