[llvm-commits] CVS: llvm/include/llvm/Target/TargetLowering.h

Chris Lattner lattner at cs.uiuc.edu
Sun Mar 5 15:49:31 PST 2006



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






More information about the llvm-commits mailing list