Changes in directory llvm/include/llvm/Target:

TargetLowering.h updated: 1.58 -> 1.59
---
Log message:

custom lowered nodes are legal too


---
Diffs of the changes:  (+2 -1)

 TargetLowering.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)


Index: llvm/include/llvm/Target/TargetLowering.h
diff -u llvm/include/llvm/Target/TargetLowering.h:1.58 
llvm/include/llvm/Target/TargetLowering.h:1.59
--- llvm/include/llvm/Target/TargetLowering.h:1.58      Fri Mar  3 00:58:59 2006
+++ llvm/include/llvm/Target/TargetLowering.h   Sun Mar  5 17:49:19 2006
@@ -192,7 +192,8 @@
   /// isOperationLegal - Return true if the specified operation is legal on 
this
   /// target.
   bool isOperationLegal(unsigned Op, MVT::ValueType VT) const {
-    return getOperationAction(Op, VT) == Legal;
+    return getOperationAction(Op, VT) == Legal ||
+           getOperationAction(Op, VT) == Custom;
   }
 
   /// getTypeToPromoteTo - If the action for this operation is to promote, this



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to