[clang] [clang][CodeGen][OpenCL] Fix `alloca` handling & `sret`when compiling for (PR #113930)

2024-10-28 Thread Alex Voicu via cfe-commits
@@ -1648,6 +1648,8 @@ CodeGenTypes::GetFunctionType(const CGFunctionInfo &FI) { // Add type for sret argument. if (IRFunctionArgs.hasSRetArg()) { QualType Ret = FI.getReturnType(); +if (CGM.getLangOpts().OpenCL) + Ret = getContext().getAddrSpaceQualType(Ret, La

[clang] [clang][CodeGen][OpenCL] Fix `alloca` handling & `sret`when compiling for (PR #113930)

2024-10-28 Thread Alex Voicu via cfe-commits
@@ -108,11 +108,15 @@ RawAddress CodeGenFunction::CreateTempAlloca(llvm::Type *Ty, CharUnits Align, if (AllocaAddr) *AllocaAddr = Alloca; llvm::Value *V = Alloca.getPointer(); + assert((!getLangOpts().OpenCL || + CGM.getTarget().getTargetAddressSpace(getASTAl

[clang] Remove optimization flags from clang codegen tests (PR #113714)

2024-10-28 Thread Eli Friedman via cfe-commits
https://github.com/efriedma-quic approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/113714 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][deps] Improve timing output (PR #113726)

2024-10-28 Thread Ben Langmuir via cfe-commits
https://github.com/benlangmuir approved this pull request. https://github.com/llvm/llvm-project/pull/113726 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][CodeGen][OpenCL] Fix `alloca` handling & `sret`when compiling for (PR #113930)

2024-10-28 Thread Alex Voicu via cfe-commits
@@ -108,11 +108,15 @@ RawAddress CodeGenFunction::CreateTempAlloca(llvm::Type *Ty, CharUnits Align, if (AllocaAddr) *AllocaAddr = Alloca; llvm::Value *V = Alloca.getPointer(); + assert((!getLangOpts().OpenCL || + CGM.getTarget().getTargetAddressSpace(getASTAl

[clang-tools-extra] [clang-tidy] Create bugprone-incorrect-enable-shared-from-this check (PR #102299)

2024-10-28 Thread Julian Schmidt via cfe-commits
@@ -0,0 +1,62 @@ +//===--- IncorrectEnableSharedFromThisCheck.cpp - clang-tidy --===// +// +// 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] 36c1194 - Remove optimization flags from clang codegen tests (#113714)

2024-10-28 Thread via cfe-commits
Author: Matthias Braun Date: 2024-10-28T15:34:56-07:00 New Revision: 36c119490630846c1fa0f427cc60837fd7b40a28 URL: https://github.com/llvm/llvm-project/commit/36c119490630846c1fa0f427cc60837fd7b40a28 DIFF: https://github.com/llvm/llvm-project/commit/36c119490630846c1fa0f427cc60837fd7b40a28.diff

[clang] Remove optimization flags from clang codegen tests (PR #113714)

2024-10-28 Thread Matthias Braun via cfe-commits
https://github.com/MatzeB closed https://github.com/llvm/llvm-project/pull/113714 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 034cae4 - [clang] Add clang/docs/FunctionEffectAnalysis.rst. (#109855)

2024-10-28 Thread via cfe-commits
Author: Doug Wyatt Date: 2024-10-28T15:36:37-07:00 New Revision: 034cae42b130760587770b6a001b70c2a01bdfe9 URL: https://github.com/llvm/llvm-project/commit/034cae42b130760587770b6a001b70c2a01bdfe9 DIFF: https://github.com/llvm/llvm-project/commit/034cae42b130760587770b6a001b70c2a01bdfe9.diff LO

[clang] [CIR] Call code gen; create empty cir.func op (PR #113483)

2024-10-28 Thread David Olsen via cfe-commits
dkolsen-pgi wrote: > Is it at all possible to write a test to exercise the new functionality, Yes, I am planning to write a CIR code gen test as part of this PR, to verify that a `cir.func` op is created. But there is some broken or missing functionality that I need to fix first before I can

<    1   2   3   4   5   6