mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-03 13:31:05 +00:00
Added the target-independent part of TableGen data.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6403 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ffb55cdae7
commit
01c1638123
26
lib/Target/Target.td
Normal file
26
lib/Target/Target.td
Normal file
@ -0,0 +1,26 @@
|
||||
//===- Sparc.td - Target Description for Sparc V9 Target --------*- C++ -*-===//
|
||||
// vim:ft=cpp
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// Target-Independent interface
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
class Register {
|
||||
string Namespace = "";
|
||||
int Size;
|
||||
}
|
||||
|
||||
class Instruction {
|
||||
string Name; // The opcode string for this instruction
|
||||
string Namespace = "";
|
||||
|
||||
list<Register> Uses = []; // Default to using no non-operand registers
|
||||
list<Register> Defs = []; // Default to modifying no non-operand registers
|
||||
|
||||
// These bits capture information about the high-level semantics of the
|
||||
// instruction.
|
||||
bit isReturn = 0; // Is this instruction a return instruction?
|
||||
bit isBranch = 0; // Is this instruction a branch instruction?
|
||||
bit isCall = 0; // Is this instruction a call instruction?
|
||||
}
|
Loading…
Reference in New Issue
Block a user