[all-commits] [llvm/llvm-project] b7df37: [Polly] Refactoring astScheduleDimIsParallel to ta...

Michael Kruse via All-commits all-commits at lists.llvm.org
Mon Mar 15 10:09:18 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b7df372cdcd88b39ed3a05b5c8f09e879400f688
      https://github.com/llvm/llvm-project/commit/b7df372cdcd88b39ed3a05b5c8f09e879400f688
  Author: Kevin Zhou <qwertycowmoo at gmail.com>
  Date:   2021-03-15 (Mon, 15 Mar 2021)

  Changed paths:
    M polly/lib/CodeGen/IslAst.cpp

  Log Message:
  -----------
  [Polly] Refactoring astScheduleDimIsParallel to take the C++ wrapper object. NFC

Polly currently needs to be slowly refactor to use the C++ wrapper objects to handle the reference counters automatically.
I took the function of astScheduleDimIsParallel and refactored it so that it uses the C++ wrapper function as much as possible.

There are some problems with the IsParallel since it expects the C objects, so the C++ wrapper functions must be .release() and .get() first before they are able to be used with IsParallel.

When checking the ReductionDependencies Parallelism with the Build's Schedule, I opted to keep the union map as a C object rather than a C++ object. Eventually, changes will need to be made to IsParallel to refactor it to the C++ wrappers. When this is done, this function will also need to be slightly refactored to not use the C object.

Reviewed By: Meinersbur

Differential Revision: https://reviews.llvm.org/D98455




More information about the All-commits mailing list