From 52d2f14b3ed0910dcfc85a6731e3e039a54e002c Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 11 Aug 2004 01:53:34 +0000 Subject: [PATCH] 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 --- lib/Target/Target.td | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/lib/Target/Target.td b/lib/Target/Target.td index e111f85d0f0..7158d4b0ba4 100644 --- a/lib/Target/Target.td +++ b/lib/Target/Target.td @@ -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 { + int NumMIOperands = 1; + ValueType Type = ty; + string PrintMethod = "printOperand"; +} + +def i8imm : Operand; +def i16imm : Operand; +def i32imm : Operand; +def i64imm : Operand; //===----------------------------------------------------------------------===// // Target - This class contains the "global" target information