[clang] [clang] Emitting a warning if optimizations are enabled with sanitizers (PR #95934)

2024-06-27 Thread Sandeep Kosuri via cfe-commits
@@ -477,6 +477,8 @@ def warn_drv_disabling_vptr_no_rtti_default : Warning< def warn_drv_object_size_disabled_O0 : Warning< "the object size sanitizer has no effect at -O0, but is explicitly enabled: %0">, InGroup, DefaultWarnNoWerror; +def warn_sanitizer_with_optimization

[clang] [clang] Emitting a warning if optimizations are enabled with sanitizers (PR #95934)

2024-06-27 Thread Sandeep Kosuri via cfe-commits
@@ -1038,3 +1038,10 @@ // RUN: not %clang --target=aarch64-none-elf -fsanitize=dataflow %s -### 2>&1 | FileCheck %s -check-prefix=UNSUPPORTED-BAREMETAL // RUN: not %clang --target=arm-arm-none-eabi -fsanitize=shadow-call-stack %s -### 2>&1 | FileCheck %s -check-prefix=UNSUPPOR

[clang] Notifying assume directive as 'worked on'. (PR #90022)

2024-04-25 Thread Sandeep Kosuri via cfe-commits
https://github.com/sandeepkosuri closed https://github.com/llvm/llvm-project/pull/90022 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [OpenMP] Parse and Sema support for declare target in local scope (PR #83223)

2024-03-06 Thread Sandeep Kosuri via cfe-commits
https://github.com/sandeepkosuri closed https://github.com/llvm/llvm-project/pull/83223 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [OpenMP] Parse and Sema support for declare target in local scope (PR #83223)

2024-03-05 Thread Sandeep Kosuri via cfe-commits
https://github.com/sandeepkosuri updated https://github.com/llvm/llvm-project/pull/83223 >From cbf1b4409e379309ae3d942b3dbec0964b9ee0d1 Mon Sep 17 00:00:00 2001 From: Sandeep Kosuri Date: Tue, 27 Feb 2024 23:19:41 -0600 Subject: [PATCH 1/3] [OpenMP] Parse and Sema support for declare target in

[clang] [OpenMP] Parse and Sema support for declare target in local scope (PR #83223)

2024-03-05 Thread Sandeep Kosuri via cfe-commits
@@ -11326,6 +11326,8 @@ def err_omp_device_type_mismatch : Error< def err_omp_wrong_device_function_call : Error< "function with 'device_type(%0)' is not available on %select{device|host}1">; def note_omp_marked_device_type_here : Note<"marked as 'device_type(%0)' here">; +d

[clang] [OpenMP] Parse and Sema support for declare target in local scope (PR #83223)

2024-03-03 Thread Sandeep Kosuri via cfe-commits
https://github.com/sandeepkosuri updated https://github.com/llvm/llvm-project/pull/83223 >From cbf1b4409e379309ae3d942b3dbec0964b9ee0d1 Mon Sep 17 00:00:00 2001 From: Sandeep Kosuri Date: Tue, 27 Feb 2024 23:19:41 -0600 Subject: [PATCH 1/2] [OpenMP] Parse and Sema support for declare target in

[clang] [OpenMP] Clang Codegen Interop : Accept multiple init (PR #82604)

2024-02-28 Thread Sandeep Kosuri via cfe-commits
https://github.com/sandeepkosuri closed https://github.com/llvm/llvm-project/pull/82604 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [OpenMP] Parse and Sema support for declare target in local scope (PR #83223)

2024-02-28 Thread Sandeep Kosuri via cfe-commits
@@ -11326,6 +11326,9 @@ def err_omp_device_type_mismatch : Error< def err_omp_wrong_device_function_call : Error< "function with 'device_type(%0)' is not available on %select{device|host}1">; def note_omp_marked_device_type_here : Note<"marked as 'device_type(%0)' here">; +d

[clang] [OpenMP] Parse and Sema support for declare target in local scope (PR #83223)

2024-02-28 Thread Sandeep Kosuri via cfe-commits
@@ -23352,6 +23352,15 @@ void Sema::ActOnOpenMPDeclareTargetName(NamedDecl *ND, SourceLocation Loc, isa(ND)) && "Expected variable, function or function template."); + if (auto *VD = dyn_cast(ND)) { sandeepkosuri wrote: previously `ActOnO

[clang] [OpenMP] Parse and Sema support for declare target in local scope (PR #83223)

2024-02-28 Thread Sandeep Kosuri via cfe-commits
sandeepkosuri wrote: > One big question - why do we need it in function scope for clang? According to the spec, it is not explicitly mentioned that the `declare target` placement is not allowed inside a function scope. And I came across this [sollve test case](https://github.com/SOLLVE/sollve

[clang] [OpenMP] Parse and Sema support for declare target in local scope (PR #83223)

2024-02-27 Thread Sandeep Kosuri via cfe-commits
https://github.com/sandeepkosuri created https://github.com/llvm/llvm-project/pull/83223 - adds Parse and Sema support for the `declare target` directive inside a function scope. >From cbf1b4409e379309ae3d942b3dbec0964b9ee0d1 Mon Sep 17 00:00:00 2001 From: Sandeep Kosuri Date: Tue, 27 Feb 202

[polly] [lldb] [compiler-rt] [clang-tools-extra] [libcxxabi] [flang] [libc] [openmp] [llvm] [mlir] [libcxx] [clang] [OpenMP] Patch for Support to loop bind clause : Checking Parent Region (PR #76938)

2024-01-08 Thread Sandeep Kosuri via cfe-commits
https://github.com/sandeepkosuri closed https://github.com/llvm/llvm-project/pull/76938 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [compiler-rt] [clang-tools-extra] [libc] [mlir] [lldb] [libcxx] [flang] [llvm] [openmp] [OpenMP] atomic compare fail : Codegen support (PR #75709)

2024-01-02 Thread Sandeep Kosuri via cfe-commits
https://github.com/sandeepkosuri closed https://github.com/llvm/llvm-project/pull/75709 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [openmp] [OpenMP] return empty stmt for `nothing` (PR #74042)

2023-12-03 Thread Sandeep Kosuri via cfe-commits
https://github.com/sandeepkosuri closed https://github.com/llvm/llvm-project/pull/74042 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [openmp] [OpenMP] return empty stmt for `nothing` (PR #74042)

2023-11-30 Thread Sandeep Kosuri via cfe-commits
https://github.com/sandeepkosuri created https://github.com/llvm/llvm-project/pull/74042 - `nothing` directive was effecting the `if` block structure which it should not. So return an empty statement instead of an error statement while parsing to avoid this. >From e60bc748d9c856d6f7be9cea42df

[clang] [OpenMP] Support for `nothing` in `metadirective` (PR #73690)

2023-11-29 Thread Sandeep Kosuri via cfe-commits
https://github.com/sandeepkosuri closed https://github.com/llvm/llvm-project/pull/73690 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [OpenMP] Support for `nothing` in `metadirective` (PR #73690)

2023-11-28 Thread Sandeep Kosuri via cfe-commits
@@ -12,7 +12,6 @@ int mixed() { x=d; } -// expected-error@+2 {{#pragma omp nothing' cannot be an immediate substatement}} sandeepkosuri wrote: oh sorry for missing that ! So, is this supposed to produce a compilation error (provided arch is x86_64)?

[clang] [OpenMP] Support for `nothing` in `metadirective` (PR #73690)

2023-11-28 Thread Sandeep Kosuri via cfe-commits
@@ -12,7 +12,6 @@ int mixed() { x=d; } -// expected-error@+2 {{#pragma omp nothing' cannot be an immediate substatement}} sandeepkosuri wrote: But I don't see such a restriction for `nothing` in spec 5.1, is it really required ? https://github.com/ll

[clang] [OpenMP] Support for `nothing` in `metadirective` (PR #73690)

2023-11-28 Thread Sandeep Kosuri via cfe-commits
https://github.com/sandeepkosuri created https://github.com/llvm/llvm-project/pull/73690 - Removed an unnecessary check that was preventing `nothing` to work properly inside `metadirective`. >From 0aad8e5ca5d7e9f2d2400e6c2f3db0a374d55ed8 Mon Sep 17 00:00:00 2001 From: Sandeep Kosuri Date: Tue

[clang] d033f51 - [OpenMP] atomic compare fail : Parser & AST support

2023-11-26 Thread Sandeep Kosuri via cfe-commits
Author: Sunil Kuravinakop Date: 2023-11-26T13:34:34-06:00 New Revision: d033f51a0aafd8149f5059bc0f89ffd300093356 URL: https://github.com/llvm/llvm-project/commit/d033f51a0aafd8149f5059bc0f89ffd300093356 DIFF: https://github.com/llvm/llvm-project/commit/d033f51a0aafd8149f5059bc0f89ffd300093356.d

[clang] edd675a - [OpenMP] atomic compare fail : Parser & AST support

2023-11-20 Thread Sandeep Kosuri via cfe-commits
Author: Sunil Kuravinakop Date: 2023-11-20T03:05:31-06:00 New Revision: edd675ac283909397880f85ba68d0d5f99dc1be2 URL: https://github.com/llvm/llvm-project/commit/edd675ac283909397880f85ba68d0d5f99dc1be2 DIFF: https://github.com/llvm/llvm-project/commit/edd675ac283909397880f85ba68d0d5f99dc1be2.d

[clang] 85f6b2f - [OpenMP] Patch for Support to loop bind clause : Checking Parent Region

2023-10-26 Thread Sandeep Kosuri via cfe-commits
Author: Sunil Kuravinakop Date: 2023-10-26T05:08:41-05:00 New Revision: 85f6b2fac9a367337e43ca288c45ea783981cc16 URL: https://github.com/llvm/llvm-project/commit/85f6b2fac9a367337e43ca288c45ea783981cc16 DIFF: https://github.com/llvm/llvm-project/commit/85f6b2fac9a367337e43ca288c45ea783981cc16.d

[clang] 08bbff4 - [OpenMP] Codegen support for thread_limit on target directive for host

2023-08-26 Thread Sandeep Kosuri via cfe-commits
Author: Sandeep Kosuri Date: 2023-08-26T22:18:49-05:00 New Revision: 08bbff4aad57c70a38d5d2680a61901977e66637 URL: https://github.com/llvm/llvm-project/commit/08bbff4aad57c70a38d5d2680a61901977e66637 DIFF: https://github.com/llvm/llvm-project/commit/08bbff4aad57c70a38d5d2680a61901977e66637.diff

[clang] 58eba70 - [OpenMP] supporting additional case of declare target initializer expression list

2023-08-08 Thread Sandeep Kosuri via cfe-commits
Author: Ritanya B Bharadwaj Date: 2023-08-08T10:14:59-05:00 New Revision: 58eba709a330e4c83de0a98b50fc0acf26cb4344 URL: https://github.com/llvm/llvm-project/commit/58eba709a330e4c83de0a98b50fc0acf26cb4344 DIFF: https://github.com/llvm/llvm-project/commit/58eba709a330e4c83de0a98b50fc0acf26cb4344

[clang] 8e7f032 - [Clang][OpenMP] Support for Code Generation of loop bind clause.

2023-08-08 Thread Sandeep Kosuri via cfe-commits
Author: Sunil Kuravinakop Date: 2023-08-08T09:23:00-05:00 New Revision: 8e7f0320ad7fb760fff598aba4b2c86528c58c2d URL: https://github.com/llvm/llvm-project/commit/8e7f0320ad7fb760fff598aba4b2c86528c58c2d DIFF: https://github.com/llvm/llvm-project/commit/8e7f0320ad7fb760fff598aba4b2c86528c58c2d.d

[clang] 4097a24 - [Clang][OpenMP] Support for Code Generation of loop bind clause

2023-08-07 Thread Sandeep Kosuri via cfe-commits
Author: Sunil Kuravinakop Date: 2023-08-07T07:58:59-05:00 New Revision: 4097a24584121dba562d471fab97d3dfec1b5bff URL: https://github.com/llvm/llvm-project/commit/4097a24584121dba562d471fab97d3dfec1b5bff DIFF: https://github.com/llvm/llvm-project/commit/4097a24584121dba562d471fab97d3dfec1b5bff.d

[clang] 239ad4f - [OPENMP][NFC] Editing OpenMP support page

2023-07-24 Thread Sandeep Kosuri via cfe-commits
Author: Sandeep Kosuri Date: 2023-07-24T05:43:07-05:00 New Revision: 239ad4fde8805ad8d48babff633230313e051e36 URL: https://github.com/llvm/llvm-project/commit/239ad4fde8805ad8d48babff633230313e051e36 DIFF: https://github.com/llvm/llvm-project/commit/239ad4fde8805ad8d48babff633230313e051e36.diff

[clang] 453e02c - [OpenMP] Add support for declare target initializer expressions

2023-06-01 Thread Sandeep Kosuri via cfe-commits
Author: Ritanya B Bharadwaj Date: 2023-06-01T05:27:23-05:00 New Revision: 453e02ca0903c9f65529d21c513925ab0fdea1e1 URL: https://github.com/llvm/llvm-project/commit/453e02ca0903c9f65529d21c513925ab0fdea1e1 DIFF: https://github.com/llvm/llvm-project/commit/453e02ca0903c9f65529d21c513925ab0fdea1e1

[clang] f4ef084 - [OPENMP][NFC] added loop bind to the support page

2023-02-10 Thread Sandeep Kosuri via cfe-commits
Author: Sandeep Kosuri Date: 2023-02-10T02:33:44-06:00 New Revision: f4ef08433fe78c31493688f5ab608b2f9689f478 URL: https://github.com/llvm/llvm-project/commit/f4ef08433fe78c31493688f5ab608b2f9689f478 DIFF: https://github.com/llvm/llvm-project/commit/f4ef08433fe78c31493688f5ab608b2f9689f478.diff