tensorflow / mlir

"Multi-Level Intermediate Representation" Compiler Infrastructure
1.74k stars 260 forks source link

Allow dialect to create friendly names for block arguments #214

Closed jbruestle closed 4 years ago

jbruestle commented 5 years ago

Provide a callback similar to getOpResultName but for block arguments.

googlebot commented 5 years ago

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

:memo: Please visit https://cla.developers.google.com/ to sign.

Once you've signed (or fixed any issues), please reply here with @googlebot I signed it! and we'll verify it.


What to do if you already signed the CLA

Individual signers
Corporate signers

ℹ️ Googlers: Go here for more info.

River707 commented 5 years ago

Please make sure that you sign the CLA.

googlebot commented 5 years ago

CLAs look good, thanks!

ℹ️ Googlers: Go here for more info.

jbruestle commented 5 years ago

Thanks for the comments, think I fixed everything.

flaub commented 4 years ago

I'm in the process of updating this PR. Part of the challenge is that every time we move LLVM/MLIR forward, we also need to move our BUILD files forward (we also use bazel). How does your team manage this? Is the process to have a separate cmake environment and then transition to bazel? Vice versa?

River707 commented 4 years ago

Internally at google we maintain both separately+simultaneously. If it helps your team, the TensorFlow copy of the MLIR BUILD files can be viewed at: https://github.com/tensorflow/tensorflow/blob/master/third_party/mlir/BUILD

flaub commented 4 years ago

Yep we use that one (and the autogenerated LLVM one), thanks! (but we have to make some tweaks to both of them so that they work outside of tensorflow :) )

jbruestle commented 4 years ago

Updated version submitted by @flaub, closing.