[clang] [Headers][X86] VisitCallExpr constexpr immediate shifts (#154293) (PR #155542)

2025-08-29 Thread Justin Riddell via cfe-commits
Arghnews wrote: Updated with suggested changes from #156019 https://github.com/llvm/llvm-project/pull/155542 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Headers][X86] VisitCallExpr constexpr immediate shifts (#154293) (PR #155542)

2025-08-29 Thread Justin Riddell via cfe-commits
Arghnews wrote: Refactored to use your @RKSimon WIP change in #156017 , much neater way of doing it, cheers https://github.com/llvm/llvm-project/pull/155542 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman

[clang] [WIP][Clang][bytecode] interp__builtin_elementwise_int_binop - allow RHS operand to be a scalar (PR #156017)

2025-08-29 Thread Justin Riddell via cfe-commits
Arghnews wrote: > @Arghnews Feel free to copy the relevant > interp__builtin_elementwise_int_binop "Vector + Scalar" code from this and > use it #155542 - I'm not sure if I'll get the rotate changes finished today I'd just pushed a similar (but less neat) version of this, have just tried past

[clang] [Headers][X86] VisitCallExpr constexpr immediate shifts (#154293) (PR #155542)

2025-08-29 Thread Justin Riddell via cfe-commits
https://github.com/Arghnews edited https://github.com/llvm/llvm-project/pull/155542 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Headers][X86] VisitCallExpr constexpr immediate shifts (#154293) (PR #155542)

2025-08-29 Thread Justin Riddell via cfe-commits
Arghnews wrote: Have addressed feedback @RKSimon Will wait on https://github.com/llvm/llvm-project/pull/155891 then I can refactor this based on what goes in (and squash) Let me know if I should do otherwise or anything else needs doing on this, thanks https://github.com/llvm/llvm-project/pu

[clang] [Headers][X86] VisitCallExpr constexpr immediate shifts (#154293) (PR #155542)

2025-08-28 Thread Justin Riddell via cfe-commits
Arghnews wrote: Have made updates, neatened/refactored, now passes all tests with normal and experimental interpreter, have formatted etc. @tbaederr @RKSimon please review, thanks! https://github.com/llvm/llvm-project/pull/155542 ___ cfe-commits mail

[clang] [Headers][X86] VisitCallExpr constexpr immediate shifts (#154293) (PR #155542)

2025-08-27 Thread Justin Riddell via cfe-commits
Arghnews wrote: > We're putting these tests in the appropriate > llvm-project\clang\test\CodeGen\X86*-builtins.c files - search for > TEST_CONSTEXPR I have been splitting these out as specified, however I've run into an issue. Test files using `-fexperimental-new-constant-interpreter` like `

[clang] [Headers][X86] VisitCallExpr constexpr immediate shifts (#154293) (PR #155542)

2025-08-26 Thread Justin Riddell via cfe-commits
https://github.com/Arghnews edited https://github.com/llvm/llvm-project/pull/155542 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Headers][X86] VisitCallExpr constexpr immediate shifts (#154293) (PR #155542)

2025-08-26 Thread Justin Riddell via cfe-commits
@@ -11644,64 +11679,181 @@ bool VectorExprEvaluator::VisitCallExpr(const CallExpr *E) { for (unsigned EltNum = 0; EltNum < SourceLen; ++EltNum) { APSInt LHS = SourceLHS.getVectorElt(EltNum).getInt(); - APSInt RHS = SourceRHS.getVectorElt(EltNum).getInt(); -

[clang] [Headers][X86] VisitCallExpr constexpr immediate shifts (#154293) (PR #155542)

2025-08-26 Thread Justin Riddell via cfe-commits
https://github.com/Arghnews updated https://github.com/llvm/llvm-project/pull/155542 >From 759f06ff21d819986603ca50b2ba213ce68d3368 Mon Sep 17 00:00:00 2001 From: Justin Riddell Date: Wed, 27 Aug 2025 04:04:37 +0100 Subject: [PATCH] [Headers][X86] VisitCallExpr constexpr immediate shifts (#154

[clang] [Headers][X86] VisitCallExpr constexpr immediate shifts (#154293) (PR #155542)

2025-08-26 Thread Justin Riddell via cfe-commits
https://github.com/Arghnews updated https://github.com/llvm/llvm-project/pull/155542 >From 409524a751457ca230fd70daeca107b339e3bb82 Mon Sep 17 00:00:00 2001 From: Justin Riddell Date: Wed, 27 Aug 2025 03:58:29 +0100 Subject: [PATCH] [Headers][X86] VisitCallExpr constexpr immediate shifts (#154

[clang] [Headers][X86] VisitCallExpr constexpr immediate shifts (#154293) (PR #155542)

2025-08-26 Thread Justin Riddell via cfe-commits
https://github.com/Arghnews created https://github.com/llvm/llvm-project/pull/155542 Implement VectorExprEvaluator::VisitCallExpr constexpr support for left, right, arithmetic shift for MMX/SSE/AVX2/AVX512 intrinsics ### **NOTE**: currently incomplete, asking a question with what I've got so f

[clang] [llvm] [docs] Fix debug and strict aliasing typo (#140071) (PR #154861)

2025-08-22 Thread Justin Riddell via cfe-commits
Arghnews wrote: > LGTM! Do you need someone to land this on your behalf? @AaronBallman I do need someone to commit this, I don't have write access yes, thank you https://github.com/llvm/llvm-project/pull/154861 ___ cfe-commits mailing list cfe-commi

[clang] [CIR] Handle FunctionToPointerDecay casts (#153657) (PR #154060)

2025-08-20 Thread Justin Riddell via cfe-commits
Arghnews wrote: @andykaylor thank you for the suggestion, have rebased and rerun with latest and it works fine now Have updated the tests - I wasn't sure how closely the test should watch the cir output (whether too close a match is an issue, or not), so please check. I force pushed anyway so

[clang] [CIR] Handle FunctionToPointerDecay casts (#153657) (PR #154060)

2025-08-20 Thread Justin Riddell via cfe-commits
@@ -0,0 +1,25 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -fclangir -emit-cir %s -o - | FileCheck %s Arghnews wrote: Thanks for the suggestion, rebased and it works now https://github.com/llvm/llvm-project/pull/154060 ___

[clang] [CIR] Handle FunctionToPointerDecay casts (#153657) (PR #154060)

2025-08-20 Thread Justin Riddell via cfe-commits
https://github.com/Arghnews updated https://github.com/llvm/llvm-project/pull/154060 >From c3ef9b7dbad67be0fa24b228dd445a4b8a28d280 Mon Sep 17 00:00:00 2001 From: Justin Riddell Date: Thu, 21 Aug 2025 02:59:44 +0100 Subject: [PATCH] [CIR] Handle FunctionToPointerDecay casts (#153657) Add upstr

[clang] [CIR] Handle FunctionToPointerDecay casts (#153657) (PR #154060)

2025-08-19 Thread Justin Riddell via cfe-commits
https://github.com/Arghnews edited https://github.com/llvm/llvm-project/pull/154060 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Handle FunctionToPointerDecay casts (#153657) (PR #154060)

2025-08-18 Thread Justin Riddell via cfe-commits
https://github.com/Arghnews edited https://github.com/llvm/llvm-project/pull/154060 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Handle FunctionToPointerDecay casts (#153657) (PR #154060)

2025-08-18 Thread Justin Riddell via cfe-commits
@@ -0,0 +1,25 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -fclangir -emit-cir %s -o - | FileCheck %s Arghnews wrote: If I change the test file to: ```c // RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -fclangir -emit-cir %s -o %t.cir // RUN:

[clang] [CIR] Handle FunctionToPointerDecay casts (#153657) (PR #154060)

2025-08-17 Thread Justin Riddell via cfe-commits
https://github.com/Arghnews edited https://github.com/llvm/llvm-project/pull/154060 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Handle FunctionToPointerDecay casts (#153657) (PR #154060)

2025-08-17 Thread Justin Riddell via cfe-commits
https://github.com/Arghnews created https://github.com/llvm/llvm-project/pull/154060 Add upstream support for handling implicit FunctionToPointerDecay casts in ClangIR, for task #153657, migrate code from clangir repo Passes `check-clang` test target, have run `git-clang-format` from repo as