Files
llvm-6502/lib/Target/WebAssembly/WebAssemblyInstrInteger.td
T
JF Bastien 7bfd515593 WebAssembly: basic instructions todo, and basic register info.
Summary:
This code is based on AArch64 for modern backend good practice, and NVPTX for
virtual ISA concerns.

Reviewers: sunfish

Subscribers: aemerson, llvm-commits, jfb

Differential Revision: http://reviews.llvm.org/D11070

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241923 91177308-0d34-0410-b5e6-96231b3b80d8
2015-07-10 18:23:10 +00:00

44 lines
1.6 KiB
TableGen

// WebAssemblyInstrInteger.td-WebAssembly Integer codegen -------*- tablegen -*-
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
///
/// \file
/// \brief WebAssembly Integer operand code-gen constructs.
///
//===----------------------------------------------------------------------===//
/*
* TODO(jfb): Add the following for 32-bit and 64-bit.
*
* int32.add: signed-less addition
* int32.sub: signed-less subtraction
* int32.mul: signed-less multiplication (lower 32-bits)
* int32.sdiv: signed division
* int32.udiv: unsigned division
* int32.srem: signed remainder
* int32.urem: unsigned remainder
* int32.and: signed-less logical and
* int32.ior: signed-less inclusive or
* int32.xor: signed-less exclusive or
* int32.shl: signed-less shift left
* int32.shr: signed-less logical shift right
* int32.sar: signed-less arithmetic shift right
* int32.eq: signed-less compare equal
* int32.slt: signed less than
* int32.sle: signed less than or equal
* int32.ult: unsigned less than
* int32.ule: unsigned less than or equal
* int32.sgt: signed greater than
* int32.sge: signed greater than or equal
* int32.ugt: unsigned greater than
* int32.uge: unsigned greater than or equal
* int32.clz: count leading zeroes (defined for all values, including zero)
* int32.ctz: count trailing zeroes (defined for all values, including zero)
* int32.popcnt: count number of ones
*/