[all-commits] [llvm/llvm-project] 2f3c93: [CIR] Add binary operators (#132420)

Florian Mayer via All-commits all-commits at lists.llvm.org
Tue Mar 25 15:04:09 PDT 2025


  Branch: refs/heads/users/fmayer/spr/main.clang-sanitizer-add-pseudofunction-to-indicate-array-bounds-check
  Home:   https://github.com/llvm/llvm-project
  Commit: 2f3c93743fc21686158c9ba51da8f25da9a02f9d
      https://github.com/llvm/llvm-project/commit/2f3c93743fc21686158c9ba51da8f25da9a02f9d
  Author: Morris Hafner <mmha at users.noreply.github.com>
  Date:   2025-03-25 (Tue, 25 Mar 2025)

  Changed paths:
    M clang/include/clang/CIR/Dialect/Builder/CIRBaseBuilder.h
    M clang/include/clang/CIR/Dialect/IR/CIROps.td
    M clang/include/clang/CIR/Dialect/IR/CIRTypes.h
    M clang/include/clang/CIR/MissingFeatures.h
    M clang/lib/CIR/CodeGen/CIRGenBuilder.h
    M clang/lib/CIR/CodeGen/CIRGenExpr.cpp
    M clang/lib/CIR/CodeGen/CIRGenExprScalar.cpp
    M clang/lib/CIR/CodeGen/CIRGenFunction.cpp
    M clang/lib/CIR/CodeGen/CIRGenFunction.h
    M clang/lib/CIR/Dialect/IR/CIRDialect.cpp
    M clang/lib/CIR/Dialect/IR/CIRTypes.cpp
    M clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.cpp
    M clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.h
    A clang/test/CIR/CodeGen/binop.cpp
    A clang/test/CIR/Lowering/binop-bool.cir
    A clang/test/CIR/Lowering/binop-fp.cir
    A clang/test/CIR/Lowering/binop-overflow.cir
    A clang/test/CIR/Lowering/binop-signed-int.cir
    A clang/test/CIR/Lowering/binop-unsigned-int.cir

  Log Message:
  -----------
  [CIR] Add binary operators (#132420)

This patch adds upstreams support for BinOp including lvalue
assignments. Note that this does not include ternary ops,
BinOpOverflowOp, pointer arithmetic, ShiftOp and SelectOp which are
required for logical binary operators.

---------

Co-authored-by: Morris Hafner <mhafner at nvidia.com>
Co-authored-by: Andy Kaylor <akaylor at nvidia.com>


  Commit: 960615954e4cb3150ae4a479fa7f9d0d17035eea
      https://github.com/llvm/llvm-project/commit/960615954e4cb3150ae4a479fa7f9d0d17035eea
  Author: Matheus Izvekov <mizvekov at gmail.com>
  Date:   2025-03-25 (Tue, 25 Mar 2025)

  Changed paths:
    M clang/lib/Sema/SemaLookup.cpp
    M clang/test/SemaCXX/member-pointer.cpp

  Log Message:
  -----------
  [clang] fix crash with ADL for member pointers with dependent class (#132977)


  Commit: f0b752e921702e5a44327ac5906e50777cd0b29d
      https://github.com/llvm/llvm-project/commit/f0b752e921702e5a44327ac5906e50777cd0b29d
  Author: Alexey Samsonov <vonosmas at gmail.com>
  Date:   2025-03-25 (Tue, 25 Mar 2025)

  Changed paths:
    M utils/bazel/llvm-project-overlay/libc/BUILD.bazel
    M utils/bazel/llvm-project-overlay/libc/libc_build_rules.bzl

  Log Message:
  -----------
  [libc][bazel] Stop creatng "public" library targets in libc_function. (#132995)

All downstream users are migrated, so we no longer need to produce
"public"/"release" cc_library target for each libc_function macro
invocation. Instead, we only create internal target (for testing), and
some filegroups, which will be picked up by the libc_release_library
invocation.

This allows us to get rid of "weak" argument to libc_function - this
decision is also postponed to libc_release_library configuration.

Fixes #130327.


  Commit: df011313cf14a2a0735ed3c56b70c5a145b23213
      https://github.com/llvm/llvm-project/commit/df011313cf14a2a0735ed3c56b70c5a145b23213
  Author: Andy Kaylor <akaylor at nvidia.com>
  Date:   2025-03-25 (Tue, 25 Mar 2025)

  Changed paths:
    R clang/test/CIR/Lowering/binop-overflow.cir

  Log Message:
  -----------
  [CIR] Remove failing binop test (#133001)

When CIR binop support was commited, it accidentally included a test for
functionality that was removed during the review process
(cir.binop.overflow). This test, of course, fails.

This change removes the failing test. It will be re-added when the
corresponding op is added.


  Commit: 542797317ae4e98c8aa9030368d851fc72070f95
      https://github.com/llvm/llvm-project/commit/542797317ae4e98c8aa9030368d851fc72070f95
  Author: Florian Mayer <fmayer at google.com>
  Date:   2025-03-25 (Tue, 25 Mar 2025)

  Changed paths:
    M clang/lib/CodeGen/CGDebugInfo.cpp
    M clang/lib/CodeGen/CGDebugInfo.h

  Log Message:
  -----------
  [NFC] [clang] rename InlinedTrapFuncMap to InlinedSubprogramMap (#132993)


  Commit: 495eb4fd3e53fd5c67ca249750fd17b9a0dc31be
      https://github.com/llvm/llvm-project/commit/495eb4fd3e53fd5c67ca249750fd17b9a0dc31be
  Author: Florian Mayer <fmayer at google.com>
  Date:   2025-03-25 (Tue, 25 Mar 2025)

  Changed paths:
    M clang/include/clang/CIR/Dialect/Builder/CIRBaseBuilder.h
    M clang/include/clang/CIR/Dialect/IR/CIROps.td
    M clang/include/clang/CIR/Dialect/IR/CIRTypes.h
    M clang/include/clang/CIR/MissingFeatures.h
    M clang/lib/CIR/CodeGen/CIRGenBuilder.h
    M clang/lib/CIR/CodeGen/CIRGenExpr.cpp
    M clang/lib/CIR/CodeGen/CIRGenExprScalar.cpp
    M clang/lib/CIR/CodeGen/CIRGenFunction.cpp
    M clang/lib/CIR/CodeGen/CIRGenFunction.h
    M clang/lib/CIR/Dialect/IR/CIRDialect.cpp
    M clang/lib/CIR/Dialect/IR/CIRTypes.cpp
    M clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.cpp
    M clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.h
    M clang/lib/CodeGen/CGDebugInfo.cpp
    M clang/lib/CodeGen/CGDebugInfo.h
    M clang/lib/Sema/SemaLookup.cpp
    A clang/test/CIR/CodeGen/binop.cpp
    A clang/test/CIR/Lowering/binop-bool.cir
    A clang/test/CIR/Lowering/binop-fp.cir
    A clang/test/CIR/Lowering/binop-signed-int.cir
    A clang/test/CIR/Lowering/binop-unsigned-int.cir
    M clang/test/SemaCXX/member-pointer.cpp
    M utils/bazel/llvm-project-overlay/libc/BUILD.bazel
    M utils/bazel/llvm-project-overlay/libc/libc_build_rules.bzl

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

Created using spr 1.3.4

[skip ci]


Compare: https://github.com/llvm/llvm-project/compare/272a3d06a0ca...495eb4fd3e53

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