[all-commits] [llvm/llvm-project] e169cc: [Clang] Fix sema checks thinking kernels aren't ke...

Vitaly Buka via All-commits all-commits at lists.llvm.org
Fri Aug 16 20:41:43 PDT 2024


  Branch: refs/heads/users/vitalybuka/spr/asan-catch-initialization-order-fiasco-in-mudules-without-globals
  Home:   https://github.com/llvm/llvm-project
  Commit: e169cc162adbe89d498e774bccf4e228af989849
      https://github.com/llvm/llvm-project/commit/e169cc162adbe89d498e774bccf4e228af989849
  Author: Joseph Huber <huberjn at outlook.com>
  Date:   2024-08-16 (Fri, 16 Aug 2024)

  Changed paths:
    M clang/lib/Sema/SemaDeclAttr.cpp
    M clang/test/CodeGenCXX/amdgpu-kernel-arg-pointer-type.cpp

  Log Message:
  -----------
  [Clang] Fix sema checks thinking kernels aren't kernels (#104460)

Summary:
Currently we have some sema checks to make sure users don't apply
kernel-only attributes to non-kernel functions. However, this currently
did not correctly check for bare NVPTX / AMDGPU kernel attributes,
making it impossible to use them at all w/o CUDA enabled. This patch
fixes that by checking for the calling convention / attributes directly.


  Commit: 516c1a0e9a7f101e678bcc61620ccdebd5ef83d1
      https://github.com/llvm/llvm-project/commit/516c1a0e9a7f101e678bcc61620ccdebd5ef83d1
  Author: vporpo <vporpodas at google.com>
  Date:   2024-08-16 (Fri, 16 Aug 2024)

  Changed paths:
    M llvm/include/llvm/SandboxIR/SandboxIR.h
    M llvm/include/llvm/SandboxIR/SandboxIRValues.def
    M llvm/include/llvm/SandboxIR/Tracker.h
    M llvm/lib/SandboxIR/SandboxIR.cpp
    M llvm/lib/SandboxIR/Tracker.cpp
    M llvm/unittests/SandboxIR/SandboxIRTest.cpp
    M llvm/unittests/SandboxIR/TrackerTest.cpp

  Log Message:
  -----------
  [SandboxIR] Implement SwitchInst (#104641)

This patch implements sandboxir::SwitchInst mirroring llvm::SwitchInst.


  Commit: 981191aa94bfd3fce0852ee2c8ff2b23aba5a4a6
      https://github.com/llvm/llvm-project/commit/981191aa94bfd3fce0852ee2c8ff2b23aba5a4a6
  Author: Kelvin Li <kkwli at users.noreply.github.com>
  Date:   2024-08-16 (Fri, 16 Aug 2024)

  Changed paths:
    M flang/test/Lower/ident.f90

  Log Message:
  -----------
  [flang] Allow flexible name in llvm.ident (NFC) (#104543)


  Commit: cd3f48df82dae19493da838afd1c0aaf98c737eb
      https://github.com/llvm/llvm-project/commit/cd3f48df82dae19493da838afd1c0aaf98c737eb
  Author: Greg Roth <grroth at microsoft.com>
  Date:   2024-08-16 (Fri, 16 Aug 2024)

  Changed paths:
    M llvm/lib/Target/DirectX/DXILIntrinsicExpansion.cpp

  Log Message:
  -----------
  [NFC][DXIL] move replace/erase in DXIL intrinsic expansion to caller (#104626)

All expansions end with replacing the previous inrinsic with the new
expansion and erasing the old one. By moving this operation to the
caller, these expansion functions can be called in more contexts and a
small amount of duplicated code is consolidated.

Pre-req for #88056


  Commit: 8d8f56da3038dd8e36713f8a4926aeffd0f1f80b
      https://github.com/llvm/llvm-project/commit/8d8f56da3038dd8e36713f8a4926aeffd0f1f80b
  Author: Fangrui Song <i at maskray.me>
  Date:   2024-08-16 (Fri, 16 Aug 2024)

  Changed paths:
    M llvm/lib/Target/AArch64/MCTargetDesc/AArch64ELFStreamer.cpp
    M llvm/test/MC/AArch64/mapping-within-section.s

  Log Message:
  -----------
  [MC,AArch64] Remove unneeded STT_NOTYPE/STB_LOCAL code for mapping symbols and improve tests


  Commit: 4cf9a4266167c686e7e405ead5d6c1cd389eeca5
      https://github.com/llvm/llvm-project/commit/4cf9a4266167c686e7e405ead5d6c1cd389eeca5
  Author: Nathan Sidwell <nathan at acm.org>
  Date:   2024-08-16 (Fri, 16 Aug 2024)

  Changed paths:
    M clang/docs/ClangFormatStyleOptions.rst
    M clang/include/clang/Format/Format.h
    M clang/lib/Format/ContinuationIndenter.cpp
    M clang/lib/Format/Format.cpp
    M clang/lib/Format/TokenAnnotator.cpp
    M clang/unittests/Format/FormatTest.cpp

  Log Message:
  -----------
  [clang-format] Adjust requires clause wrapping (#101550) (#102078)

Address #101550 by adding OwnLineWithBrace option for RequiresClausePosition. This permits placing a following '{' on the same line as the requires clause.

Thus, instead of:
```
bool Foo ()
  requires(true)
{
  return true;
}
```

we have:
```
bool Foo ()
  requires(true) {
  return true;
}
```

If the function body is empty, we'll get:
```
bool Foo ()
  requires(true) {}
```

I attempted to get a line break between the open and close braces, but
failed. Perhaps that's fine -- it's rare and only happens in the empty
body case.


  Commit: 6e0fc155782ff5307245a85c7b037a2998ec6c86
      https://github.com/llvm/llvm-project/commit/6e0fc155782ff5307245a85c7b037a2998ec6c86
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2024-08-16 (Fri, 16 Aug 2024)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVFeatures.td

  Log Message:
  -----------
  [RISCV] Remove feature implication from Zvknhb.

We don't have feature implications on any other Zvk extensions and
we have error messages in RISCVISAInfo if Zve or V is not enabled.
I'm working on testing and refactoring in that code so I'd like to
make it consistent.


  Commit: f9aa607c3f75a42cc731b57c298c69067977bfbd
      https://github.com/llvm/llvm-project/commit/f9aa607c3f75a42cc731b57c298c69067977bfbd
  Author: Vitaly Buka <vitalybuka at google.com>
  Date:   2024-08-16 (Fri, 16 Aug 2024)

  Changed paths:
    M clang/docs/ClangFormatStyleOptions.rst
    M clang/include/clang/Format/Format.h
    M clang/lib/Format/ContinuationIndenter.cpp
    M clang/lib/Format/Format.cpp
    M clang/lib/Format/TokenAnnotator.cpp
    M clang/lib/Sema/SemaDeclAttr.cpp
    M clang/test/CodeGenCXX/amdgpu-kernel-arg-pointer-type.cpp
    M clang/unittests/Format/FormatTest.cpp
    M flang/test/Lower/ident.f90
    M llvm/include/llvm/SandboxIR/SandboxIR.h
    M llvm/include/llvm/SandboxIR/SandboxIRValues.def
    M llvm/include/llvm/SandboxIR/Tracker.h
    M llvm/lib/SandboxIR/SandboxIR.cpp
    M llvm/lib/SandboxIR/Tracker.cpp
    M llvm/lib/Target/AArch64/MCTargetDesc/AArch64ELFStreamer.cpp
    M llvm/lib/Target/DirectX/DXILIntrinsicExpansion.cpp
    M llvm/lib/Target/RISCV/RISCVFeatures.td
    M llvm/test/MC/AArch64/mapping-within-section.s
    M llvm/unittests/SandboxIR/SandboxIRTest.cpp
    M llvm/unittests/SandboxIR/TrackerTest.cpp

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

Created using spr 1.3.4


Compare: https://github.com/llvm/llvm-project/compare/7fa3af1f742e...f9aa607c3f75

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