mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Fill out immediate operand classes, add a new Operand class
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15642 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5dbef2207e
commit
52d2f14b3e
@ -151,10 +151,20 @@ class InstrInfo {
|
||||
/// list for an instruction. This should be used like this:
|
||||
/// (ops R32:$dst, R32:$src) or something similar.
|
||||
def ops;
|
||||
def i8imm;
|
||||
def i16imm;
|
||||
def i32imm;
|
||||
def i64imm;
|
||||
|
||||
/// Operand Types - These provide the built-in operand types that may be used
|
||||
/// by a target. Targets can optionally provide their own operand types as
|
||||
/// needed, though this should not be needed for RISC targets.
|
||||
class Operand<ValueType ty> {
|
||||
int NumMIOperands = 1;
|
||||
ValueType Type = ty;
|
||||
string PrintMethod = "printOperand";
|
||||
}
|
||||
|
||||
def i8imm : Operand<i8>;
|
||||
def i16imm : Operand<i16>;
|
||||
def i32imm : Operand<i32>;
|
||||
def i64imm : Operand<i64>;
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// Target - This class contains the "global" target information
|
||||
|
Loading…
Reference in New Issue
Block a user