[all-commits] [llvm/llvm-project] 900786: [compiler-rt][tests] Fix env command not found err...

Justin Bogner via All-commits all-commits at lists.llvm.org
Mon Aug 26 17:42:08 PDT 2024


  Branch: refs/heads/users/bogner/sprdirectx-add-resource-handling-to-the-dxil-pretty-printer
  Home:   https://github.com/llvm/llvm-project
  Commit: 9007864f72d07ee26d710fc10b1f918c628affa0
      https://github.com/llvm/llvm-project/commit/9007864f72d07ee26d710fc10b1f918c628affa0
  Author: Harini0924 <79345568+Harini0924 at users.noreply.github.com>
  Date:   2024-08-26 (Mon, 26 Aug 2024)

  Changed paths:
    M compiler-rt/test/fuzzer/out-of-process-fuzz.test

  Log Message:
  -----------
  [compiler-rt][tests] Fix env command not found errors with lit internal shell (#105879)

This patch addresses an issue where the `LIBFUZZER_OOP_TARGET`
environment variable was causing "command not found" errors in the
`out-of-process-fuzz` test when running with the
`LIT_USE_INTERNAL_SHELL=1 ninja check-compiler-rt` command.
Error displayed:
```
# .---command stderr------------
# | 'LIBFUZZER_OOP_TARGET=./oop-target > /dev/null 2>&1 ': command not found
# `-----------------------------
# error: command failed with exit status: 127
```
The lit internal shell was not correctly interpreting the command
redirection and environment variable assignment in a single line,
leading to the failure.

In this patch the test was updated to use `env` for setting the
`LIBFUZZER_OOP_TARGET` environment variable. This change ensures that
the command is properly recognized and executed within the internal
shell environment. The output of the fuzzing process was captured in a
temporary file instead of redirecting it directly to `/dev/null`,
allowing for more controlled output management. Finally, the results
from running `oop-target` on all corpus files are now appended to ensure
that every output is thoroughly checked by FileCheck. The `RUN` line
sets the `LIBFUZZER_OOP_TARGET` using `env`, runs the `oop-fuzzer` with
specific options and uses the seed files from `OOP_CORPUS/seed` to
initiate the fuzzing process.

This change is relevant for enabling the lit internal shell by default,
as outlined in [[RFC] Enabling the Lit Internal Shell by
Default](https://discourse.llvm.org/t/rfc-enabling-the-lit-internal-shell-by-default/80179)


  Commit: 7f04a8ad131881b5a58b97c8191733ed42d18e20
      https://github.com/llvm/llvm-project/commit/7f04a8ad131881b5a58b97c8191733ed42d18e20
  Author: Longsheng Mou <moulongsheng at huawei.com>
  Date:   2024-08-27 (Tue, 27 Aug 2024)

  Changed paths:
    M mlir/lib/Dialect/Bufferization/Transforms/FuncBufferizableOpInterfaceImpl.cpp
    M mlir/test/Dialect/Bufferization/Transforms/one-shot-module-bufferize.mlir

  Log Message:
  -----------
  [mlir][func][bufferization] Fix cast incompatible when bufferize callOp (#105929)

Handle caller/callee type mismatch using `castOrReallocMemRefValue`
instead of just a `CastOp`. The method insert a reallocation + copy if
it cannot be statically guaranteed that a direct cast would be valid.
Fix #105916.


  Commit: 32acf1e95b42614ef76cd98cdbc1b8aec0f0a830
      https://github.com/llvm/llvm-project/commit/32acf1e95b42614ef76cd98cdbc1b8aec0f0a830
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2024-08-26 (Mon, 26 Aug 2024)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
    M llvm/test/CodeGen/RISCV/fastcc-without-f-reg.ll

  Log Message:
  -----------
  [RISCV] Use XLenVT as LocVT for f16/f32/f164 with Zfinx in CC_RISCV_FastCC.

This is need to make sure we create FMV_X_W/FMV_X_H/bitcast nodes
that match up with what return lowering will do.


  Commit: c3776c11c26e5c0e27b772e6694e6c76f73ac9e8
      https://github.com/llvm/llvm-project/commit/c3776c11c26e5c0e27b772e6694e6c76f73ac9e8
  Author: Aiden Grossman <aidengrossman at google.com>
  Date:   2024-08-26 (Mon, 26 Aug 2024)

  Changed paths:
    A llvm/test/CodeGen/MLRegAlloc/lit.local.cfg
    A llvm/test/Transforms/Inline/ML/lit.local.cfg

  Log Message:
  -----------
  Revert "[MLGO] Remove Python <3.8 from unsupported config (#106132)"

This reverts commit a959d70eb5b6d47c0b32eb34fc409e50c01d722d.

This was causing bot failures.

https://lab.llvm.org/buildbot/#/builders/174/builds/3975


  Commit: 58eec851cb47b298d47ad25ff7911150aed65564
      https://github.com/llvm/llvm-project/commit/58eec851cb47b298d47ad25ff7911150aed65564
  Author: Justin Bogner <mail at justinbogner.com>
  Date:   2024-08-26 (Mon, 26 Aug 2024)

  Changed paths:
    M llvm/lib/Target/DirectX/DXILPrettyPrinter.cpp
    M llvm/lib/Target/DirectX/DXILResource.cpp
    M llvm/lib/Target/DirectX/DXILResource.h
    M llvm/lib/Target/DirectX/DXILTranslateMetadata.cpp

  Log Message:
  -----------
  [DirectX] Move resource logic into PrettyPrinter and TranslateMetadata. NFC

Move the module level logic for resources into the pretty printer and translate
metadata passes rather than embedding them in the DXILResource helper. This
will make it easier to migrate towards the target extension type based approach
to resources.

Pull Request: https://github.com/llvm/llvm-project/pull/104446


  Commit: 4b3f1473bc25c089c52fd2ba90883bcc52d69330
      https://github.com/llvm/llvm-project/commit/4b3f1473bc25c089c52fd2ba90883bcc52d69330
  Author: Chris Apple <cja-private at pm.me>
  Date:   2024-08-26 (Mon, 26 Aug 2024)

  Changed paths:
    M compiler-rt/lib/rtsan/tests/rtsan_test_interceptors.cpp

  Log Message:
  -----------
  [rtsan][compiler-rt] Add missing calloc unit test (#106159)


  Commit: bcde45bae80cddeee37e1cda43ca62b980cffe9f
      https://github.com/llvm/llvm-project/commit/bcde45bae80cddeee37e1cda43ca62b980cffe9f
  Author: Rahul Joshi <rjoshi at nvidia.com>
  Date:   2024-08-26 (Mon, 26 Aug 2024)

  Changed paths:
    M llvm/include/llvm/TableGen/Record.h
    M llvm/lib/TableGen/DetailedRecordsBackend.cpp
    M llvm/lib/TableGen/JSONBackend.cpp

  Log Message:
  -----------
  [NFC][TableGen] Refactor JSON and detailed record emitter (#105770)

- Fix JSON and detailed record emitters to use const reference and pointers.
- Fix code to use C++ structured bindings and range-based loops, including reverse() range for locations.
- Eliminate `NL` define for "\n".
- Change JSON emitter to populate `instance_list` in an earlier loop over superclasses instead of a separate loop.
- Rename variables in JSON emitter to conform to LLVM naming conventions.
- Eliminate unused headers in detailed record emitter.


  Commit: 79154a967461be37f900dc47687560056bf5c068
      https://github.com/llvm/llvm-project/commit/79154a967461be37f900dc47687560056bf5c068
  Author: Ian Anderson <iana at apple.com>
  Date:   2024-08-26 (Mon, 26 Aug 2024)

  Changed paths:
    M clang/include/clang/Basic/AttrDocs.td

  Log Message:
  -----------
  [docs] Document the missing availability platforms and environments (#104653)

Update the availability attribute documentation to include all of the
missing platforms, and add in the environments.


  Commit: daa79232f76c645e38aeffc9074bf0eb5c8010bd
      https://github.com/llvm/llvm-project/commit/daa79232f76c645e38aeffc9074bf0eb5c8010bd
  Author: Justin Bogner <mail at justinbogner.com>
  Date:   2024-08-26 (Mon, 26 Aug 2024)

  Changed paths:
    M llvm/include/llvm/Analysis/DXILResource.h
    M llvm/lib/Target/DirectX/DXILMetadata.cpp
    M llvm/lib/Target/DirectX/DXILTranslateMetadata.cpp
    M llvm/test/CodeGen/DirectX/CreateHandle.ll
    M llvm/test/CodeGen/DirectX/CreateHandleFromBinding.ll

  Log Message:
  -----------
  [DirectX] Implement metadata lowering for resources

Generate metadata from target extension type based resources.

Part of #91366

Pull Request: https://github.com/llvm/llvm-project/pull/104447


  Commit: 296ffc1b38bdca05f468a62e29fe5b9f341ca68f
      https://github.com/llvm/llvm-project/commit/296ffc1b38bdca05f468a62e29fe5b9f341ca68f
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2024-08-26 (Mon, 26 Aug 2024)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVISelLowering.cpp

  Log Message:
  -----------
  [RISCV] Don't check hasStdExtZfh and hasStdExtZfhmin. NFC

hasStdExtZfh implies hasStdExtZfhmin so it is sufficient to check
only hasStdExtZfhmin.

Similar for Zhinx and Zhinxmin.


  Commit: 2a50dac9fb034a39ace861f7feb60c43ba23e53c
      https://github.com/llvm/llvm-project/commit/2a50dac9fb034a39ace861f7feb60c43ba23e53c
  Author: Alexey Bataev <a.bataev at outlook.com>
  Date:   2024-08-26 (Mon, 26 Aug 2024)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
    A llvm/test/Transforms/SLPVectorizer/RISCV/long-mask-split.ll

  Log Message:
  -----------
  [RISCV][TTI]Fix the cost estimation for long select shuffle.

The code was broken completely. Need to iterate over the whole mask and
process the submasks correctly, check if they form full indentity and
adjust indices correctly.

Fixes https://github.com/llvm/llvm-project/issues/106126


  Commit: 1e48fcc437a0f3134028c4b1e1f02a769c1cc7bb
      https://github.com/llvm/llvm-project/commit/1e48fcc437a0f3134028c4b1e1f02a769c1cc7bb
  Author: Alexey Bataev <a.bataev at outlook.com>
  Date:   2024-08-26 (Mon, 26 Aug 2024)

  Changed paths:
    M clang/include/clang/Basic/AttrDocs.td
    M compiler-rt/lib/rtsan/tests/rtsan_test_interceptors.cpp
    M compiler-rt/test/fuzzer/out-of-process-fuzz.test
    M llvm/include/llvm/TableGen/Record.h
    M llvm/lib/TableGen/DetailedRecordsBackend.cpp
    M llvm/lib/TableGen/JSONBackend.cpp
    M llvm/lib/Target/DirectX/DXILMetadata.cpp
    M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
    M llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
    A llvm/test/CodeGen/MLRegAlloc/lit.local.cfg
    M llvm/test/CodeGen/RISCV/fastcc-without-f-reg.ll
    A llvm/test/Transforms/Inline/ML/lit.local.cfg
    A llvm/test/Transforms/SLPVectorizer/RISCV/long-mask-split.ll
    M mlir/lib/Dialect/Bufferization/Transforms/FuncBufferizableOpInterfaceImpl.cpp
    M mlir/test/Dialect/Bufferization/Transforms/one-shot-module-bufferize.mlir

  Log Message:
  -----------
  [𝘀𝗽𝗿] changes introduced through rebase

Created using spr 1.3.5-bogner

[skip ci]


  Commit: e78d0ca9b7d9bfdfe56531deaf26b46f0da707c6
      https://github.com/llvm/llvm-project/commit/e78d0ca9b7d9bfdfe56531deaf26b46f0da707c6
  Author: Justin Bogner <mail at justinbogner.com>
  Date:   2024-08-26 (Mon, 26 Aug 2024)

  Changed paths:
    M clang/include/clang/Basic/AttrDocs.td
    M compiler-rt/lib/rtsan/tests/rtsan_test_interceptors.cpp
    M compiler-rt/test/fuzzer/out-of-process-fuzz.test
    M llvm/include/llvm/TableGen/Record.h
    M llvm/lib/TableGen/DetailedRecordsBackend.cpp
    M llvm/lib/TableGen/JSONBackend.cpp
    M llvm/lib/Target/DirectX/DXILMetadata.cpp
    M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
    M llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
    A llvm/test/CodeGen/MLRegAlloc/lit.local.cfg
    M llvm/test/CodeGen/RISCV/fastcc-without-f-reg.ll
    A llvm/test/Transforms/Inline/ML/lit.local.cfg
    A llvm/test/Transforms/SLPVectorizer/RISCV/long-mask-split.ll
    M mlir/lib/Dialect/Bufferization/Transforms/FuncBufferizableOpInterfaceImpl.cpp
    M mlir/test/Dialect/Bufferization/Transforms/one-shot-module-bufferize.mlir

  Log Message:
  -----------
  rebase

Created using spr 1.3.5-bogner


Compare: https://github.com/llvm/llvm-project/compare/4b54fa3f1d49...e78d0ca9b7d9

To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list