[Polly] Refactoring IsInnermostParallel() in ISL to take the C++ wrapper object. NFC
authorKevin Zhou <qwertycowmoo@gmail.com>
Fri, 26 Feb 2021 23:12:32 +0000 (17:12 -0600)
committerMichael Kruse <llvm-project@meinersbur.de>
Sat, 27 Feb 2021 00:41:44 +0000 (18:41 -0600)
commit1ab2753d4c2fcb4221a9171b11d513cb759842ac
tree25fca6bc840ed9cf40bb7fd75f8fd319182520dc
parent47c5576d7d586624c38f76bd3168e05f6ef1f838
[Polly] Refactoring IsInnermostParallel() in ISL to take the C++ wrapper object. NFC

Currently, the IslAst library is a C library that would be incompatible with the rest of the LLVM because LLVM is written in C++.
I took one function, IsInnermostParallel(), and refactored it so that it would take the C++ wrapper object instead of using reference counters with the C ISL library. As well, all the references that use IsInnermostParallel() will use manage_copy() since they are still expecting the C object.

Reviewed By: Meinersbur

Differential Revision: https://reviews.llvm.org/D97425
polly/include/polly/CodeGen/IslAst.h
polly/lib/CodeGen/IslAst.cpp
polly/lib/CodeGen/IslNodeBuilder.cpp