[LV] Drop verbose check-prefix from partial-reduce-incomplete-chains.ll.
There's only a single RUN line in the test, use the more compact default CHECK.
[mlir][python] Fix ir.Value type to not break other types (#167930)
Change in https://github.com/llvm/llvm-project/pull/166148 caused breaks
for some other types.
Specifically this error was seen in a downstream project
```
_ods_ir.OpOperandList[_ods_ir.IntegerType]:
TypeError: type 'iree.compiler._mlir_libs._mlir.ir.OpOperandList' is not subscriptable
```
This PR tries to make those changes not affect the other types
---------
Signed-off-by: Nirvedh Meshram <nirvedh at gmail.com>
[mlir][NVVM] Make sure barrier reduction attr can roundtrip (#167958)
The IR was not able to be roundtrip through mlir-opt. Update the
assembly format and add round trip tests.
```
mlir-opt mlir/test/Target/LLVMIR/nvvm/barrier.mlir | mlir-opt
<stdin>:6:5: error: cannot name an operation with no results
%0 = nvvm.barrier <and> %arg2 -> i32
```
[sanitizer_common] Add darwin-specific MemoryRangeIsAvailable (#167797)
The fixes a TOCTOU bug in the code that initializes shadow memory in
ASAN:
https://github.com/llvm/llvm-project/blob/4b05581bae0e3432cfa514788418fb2fc2144904/compiler-rt/lib/asan/asan_shadow_setup.cpp#L66-L91
1. During initialization, we call `FindDynamicShadowStart` to search the
memory mapping for enough space to dynamically allocate shadow memory.
2. We call `MemoryRangeIsAvailable(shadow_start, kHighShadowEnd);`,
which goes into `MemoryMappingLayout`.
3. We actually map the shadow with `ReserveShadowMemoryRange`.
In step 2, `MemoryMappingLayout` makes various allocations using the
internal allocator. This can cause the allocator to map more memory! In
some cases, this can actually allocate memory that overlaps with the
shadow region returned by` FindDynamicShadowStart` in step 1. This is
not actually fatal, but it memory corruption; MAP_FIXED is allowed to
[18 lines not shown]
[scudo] Always zero on linux even if the memory cannot be released. (#167788)
If a caller has locked memory, then the madvise call will fail. In that
case, zero the memory so that we don't return non-zeroed memory for
calloc calls since we thought the memory had been released.
[LV] Add early-exit tests, where deref assumes are not in preheader.
Test case for vectorizing std::find_if with
builtin_assume_dereferenceable. Currently not vectorized.
https://godbolt.org/z/6jbsd4EjT
[CMake][unittests] Teach export_executable_symbols about ALIAS targets (#167932)
DynamicLibraryTests has a workaround for AIX that calls
export_executable_symbols after add_llvm_unittest, instead of just
passing the `EXPORT_SYMBOLS` switch. At this point, the
default_gtest(_main) libraries is added to the linked library set.
However, default_gtest(_main) are ALIAS libraries. This PR replaces the
ALIAS libraries with the ALIASED_TARGET before passing it to
extract_symbols.py.
Fixes failure of the clang-ppc64-aix buildbot after #164794.
[clang-tidy] Update google todo checker with style guide changes. (#165565)
The [Google style guide] now allows (and recommends) writing TODOs with
the following format:
```cpp
// TODO: bug reference - details about what needs to be done.
```
With this change the checker accepts the new style and suggests in in
the fix-it hint. The previous style is still accepted.
[Google style guide]:
https://google.github.io/styleguide/cppguide.html#TODO_Comments
[PILC][NFC] Run UTC on `good-prototype.ll` (#167741)
Prefacing PR #167742 (stacked above this), noticed that running UTC made some changes unrelated to the aforementioned PR. Factoring them out here.