Skip to content

Merge main -> google - #3748

Merged
copybara-service[bot] merged 8 commits into
iree-org:googlefrom
hanhanW:main-to-google
Nov 6, 2020
Merged

copybara-service[bot] merged 8 commits into
iree-org:googlefrom
hanhanW:main-to-google

Conversation

@hanhanW

@hanhanW hanhanW commented Nov 6, 2020

Copy link
Copy Markdown
Contributor

hanhanW and others added 8 commits November 5, 2020 11:38
* 1cd3a18 Merge pull request iree-org#3733 from hanhanW:main-to-google
* 4809567 Synchronize submodules
* 28f10b1 Synchronize submodules with LLVM at llvm/llvm-project@2f84b59a4cf9
* db2a762 Synchronize submodules
* cd8ce40 Integrate LLVM at llvm/llvm-project@2f84b59a4cf9
* 40991d4 Synchronize submodules
* 34db1a3 Integrate LLVM at llvm/llvm-project@b715fa330dfa
* 6f307b4 Synchronize submodules
* 90bc6ab Integrate LLVM at llvm/llvm-project@5b29d26b21bb
* 5b5f8d6 fix type of makeInitializedUnrankedDescriptor
This allow to generate efficient code when FillOp is tiled with an op
getting vectorized like MatMulOp.
- Tile and distribute linalg.batch_matmul
- Tile and vectorize linalg.matmul & linalg.batch_matmul
- Remove MatMulVectorization
- Add llvm flag driven kernel dispatch with default parameters getting
lowest latency on mobile_bert benchmarks:

```
------------------------------------------------------------------------------------
Benchmark                                          Time             CPU
Iterations
------------------------------------------------------------------------------------
BM_serving_default/process_time/real_time        923 ms          918 ms
```
MLIR allows one to declare pass (pipeline) options directly on the
pass (pipeline) class. While convenient, it can be problematic when
we need to organize the pass into a pipeline into some other bigger
pipeline. It ends up that we need to duplicate the same command-line
option three times: in the pass itself for testing with the pass
directly, in the pass pipeline in order to test via the pass pipeline,
and finally in the pass pipeline caller again for constructing the
pass pipeline.

This commit consolidates the above into one place where we define
a single copy of the command-line option and use helper functions
to read it wherever it's needed.

Fixes iree-org#3640
There are a couple of investigation TODOs in here that stem from
iree-translate differing from mlir-translate. They are not feasible
without reworking the tool. Instead I added additional documenation on
the differences for future readers and deleted the TODOs.

We could still reconsider the expanded role of iree-translate and reduce
it to a tool more akin to mlir-translate, creating a separate
iree-compiler tool to run full compilation passes without taking
translations to perform as command line flags. But that's larger in
scope than these TODOs.

Closes https://github.com/google/iree/issues//2958
…rg#3740)

This commit moves command-line option interaction into pass
registration and makes passes themselves cleaner.
@google-cla google-cla Bot added the cla: yes label Nov 6, 2020
@copybara-service
copybara-service Bot merged commit 6c7480f into iree-org:google Nov 6, 2020
@hanhanW hanhanW mentioned this pull request Nov 6, 2020
hanhanW added a commit that referenced this pull request Nov 6, 2020
* 6c7480f Merge pull request #3748 from hanhanW:main-to-google
* 33feef8 Synchronize submodules
* 3a5aa4b Integrate LLVM at llvm/llvm-project@0e76a9bc5834
* fffd51b Synchronize submodules
* cb35da0 Synchronize submodules with LLVM at llvm/llvm-project@4d79ef814aed
* b2dccf8 Synchronize submodules
* 51a71d5 Integrate LLVM at llvm/llvm-project@4d79ef814aed
* 9981b21 Synchronize submodules
* 2e314d6 Integrate LLVM at llvm/llvm-project@624d3fe0e41e
* a31df46 Synchronize submodules
* 684380b Integrate LLVM at llvm/llvm-project@930cf1cb9fdb
* 7065592 Synchronize submodules
* 29f8406 Integrate LLVM at llvm/llvm-project@bb43a0cd4adc
* f7f5631 Synchronize submodules
* 50d0209 Integrate LLVM at llvm/llvm-project@2eadbc86142b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants