[clang] [Clang-Repl] Add Lambda Support, PID Retrieval, and Dynamic liborc_rt Path in Clang-Repl (PR #155140)

2025-08-28 Thread Vassil Vassilev via cfe-commits
@@ -0,0 +1,45 @@ +//===-- OutOfProcessJITConfig.h - Struct for Out-Of-Process JIT--*- C++ -*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apa

[clang] [Clang-Repl] Add Lambda Support, PID Retrieval, and Dynamic liborc_rt Path in Clang-Repl (PR #155140)

2025-08-28 Thread Vassil Vassilev via cfe-commits
@@ -333,11 +317,10 @@ int main(int argc, const char **argv) { auto CudaRuntimeLibPath = CudaPath + "/lib/libcudart.so"; ExitOnErr(Interp->LoadDynamicLibrary(CudaRuntimeLibPath.c_str())); } - } else if (JB) { -Interp = -ExitOnErr(clang::Interpreter::

[clang] [Clang-Repl] Add Lambda Support, PID Retrieval, and Dynamic liborc_rt Path in Clang-Repl (PR #155140)

2025-08-28 Thread Vassil Vassilev via cfe-commits
@@ -460,10 +464,99 @@ const char *const Runtimes = R"( EXTERN_C void __clang_Interpreter_SetValueNoAlloc(void *This, void *OutVal, void *OpaqueType, ...); )"; +llvm::ExitOnError ExitOnErr; + +std::unique_ptr +Interpreter::outOfProcessJITBuilder(OutOfProcessJITConfig OutOfPr

[clang] [Clang-Repl] Add Lambda Support, PID Retrieval, and Dynamic liborc_rt Path in Clang-Repl (PR #155140)

2025-08-28 Thread Vassil Vassilev via cfe-commits
@@ -275,10 +331,10 @@ int main(int argc, const char **argv) { if (!CudaPath.empty()) CB.SetCudaSDK(CudaPath); -if (OffloadArch.empty()) { - OffloadArch = "sm_35"; +if (::OffloadArch.empty()) { + ::OffloadArch = "sm_35"; } -CB.SetOffloadArch

[clang] [Clang-Repl] Add Lambda Support, PID Retrieval, and Dynamic liborc_rt Path in Clang-Repl (PR #155140)

2025-08-28 Thread Vassil Vassilev via cfe-commits
@@ -55,6 +57,8 @@ #include "llvm/TargetParser/Host.h" #include "llvm/Transforms/Utils/Cloning.h" // for CloneModule +#include vgvassilev wrote: We probably do not need this include. https://github.com/llvm/llvm-project/pull/155140 __

[clang] [Clang-Repl] Add Lambda Support, PID Retrieval, and Dynamic liborc_rt Path in Clang-Repl (PR #155140)

2025-08-28 Thread Vassil Vassilev via cfe-commits
@@ -460,10 +464,99 @@ const char *const Runtimes = R"( EXTERN_C void __clang_Interpreter_SetValueNoAlloc(void *This, void *OutVal, void *OpaqueType, ...); )"; +llvm::ExitOnError ExitOnErr; + +std::unique_ptr +Interpreter::outOfProcessJITBuilder(OutOfProcessJITConfig OutOfPr

[clang] [Clang-Repl] Add Lambda Support, PID Retrieval, and Dynamic liborc_rt Path in Clang-Repl (PR #155140)

2025-08-28 Thread Vassil Vassilev via cfe-commits
@@ -33,6 +33,10 @@ using namespace llvm; using namespace llvm::orc; +#if LLVM_ON_UNIX +static std::vector LaunchedExecutorPID; vgvassilev wrote: We need a home for this. The process is not the right home. Either the Interpreter class or the IncrementalExecut

[clang] [Clang-Repl] Add Lambda Support, PID Retrieval, and Dynamic liborc_rt Path in Clang-Repl (PR #155140)

2025-08-28 Thread Vassil Vassilev via cfe-commits
@@ -19,21 +19,32 @@ #include "clang/Frontend/FrontendDiagnostic.h" #include "clang/Interpreter/CodeCompletion.h" #include "clang/Interpreter/Interpreter.h" +#include "clang/Interpreter/OutOfProcessJITConfig.h" #include "clang/Lex/Preprocessor.h" #include "clang/Sema/Sema.h"

[clang] 1683083 - [clang][bytecode] Simplify and optimize EvaluationResult (#155772)

2025-08-28 Thread via cfe-commits
Author: Timm Baeder Date: 2025-08-28T10:06:04+02:00 New Revision: 168308325d00b4de1c7a9c648d9f4f1f3e4c3866 URL: https://github.com/llvm/llvm-project/commit/168308325d00b4de1c7a9c648d9f4f1f3e4c3866 DIFF: https://github.com/llvm/llvm-project/commit/168308325d00b4de1c7a9c648d9f4f1f3e4c3866.diff L

[clang] [Clang-Repl] Add Lambda Support, PID Retrieval, and Dynamic liborc_rt Path in Clang-Repl (PR #155140)

2025-08-28 Thread Vassil Vassilev via cfe-commits
@@ -0,0 +1,45 @@ +//===-- OutOfProcessJITConfig.h - Struct for Out-Of-Process JIT--*- C++ -*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apa

[clang] 96b44a1 - Openmp 6.0 allow default clause on the target directive (#154942)

2025-08-28 Thread via cfe-commits
Author: CHANDRA GHALE Date: 2025-08-28T13:21:31+05:30 New Revision: 96b44a101cfbf208dd7acc02e5e1216178748637 URL: https://github.com/llvm/llvm-project/commit/96b44a101cfbf208dd7acc02e5e1216178748637 DIFF: https://github.com/llvm/llvm-project/commit/96b44a101cfbf208dd7acc02e5e1216178748637.diff

[clang] [llvm] Openmp 6.0 allow default clause on the target directive (PR #154942)

2025-08-28 Thread CHANDRA GHALE via cfe-commits
https://github.com/chandraghale closed https://github.com/llvm/llvm-project/pull/154942 ___ 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-28 Thread Timm Baeder via cfe-commits
tbaederr wrote: > I guess this is because clang/lib/AST/ExprConstant is the current interpreter > and we're not adding support to this new one. The trick is to add support for the new one as well :angel: https://github.com/llvm/llvm-project/pull/155542

[clang] [Headers][X86] Allow integer/fp absolute intrinsics to be used in constexpr (PR #154662)

2025-08-28 Thread Simon Pilgrim via cfe-commits
RKSimon wrote: I added something (rather vague) to the release notes last week: #154737 - we can beef it out closer to the next branch once we've got a good idea on how close we've gotten to constexpr'ing everything we can in the x86 intrinsics. It might be that we want a fuller list in a pers

[clang] [llvm] [RISC-V] Added the mips extension instructions like ehb,ihb and pause etc for for MIPS RV64 P8700. (PR #155747)

2025-08-28 Thread via cfe-commits
https://github.com/ukalappa-mips updated https://github.com/llvm/llvm-project/pull/155747 >From 7dca481baec6862b8abed7a912f5666bb6caef17 Mon Sep 17 00:00:00 2001 From: Umesh Kalappa Date: Thu, 28 Aug 2025 04:53:00 + Subject: [PATCH 1/2] Added the mips extension instructions like ehb,ihb and

[clang] [llvm] [openmp] [OpenMP][clang] 6.0: num_threads strict (part 3: codegen) (PR #146405)

2025-08-28 Thread Robert Imschweiler via cfe-commits
ro-i wrote: (rebased on main after https://github.com/llvm/llvm-project/pull/146404 has been merged) https://github.com/llvm/llvm-project/pull/146405 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listin

[clang] [llvm] [PseudoProbe] Support emitting to COFF object (PR #123870)

2025-08-28 Thread Wei Xiao via cfe-commits
@@ -1221,44 +1231,68 @@ MCObjectFileInfo::getKCFITrapSection(const MCSection &TextSec) const { MCSection * MCObjectFileInfo::getPseudoProbeSection(const MCSection &TextSec) const { - if (Ctx->getObjectFileType() != MCContext::IsELF) -return PseudoProbeSection; - - const

[clang] [llvm] [PseudoProbe] Support emitting to COFF object (PR #123870)

2025-08-28 Thread Wei Xiao via cfe-commits
https://github.com/williamweixiao commented: LGTM. Just some trivial comments. https://github.com/llvm/llvm-project/pull/123870 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [RISC-V] Added the mips extension instructions like ehb,ihb and pause etc for for MIPS RV64 P8700. (PR #155747)

2025-08-28 Thread via cfe-commits
@@ -99,89 +99,167 @@ class SWPFormat bits<5> rs2; bits<5> rs1; - let Inst{31-27} = rs3; - let Inst{26-25} = imm7{6-5}; - let Inst{24-20} = rs2; - let Inst{19-15} = rs1; - let Inst{14-12} = 0b101; - let Inst{11-9} = imm7{4-2}; - let Inst{8-7} = 0b01; - let Inst{6-0}

[clang] [llvm] [RISC-V] Added the mips extension instructions like ehb,ihb and pause etc for for MIPS RV64 P8700. (PR #155747)

2025-08-28 Thread via cfe-commits
@@ -47,13 +47,13 @@ class LDPFormat bits<5> rd1; bits<5> rd2; - let Inst{31-27} = rd2; - let Inst{26-23} = imm7{6-3}; - let Inst{22-20} = 0b000; - let Inst{19-15} = rs1; - let Inst{14-12} = 0b100; - let Inst{11-7} = rd1; - let Inst{6-0} = OPC_CUSTOM_0.Value; + let

[clang] [llvm] [PseudoProbe] Support emitting to COFF object (PR #123870)

2025-08-28 Thread Wei Xiao via cfe-commits
@@ -1,4 +1,4 @@ -; REQUIRES: x86_64-linux +; REQUIRES: x86-registered-target williamweixiao wrote: The lit case is Linux specific. https://github.com/llvm/llvm-project/pull/123870 ___ cfe-commits mailing list cfe-commi

[clang] [llvm] [PseudoProbe] Support emitting to COFF object (PR #123870)

2025-08-28 Thread Wei Xiao via cfe-commits
https://github.com/williamweixiao edited https://github.com/llvm/llvm-project/pull/123870 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [openmp] [OpenMP][clang] 6.0: num_threads strict (part 3: codegen) (PR #146405)

2025-08-28 Thread Robert Imschweiler via cfe-commits
https://github.com/ro-i auto_merge_enabled https://github.com/llvm/llvm-project/pull/146405 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [llvm] Introduce -fexperimental-loop-fuse to clang and flang (PR #142686)

2025-08-28 Thread Fangrui Song via cfe-commits
@@ -4268,6 +4268,10 @@ def floop_interchange : Flag<["-"], "floop-interchange">, Group, HelpText<"Enable the loop interchange pass">, Visibility<[ClangOption, CC1Option, FlangOption, FC1Option]>; def fno_loop_interchange: Flag<["-"], "fno-loop-interchange">, Group, HelpTe

[clang] [llvm] [WIP] ABI Lowering Library (PR #140112)

2025-08-28 Thread Nikita Popov via cfe-commits
@@ -0,0 +1,543 @@ +//===- ABI/Types.h --*- C++ -*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[clang] [llvm] [WIP] ABI Lowering Library (PR #140112)

2025-08-28 Thread Nikita Popov via cfe-commits
@@ -0,0 +1,76 @@ +//=== ABITypeMapper.h - Maps LLVM ABI Types to LLVM IR Types ===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache

[clang] [llvm] [WIP] ABI Lowering Library (PR #140112)

2025-08-28 Thread Nikita Popov via cfe-commits
@@ -0,0 +1,244 @@ +//=== ABITypeMapper.cpp - Maps LLVM ABI Types to LLVM IR Types --===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apach

[clang] [llvm] [WIP] ABI Lowering Library (PR #140112)

2025-08-28 Thread Nikita Popov via cfe-commits
@@ -0,0 +1,76 @@ +//=== ABITypeMapper.h - Maps LLVM ABI Types to LLVM IR Types ===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache

[clang] [llvm] [WIP] ABI Lowering Library (PR #140112)

2025-08-28 Thread Nikita Popov via cfe-commits
@@ -0,0 +1,76 @@ +//=== ABITypeMapper.h - Maps LLVM ABI Types to LLVM IR Types ===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache

[clang] [llvm] [WIP] ABI Lowering Library (PR #140112)

2025-08-28 Thread Nikita Popov via cfe-commits
@@ -0,0 +1,244 @@ +//=== ABITypeMapper.cpp - Maps LLVM ABI Types to LLVM IR Types --===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apach

[clang] [llvm] [WIP] ABI Lowering Library (PR #140112)

2025-08-28 Thread Nikita Popov via cfe-commits
@@ -0,0 +1,76 @@ +//=== ABITypeMapper.h - Maps LLVM ABI Types to LLVM IR Types ===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache

[clang] [llvm] [WIP] ABI Lowering Library (PR #140112)

2025-08-28 Thread Nikita Popov via cfe-commits
@@ -0,0 +1,76 @@ +//=== ABITypeMapper.h - Maps LLVM ABI Types to LLVM IR Types ===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache

[clang] [llvm] [WIP] ABI Lowering Library (PR #140112)

2025-08-28 Thread Nikita Popov via cfe-commits
@@ -0,0 +1,244 @@ +//=== ABITypeMapper.cpp - Maps LLVM ABI Types to LLVM IR Types --===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apach

[clang] [llvm] [WIP] ABI Lowering Library (PR #140112)

2025-08-28 Thread Nikita Popov via cfe-commits
@@ -0,0 +1,244 @@ +//=== ABITypeMapper.cpp - Maps LLVM ABI Types to LLVM IR Types --===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apach

[clang] [llvm] [WIP] ABI Lowering Library (PR #140112)

2025-08-28 Thread Nikita Popov via cfe-commits
@@ -0,0 +1,244 @@ +//=== ABITypeMapper.cpp - Maps LLVM ABI Types to LLVM IR Types --===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apach

[clang] [llvm] [WIP] ABI Lowering Library (PR #140112)

2025-08-28 Thread Nikita Popov via cfe-commits
@@ -0,0 +1,244 @@ +//=== ABITypeMapper.cpp - Maps LLVM ABI Types to LLVM IR Types --===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apach

[clang] [llvm] [WIP] ABI Lowering Library (PR #140112)

2025-08-28 Thread Nikita Popov via cfe-commits
@@ -0,0 +1,76 @@ +//=== ABITypeMapper.h - Maps LLVM ABI Types to LLVM IR Types ===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache

[clang] [llvm] [WIP] ABI Lowering Library (PR #140112)

2025-08-28 Thread Nikita Popov via cfe-commits
@@ -0,0 +1,244 @@ +//=== ABITypeMapper.cpp - Maps LLVM ABI Types to LLVM IR Types --===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apach

[clang] [llvm] [WIP] ABI Lowering Library (PR #140112)

2025-08-28 Thread Nikita Popov via cfe-commits
@@ -0,0 +1,244 @@ +//=== ABITypeMapper.cpp - Maps LLVM ABI Types to LLVM IR Types --===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apach

[clang] [llvm] [WIP] ABI Lowering Library (PR #140112)

2025-08-28 Thread Nikita Popov via cfe-commits
@@ -0,0 +1,76 @@ +//=== ABITypeMapper.h - Maps LLVM ABI Types to LLVM IR Types ===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache

[clang] [llvm] [WIP] ABI Lowering Library (PR #140112)

2025-08-28 Thread via cfe-commits
@@ -0,0 +1,1493 @@ +//===- X86.cpp ===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: A

[clang] [Clang](NFC) Add coverage for VTable debug info (PR #151818)

2025-08-28 Thread Carlos Alberto Enciso via cfe-commits
CarlosAlbertoEnciso wrote: The tests look good. https://github.com/llvm/llvm-project/pull/151818 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [WIP] ABI Lowering Library (PR #140112)

2025-08-28 Thread via cfe-commits
@@ -0,0 +1,1493 @@ +//===- X86.cpp ===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: A

[clang] [llvm] [WIP] ABI Lowering Library (PR #140112)

2025-08-28 Thread via cfe-commits
@@ -0,0 +1,244 @@ +//=== ABITypeMapper.cpp - Maps LLVM ABI Types to LLVM IR Types --===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apach

[clang] [llvm] [NVPTX] Change the alloca address space in NVPTXLowerAlloca (PR #154814)

2025-08-28 Thread Theodoros Theodoridis via cfe-commits
@@ -139,21 +134,20 @@ define void @foo4() { ; PTX32-EMPTY: ; PTX32-NEXT: // %bb.0: ; PTX32-NEXT:mov.b32 %SPL, __local_depot3; -; PTX32-NEXT:cvta.local.u32 %SP, %SPL; -; PTX32-NEXT:add.u32 %r1, %SP, 0; -; PTX32-NEXT:add.u32 %r2, %SPL, 0; -; PTX32-NEXT:add.u3

[clang] [llvm] [NVPTX] Change the alloca address space in NVPTXLowerAlloca (PR #154814)

2025-08-28 Thread Theodoros Theodoridis via cfe-commits
@@ -1484,7 +1484,8 @@ void NVPTXAsmPrinter::setAndEmitFunctionVirtualRegisters( if (NumBytes) { O << "\t.local .align " << MFI.getMaxAlign().value() << " .b8 \t" << DEPOTNAME << getFunctionNumber() << "[" << NumBytes << "];\n"; -if (static_cast(MF.getTarget()).i

[clang] [llvm] [AMDGPU][Clang] Allow amdgpu-waves-per-eu attribute to lower target occupancy range (PR #138284)

2025-08-28 Thread Lucas Ramirez via cfe-commits
https://github.com/lucas-rami edited https://github.com/llvm/llvm-project/pull/138284 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AMDGPU][Clang] Allow amdgpu-waves-per-eu attribute to lower target occupancy range (PR #138284)

2025-08-28 Thread Lucas Ramirez via cfe-commits
@@ -216,41 +216,30 @@ define internal i32 @bitcasted_function() { ret i32 0 } -define internal void @called_from_invalid_bounds_0() { -; CHECK-LABEL: define internal void @called_from_invalid_bounds_0 -; CHECK-SAME: () #[[ATTR1]] { -; CHECK-NEXT:ret void -; +define inter

[clang] [Headers][X86] Allow integer arithmetic intrinsics to be used in constexpr (PR #152986)

2025-08-28 Thread Simon Pilgrim via cfe-commits
@@ -24,7 +24,7 @@ __target__("avx512vl,avx512dq,no-evex512"), \ __min_vector_width__(256))) -static __inline__ __m256i __DEFAULT_FN_ATTRS256 +static __inline__ __m256i __DEFAULT_FN_ATTRS256_CONSTEXPR RKSimon

<    1   2   3   4   5   6