summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-03-05 23:49:19 +0000
committerChris Lattner <sabre@nondot.org>2006-03-05 23:49:19 +0000
commit1566d18fe2f469839fd91fdbfd65e1d239aa99e6 (patch)
treeadb47365c95d47c8224c70c7764cd81b8c06c882 /include
parent65e9f3969bec427f14d41f0aaef12ed689ca85b5 (diff)
downloadexternal_llvm-1566d18fe2f469839fd91fdbfd65e1d239aa99e6.zip
external_llvm-1566d18fe2f469839fd91fdbfd65e1d239aa99e6.tar.gz
external_llvm-1566d18fe2f469839fd91fdbfd65e1d239aa99e6.tar.bz2
custom lowered nodes are legal too
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26561 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Target/TargetLowering.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/Target/TargetLowering.h b/include/llvm/Target/TargetLowering.h
index 9a058e5..29c7fb2 100644
--- a/include/llvm/Target/TargetLowering.h
+++ b/include/llvm/Target/TargetLowering.h
@@ -192,7 +192,8 @@ public:
/// 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