Make the type of shift amount i32 in order to reduce the number of shift
[oota-llvm.git] / lib / Target / MSP430 / MSP430.td
index 89313ab59c1b5c6e8c81347d1ac37b8247d7118a..5cc5e6e3d7c9e927a7266ea311ca04cf3f4ee682 100644 (file)
@@ -48,7 +48,12 @@ include "MSP430CallingConv.td"
 
 include "MSP430InstrInfo.td"
 
-def MSP430InstrInfo : InstrInfo {} 
+def MSP430InstrInfo : InstrInfo;
+
+def MSP430InstPrinter : AsmWriter {
+  string AsmWriterClassName  = "InstPrinter";
+  bit isMCAsmWriter = 1;
+}
 
 //===----------------------------------------------------------------------===//
 // Target Declaration
@@ -56,5 +61,6 @@ def MSP430InstrInfo : InstrInfo {}
 
 def MSP430 : Target {
   let InstructionSet = MSP430InstrInfo;
+  let AssemblyWriters = [MSP430InstPrinter];
 }