Repository navigation
Merge main -> google - #3700
Merged
Merged
Merge main -> google#3700
Conversation
hanhanW
commented
Nov 3, 2020
Contributor
- e694d95 Add a IREE_ENABLE_CCACHE build option. OFF by default. (Add a IREE_ENABLE_CCACHE build option. OFF by default. #3689)
- 9648a48 Add support for creating benchmark functions that have multiple blocks. (Add support for creating benchmark functions that have multiple blocks. #3697)
- c12ba3b Put sanitizer flags in global CMake variables, affecting all code (Put sanitizer flags in global CMake variables, affecting all code #3693)
- db5ad2b Resize that vector before writing to it. (Resize that vector before writing to it. #3694)
- 1901a9f Build simplification making sanitizer builds work on android: (Build simplification making sanitizer builds work on android #3688)
- f7e2f0a Forward some more CMake variables to host builds. (Forward some more CMake variables to host builds. #3690)
- 746eeec Merge google -> main (Merge google -> main #3687)
- af73a4c Add an "executable tutorial" going from zero to tracy on android (Add an "executable tutorial" going from zero to tracy on android #3664)
- 32067b8 Add script to symbolize android stacks, particularly for use with Asan. (Add script to symbolize android stacks, particularly for use with Asan. #3673)
…n. (iree-org#3673) * Add script to symbolize android stacks, particularly for use with Asan. You just paste some ASan output to a text file and feed that to stdin to this script. It will then pull the files out of the device and symbolize them on the host using the NDK-provided host build of llvm-symbolizer. Because it just pulls files from the device, there's no need to point this script to any particular obj dir. It's easy to use. ANDROID_NDK=~/android-ndk-r21d ~/android-symbolize.sh < ~/a Discussion of alternatives: android/ndk#753 * rename
…e-org#3664) * Add an "executable tutorial" going from zero to tracy on android benchmark. The idea is that a beginner would run it a few times, then it'd be mostly useful as a tutorial to read steps from, not intended to be used long term as a black box tool. Just try running it. It'll complain a bit that you need to define environment variables IREE_ROOT and ANDROID_NDK, and once you do that, it should figure all the rest, including building tracy UI, going through the whole steps of compiling an android benchmark workload, running that in tracy, setting up port forwarding, and finally telling you to run a command to run your (newly built) tracy UI to connect and show the trace.
* 2963dff Merge main -> google * 6e3ab35 Synchronize submodules * 5ce8467 Synchronize submodules with LLVM at llvm/llvm-project@9bb9b737c557
* Forward some more CMake variables to host builds. This makes it so that these variables (which control sanitizers, use of ccache, and cmake verbosity) apply also to the host build, not just to the target build. * address Scott's review comment
…rg#3688) 1. Don't add IREE_DEFAULT_COPTS to CMake's global compiler flags. This was apparently a recent change not fitting with the intended purpose of IREE_DEFAULT_COPTS, which is to populate the default copts of iree_cc_* bazel-ish rules. In effect, this means that IREE_DEFAULT_COPTS only affects IREE code and not e.g. third_party code. I needed to change this now because when building with ASan, this caused third_party/llvm-project to build with -fsanitize=address, however on Android we also need to pass a linker flag for that to work, and that wan't being passed to the LLVM build, making it fail. 2. Don't check for compiler support for -fsanitize= flags. If the user explicitly enables a sanitizer, just use it. This only makes a difference to the error message, should not make any change to what succeeds/fails. Again, I needed to make that change now because of the need to pass a linker flag on Android, which there was no way to pass to this CMake compiler-support-check macro.
…ee-org#3693) * Put sanitizer flags in global CMake variables, affecting all code My concern with putting it only on IREE code and not say on LLVM code is that we might end up getting inconsistent results, particularly with symbols used in both IREE and non-IREE code --- ODR violations, concern here is both with the undefined-behavior aspect of that and with the more down to earch concern that we want consistent sanitizer behavior in say std::string code that might be used on both sides. * Move the sanitizers stuff out of iree_copts.cmake now that it's no longer about IREE_*_COPTS.
…s. (iree-org#3697) If there are multiple blocks in a function, all the blocks should be cloned with the correct mapping.
* Add a IREE_ENABLE_CCACHE build option. OFF by default. If enabled, this will try to detect ccache, and if found, CMake will be told to use it. No-op if ccache is not found. * move down to the right section
Merged
hanhanW
added a commit
that referenced
this pull request
Nov 3, 2020
* 766a35d Synchronize submodules * db94774 Integrate LLVM at llvm/llvm-project@701456b52355 * bbd58ca Merge pull request #3700 from hanhanW:main-to-google * 1874d14 Add license to scripts * 59f5d81 Synchronize submodules * 7b5514e Synchronize submodules with LLVM at llvm/llvm-project@756f59784108 * 35e5a67 Synchronize submodules * 304b26c Integrate LLVM at llvm/llvm-project@756f59784108 * b6f2c46 Synchronize submodules * 9ba0807 Integrate LLVM at llvm/llvm-project@72ddd559b8aa
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.