llvm-project
llvm-project copied to clipboard
[DAG] Added m_AnyBinOp and m_c_AnyBinOp in SDPatternMatch.h
Fixes: #84940
:white_check_mark: With the latest revision this PR passed the Python code formatter.
:white_check_mark: With the latest revision this PR passed the C/C++ code formatter.
The rationale behind going for a separate class here is:
We would need to introduce PredFuncT in the template which would need changes in the template. This would necessitate changes in a large number of functions that use BinaryOpc_match.
Ah really sorry for the delayed response. My OS crashed. Apparently there were some dependency issues with my libstdc++ that happened recently due to which I was unable to run the tests locally. I pushed the changes to get insights from you. I did a clean build of my ubuntu22.04LTS and restored my system applications. Will push the changes today.