diff options
author | Chris Lattner <sabre@nondot.org> | 2010-09-21 20:37:12 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-09-21 20:37:12 +0000 |
commit | 78d3af47f532d67611e7d625b505fa832d713a26 (patch) | |
tree | 9db036afafb1ecbc65b8165043f3c8a3cc802df5 /include/llvm/CodeGen/SelectionDAGISel.h | |
parent | 52a261b3c1391c5fec399ddeb3fc6ee9541e8790 (diff) | |
download | external_llvm-78d3af47f532d67611e7d625b505fa832d713a26.zip external_llvm-78d3af47f532d67611e7d625b505fa832d713a26.tar.gz external_llvm-78d3af47f532d67611e7d625b505fa832d713a26.tar.bz2 |
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.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/SelectionDAGISel.h b/include/llvm/CodeGen/SelectionDAGISel.h index 51895a6..9ce8fc4 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; |