summaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/SelectionDAGISel.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-09-21 20:37:12 +0000
committerChris Lattner <sabre@nondot.org>2010-09-21 20:37:12 +0000
commit78d3af47f532d67611e7d625b505fa832d713a26 (patch)
tree9db036afafb1ecbc65b8165043f3c8a3cc802df5 /include/llvm/CodeGen/SelectionDAGISel.h
parent52a261b3c1391c5fec399ddeb3fc6ee9541e8790 (diff)
downloadllvm-78d3af47f532d67611e7d625b505fa832d713a26.tar.gz
llvm-78d3af47f532d67611e7d625b505fa832d713a26.tar.bz2
llvm-78d3af47f532d67611e7d625b505fa832d713a26.tar.xz
just like they can opt into getting the root of the pattern being
matched, allow ComplexPatterns to opt into getting the parent node of the operand being matched. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114472 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/SelectionDAGISel.h')
-rw-r--r--include/llvm/CodeGen/SelectionDAGISel.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/SelectionDAGISel.h b/include/llvm/CodeGen/SelectionDAGISel.h
index 51895a6f6a..9ce8fc4da2 100644
--- a/include/llvm/CodeGen/SelectionDAGISel.h
+++ b/include/llvm/CodeGen/SelectionDAGISel.h
@@ -254,7 +254,8 @@ public:
return 0;
}
- virtual bool CheckComplexPattern(SDNode *Root, SDValue N, unsigned PatternNo,
+ virtual bool CheckComplexPattern(SDNode *Root, SDNode *Parent, SDValue N,
+ unsigned PatternNo,
SmallVectorImpl<SDValue> &Result) {
assert(0 && "Tblgen should generate the implementation of this!");
return false;