This is an archive of the discontinued LLVM Phabricator instance.

[NFC] [Polly] Move PPCGCodeGeneration::pollyBuildAstExprForStmt to isl++.
ClosedPublic

Authored by bollu on Jul 23 2017, 3:01 AM.

Event Timeline

bollu created this revision.Jul 23 2017, 3:01 AM
bollu added a comment.Jul 23 2017, 3:17 AM

@grosser I'm not entirely sure if this makes it cleaner due to the interfacing with PPCG. I think it's easier to see the transforms that are going on.

grosser edited edge metadata.Jul 23 2017, 1:30 PM

I am fine with moving more to the C++ interface.

Two comments;

  1. Use isl::manage(isl_ast_build_copy(Build)) and drop the "Build.release()" line
  1. I really dislike the Build_ variable name. Can you call it Build_C?
grosser accepted this revision.Jul 23 2017, 8:59 PM

LGTM, assuming you agree with the previously mentioned changes.

This revision is now accepted and ready to land.Jul 23 2017, 8:59 PM
bollu updated this revision to Diff 107856.Jul 24 2017, 1:29 AM
  • [NFC wrt patch] copy the isl_multi_pw_aff object rather than acquiring and releasing it.

Nice. That looks better.

bollu closed this revision.Jul 24 2017, 1:43 AM

This was closed by r308869. Unfortunately, the commit was mis-labeled, and wound up closing D35771