mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-04 05:31:51 +00:00
This WebAssembly backend is just a skeleton at this time and is not yet functional. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241022 91177308-0d34-0410-b5e6-96231b3b80d8
29 lines
906 B
TableGen
29 lines
906 B
TableGen
// WebAssemblyInstrFormats.td - WebAssembly Instruction Formats -*- tblgen -*-//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// WebAssembly instruction format definitions.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
// WebAssembly Instruction Format
|
|
class WebAssemblyInst<string cstr> : Instruction {
|
|
field bits<0> Inst; // Instruction encoding.
|
|
let Namespace = "WebAssembly";
|
|
let Pattern = [];
|
|
let Constraints = cstr;
|
|
}
|
|
|
|
// Normal instructions
|
|
class I<dag oops, dag iops, list<dag> pattern, string cstr = "">
|
|
: WebAssemblyInst<cstr> {
|
|
dag OutOperandList = oops;
|
|
dag InOperandList = iops;
|
|
let Pattern = pattern;
|
|
}
|