[Sparc] Add initial implementation of MC Code emitter for sparc.
[oota-llvm.git] / lib / Target / Sparc / SparcInstrInfo.td
index d3c8e4ad7885d528a0d5d1e705ed80af938c2c42..43d9bc953144e8f1374bd00abde516b4868962e9 100644 (file)
@@ -100,8 +100,13 @@ def MEMri : Operand<iPTR> {
 def TLSSym : Operand<iPTR>;
 
 // Branch targets have OtherVT type.
-def brtarget : Operand<OtherVT>;
-def calltarget : Operand<i32>;
+def brtarget : Operand<OtherVT> {
+  let EncoderMethod = "getBranchTargetOpValue";
+}
+
+def calltarget : Operand<i32> {
+  let EncoderMethod = "getCallTargetOpValue";
+}
 
 // Operand for printing out a condition code.
 let PrintMethod = "printCCOperand" in