[llvm] r252656 - [WebAssembly] Remove special cases for things that are no longer special. NFC.
Dan Gohman via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 10 13:48:21 PST 2015
Author: djg
Date: Tue Nov 10 15:48:21 2015
New Revision: 252656
URL: http://llvm.org/viewvc/llvm-project?rev=252656&view=rev
Log:
[WebAssembly] Remove special cases for things that are no longer special. NFC.
Modified:
llvm/trunk/lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp
Modified: llvm/trunk/lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp?rev=252656&r1=252655&r2=252656&view=diff
==============================================================================
--- llvm/trunk/lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp (original)
+++ llvm/trunk/lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp Tue Nov 10 15:48:21 2015
@@ -271,28 +271,12 @@ void WebAssemblyAsmPrinter::EmitInstruct
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::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;
More information about the llvm-commits
mailing list