projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
126c4d9
)
[WebAssembly] Remove special cases for things that are no longer special. NFC.
author
Dan Gohman
<dan433584@gmail.com>
Tue, 10 Nov 2015 21:48:21 +0000
(21:48 +0000)
committer
Dan Gohman
<dan433584@gmail.com>
Tue, 10 Nov 2015 21:48:21 +0000
(21:48 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@252656
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp
b/lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp
index 7034892de8eb835c11bd072fd3f2d39ebfe25b92..6eb9ae6c5268950bf35f0676ee1c072e89b793ee 100644
(file)
--- a/
lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp
+++ b/
lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp
@@
-271,28
+271,12
@@
void WebAssemblyAsmPrinter::EmitInstruction(const MachineInstr *MI) {
case TargetOpcode::COPY:
OS << "get_local push, " << regToString(MI->getOperand(1));
break;
case TargetOpcode::COPY:
OS << "get_local push, " << regToString(MI->getOperand(1));
break;
- case WebAssembly::GLOBAL:
- // TODO: wasm64
- OS << "i32.const push, " << toSymbol(MI->getOperand(1).getGlobal()->getName());
- break;
case WebAssembly::ARGUMENT_I32:
case WebAssembly::ARGUMENT_I64:
case WebAssembly::ARGUMENT_F32:
case WebAssembly::ARGUMENT_F64:
OS << "get_local push, " << argToString(MI->getOperand(1));
break;
case WebAssembly::ARGUMENT_I32:
case WebAssembly::ARGUMENT_I64:
case WebAssembly::ARGUMENT_F32:
case WebAssembly::ARGUMENT_F64:
OS << "get_local push, " << argToString(MI->getOperand(1));
break;
- case WebAssembly::Const_I32:
- OS << "i32.const push, " << MI->getOperand(1).getImm();
- break;
- case WebAssembly::Const_I64:
- OS << "i64.const push, " << MI->getOperand(1).getImm();
- break;
- case WebAssembly::Const_F32:
- OS << "f32.const push, " << toString(MI->getOperand(1).getFPImm()->getValueAPF());
- break;
- case WebAssembly::Const_F64:
- OS << "f64.const push, " << toString(MI->getOperand(1).getFPImm()->getValueAPF());
- break;
default: {
OS << OpcodeName(TII, MI);
bool NeedComma = false;
default: {
OS << OpcodeName(TII, MI);
bool NeedComma = false;