[clang] d4f0f17 - [z/OS] Disable pr59765-modules-global-ctor-dtor.cppm on z/OS to make it unsupported.

2023-06-01 Thread Zibi Sarbinowski via cfe-commits
Author: Zibi Sarbinowski Date: 2023-06-01T08:44:30-05:00 New Revision: d4f0f171d7f890abe913023e4439018fd74aa175 URL: https://github.com/llvm/llvm-project/commit/d4f0f171d7f890abe913023e4439018fd74aa175 DIFF: https://github.com/llvm/llvm-project/commit/d4f0f171d7f890abe913023e4439018fd74aa175.di

[clang] 4a27ddd - Remove 3-byte characters causing clang-tblgen to get I/O error.

2023-06-05 Thread Zibi Sarbinowski via cfe-commits
Author: Zibi Sarbinowski Date: 2023-06-05T07:58:16-05:00 New Revision: 4a27ddd423337bb1088bd997d33a1f0f49f1ead4 URL: https://github.com/llvm/llvm-project/commit/4a27ddd423337bb1088bd997d33a1f0f49f1ead4 DIFF: https://github.com/llvm/llvm-project/commit/4a27ddd423337bb1088bd997d33a1f0f49f1ead4.di

[clang] [llvm] [SystemZ][z/OS] __ptr32 support for z/OS in Clang (PR #96063)

2024-06-19 Thread Zibi Sarbinowski via cfe-commits
@@ -107,12 +107,14 @@ namespace { KEYMSCOMPAT = 0x40, KEYSYCL = 0x80, KEYCUDA = 0x100, -KEYHLSL = 0x200, -KEYFIXEDPOINT = 0x400, +KEYZOS= 0x200, +KEYNOZOS = 0x400, +KEYHLSL = 0x80

[clang] [llvm] [SystemZ][z/OS] __ptr32 support for z/OS in Clang (PR #96063)

2024-06-19 Thread Zibi Sarbinowski via cfe-commits
@@ -224,6 +252,19 @@ class LLVM_LIBRARY_VISIBILITY SystemZTargetInfo : public TargetInfo { std::pair hardwareInterferenceSizes() const override { return std::make_pair(256, 256); } + + uint64_t getPointerWidthV(LangAS AddrSpace) const override { +unsigned TargetAd

[clang] [llvm] [SystemZ][z/OS] __ptr32 support for z/OS in Clang (PR #96063)

2024-06-19 Thread Zibi Sarbinowski via cfe-commits
@@ -3567,6 +3567,14 @@ void CompilerInvocationBase::GenerateLangArgs(const LangOptions &Opts, GenerateArg(Consumer, OPT_ftrigraphs); } + if (T.isOSzOS()) { +if (!Opts.ZOSExt) + GenerateArg(Consumer, OPT_fno_zos_extensions); zibi2 wrote: I a

[clang] [llvm] [SystemZ][z/OS] __ptr32 support for z/OS in Clang (PR #96063)

2024-06-19 Thread Zibi Sarbinowski via cfe-commits
@@ -7097,10 +7098,14 @@ static bool handleMSPointerTypeQualifierAttr(TypeProcessingState &State, else if (Attrs[attr::UPtr]) ASIdx = LangAS::ptr32_uptr; } else if (PtrWidth == 64 && Attrs[attr::Ptr32]) { -if (Attrs[attr::UPtr]) +if (Triple.isOSzOS()) {

[clang] [llvm] [SystemZ][z/OS] __ptr32 support for z/OS in Clang (PR #96063)

2024-06-19 Thread Zibi Sarbinowski via cfe-commits
@@ -59,6 +59,14 @@ static std::string computeDataLayout(const Triple &TT) { // Data mangling. Ret += DataLayout::getManglingComponent(TT); + // Special features for z/OS. + if (TT.isOSzOS()) { +if (TT.isArch64Bit()) { zibi2 wrote: You can collapse t

[clang] [NFC] Format TokenKey enum (PR #101700)

2024-08-02 Thread Zibi Sarbinowski via cfe-commits
https://github.com/zibi2 approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/101700 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [SystemZ][z/OS] __ptr32 support for z/OS (PR #101696)

2024-08-07 Thread Zibi Sarbinowski via cfe-commits
@@ -0,0 +1,119 @@ +// RUN: %clang_cc1 -triple s390x-ibm-zos %s -fsyntax-only -fzos-extensions -verify zibi2 wrote: We should also test the default `-fzos-extensions` by not explicitly specifying it. https://github.com/llvm/llvm-project/pull/101696

[clang] [llvm] [SystemZ][z/OS] __ptr32 support for z/OS (PR #101696)

2024-08-07 Thread Zibi Sarbinowski via cfe-commits
@@ -211,6 +215,9 @@ static KeywordStatus getKeywordStatusHelper(const LangOptions &LangOpts, case KEYNOMS18: // The disable behavior for this is handled in getKeywordStatus. return KS_Unknown; + case KEYNOZOS: +// The disable behavior for this is handled in getK

[clang] [llvm] [SystemZ][z/OS] __ptr32 support for z/OS (PR #101696)

2024-08-07 Thread Zibi Sarbinowski via cfe-commits
@@ -3650,6 +3650,14 @@ void CompilerInvocationBase::GenerateLangArgs(const LangOptions &Opts, GenerateArg(Consumer, OPT_ftrigraphs); } + if (T.isOSzOS()) { +if (!Opts.ZOSExt) + GenerateArg(Consumer, OPT_fno_zos_extensions); + } else { +if (Opts.ZOSExt)

[clang] [llvm] [SystemZ][z/OS] __ptr32 support for z/OS (PR #101696)

2024-08-07 Thread Zibi Sarbinowski via cfe-commits
https://github.com/zibi2 edited https://github.com/llvm/llvm-project/pull/101696 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [SystemZ][z/OS] __ptr32 support for z/OS (PR #101696)

2024-08-07 Thread Zibi Sarbinowski via cfe-commits
https://github.com/zibi2 approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/101696 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [SystemZ][z/OS] __ptr32 support for z/OS (PR #101696)

2024-08-07 Thread Zibi Sarbinowski via cfe-commits
https://github.com/zibi2 approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/101696 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [SystemZ][z/OS] fix ppc-xmmintrin.c on z/OS (PR #109676)

2024-09-23 Thread Zibi Sarbinowski via cfe-commits
https://github.com/zibi2 created https://github.com/llvm/llvm-project/pull/109676 This will fix the following failure seeing on z/OS: ``` In file included from clang/test/CodeGen/PowerPC/ppc-xmmintrin.c:31: In file included from build/lib/clang/20/include/ppc_wrappers/xmmintrin.h:44: In file in

[clang] [SystemZ][z/OS] fix ppc-xmmintrin.c on z/OS (PR #109676)

2024-10-01 Thread Zibi Sarbinowski via cfe-commits
https://github.com/zibi2 closed https://github.com/llvm/llvm-project/pull/109676 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [SystemZ][z/OS] Update autoconversion functions to improve support for UTF-8 (PR #98652)

2024-09-19 Thread Zibi Sarbinowski via cfe-commits
@@ -70,6 +70,11 @@ class FileEntryRef { const FileEntry &getFileEntry() const { return *getBaseMapEntry().second->V.get(); } +#ifdef __MVS__ zibi2 wrote: I wonder if we can remove this conditional compilation guard and defined this non-const function

[clang] [llvm] [SystemZ][z/OS] Update autoconversion functions to improve support for UTF-8 (PR #98652)

2024-09-19 Thread Zibi Sarbinowski via cfe-commits
@@ -617,6 +625,23 @@ FileID SourceManager::createFileIDImpl(ContentCache &File, StringRef Filename, return FileID::get(LoadedID); } unsigned FileSize = File.getSize(); +#ifdef __MVS__ + llvm::ErrorOr NeedConversion = + llvm::needzOSConversion(Filename.str().c_str

[clang] [clang-tools-extra] [lldb] [llvm] [SystemZ][z/OS] Propagate IsText parameter to open text files as text (PR #107906)

2024-09-19 Thread Zibi Sarbinowski via cfe-commits
https://github.com/zibi2 approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/107906 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [z/OS] Make sure __alignas_is_defined and __alignof_is_defined are defined on z/OS. (PR #115368)

2024-11-07 Thread Zibi Sarbinowski via cfe-commits
https://github.com/zibi2 created https://github.com/llvm/llvm-project/pull/115368 None >From 34569fd0fbe6894d598d48e2088040ee730d308d Mon Sep 17 00:00:00 2001 From: Zbigniew Sarbinowski Date: Thu, 7 Nov 2024 20:27:52 + Subject: [PATCH] Make sure __alignas_is_defined and __alignof_is_define

[clang] [z/OS] Make sure __alignas_is_defined and __alignof_is_defined are defined on z/OS. (PR #115368)

2024-11-08 Thread Zibi Sarbinowski via cfe-commits
https://github.com/zibi2 closed https://github.com/llvm/llvm-project/pull/115368 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libcxx] [libc++] Rename `__` prefix to `__libcpp_` for locale related functions (PR #119241)

2024-12-09 Thread Zibi Sarbinowski via cfe-commits
https://github.com/zibi2 updated https://github.com/llvm/llvm-project/pull/119241 >From d3ee5e960bbf20286d726135423eb632ae45eafb Mon Sep 17 00:00:00 2001 From: Zbigniew Sarbinowski Date: Mon, 9 Dec 2024 18:17:47 + Subject: [PATCH 1/2] Rename __ prefix to __libcpp_ for locale related functi

[clang] [libcxx] [libc++] Rename `__` prefix to `__libcpp_` for locale related functions (PR #119241)

2024-12-09 Thread Zibi Sarbinowski via cfe-commits
https://github.com/zibi2 updated https://github.com/llvm/llvm-project/pull/119241 >From d3ee5e960bbf20286d726135423eb632ae45eafb Mon Sep 17 00:00:00 2001 From: Zbigniew Sarbinowski Date: Mon, 9 Dec 2024 18:17:47 + Subject: [PATCH 1/3] Rename __ prefix to __libcpp_ for locale related functi

[clang] [libcxx] [libc++] Rename `__` prefix to `__libcpp_` for locale related functions (PR #119241)

2024-12-09 Thread Zibi Sarbinowski via cfe-commits
https://github.com/zibi2 created https://github.com/llvm/llvm-project/pull/119241 This PR is necessary to resolve name collisions between locale functions defined within libc++ and macros used in z/OS system header, `locale.h`. Those macros cannot be changed since they are visible and out in

[clang] [libcxx] [libc++] Rename `__` prefix to `__libcpp_` for locale related functions (PR #119241)

2024-12-09 Thread Zibi Sarbinowski via cfe-commits
https://github.com/zibi2 updated https://github.com/llvm/llvm-project/pull/119241 >From d3ee5e960bbf20286d726135423eb632ae45eafb Mon Sep 17 00:00:00 2001 From: Zbigniew Sarbinowski Date: Mon, 9 Dec 2024 18:17:47 + Subject: [PATCH 1/4] Rename __ prefix to __libcpp_ for locale related functi

[clang] [llvm] [SystemZ][z/OS] Update autoconversion functions to improve support for UTF-8 (PR #98652)

2024-12-09 Thread Zibi Sarbinowski via cfe-commits
https://github.com/zibi2 edited https://github.com/llvm/llvm-project/pull/98652 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [SystemZ][z/OS] Update autoconversion functions to improve support for UTF-8 (PR #98652)

2024-12-09 Thread Zibi Sarbinowski via cfe-commits
@@ -70,6 +70,13 @@ class FileEntryRef { const FileEntry &getFileEntry() const { return *getBaseMapEntry().second->V.get(); } + + // This is a non const version of getFileEntry() which is used if the buffer + // size needs to be increased due to potential z/OS EBCDIC -

[clang] [llvm] [SystemZ][z/OS] Update autoconversion functions to improve support for UTF-8 (PR #98652)

2024-12-09 Thread Zibi Sarbinowski via cfe-commits
@@ -70,6 +70,13 @@ class FileEntryRef { const FileEntry &getFileEntry() const { return *getBaseMapEntry().second->V.get(); } + + // This is a non const version of getFileEntry() which is used if the buffer + // size needs to be increased due to potential z/OS EBCDIC -

[clang] [llvm] [SystemZ][z/OS] Update autoconversion functions to improve support for UTF-8 (PR #98652)

2024-12-09 Thread Zibi Sarbinowski via cfe-commits
https://github.com/zibi2 approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/98652 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [SystemZ][z/OS] Update autoconversion functions to improve support for UTF-8 (PR #98652)

2024-12-09 Thread Zibi Sarbinowski via cfe-commits
@@ -70,6 +70,11 @@ class FileEntryRef { const FileEntry &getFileEntry() const { return *getBaseMapEntry().second->V.get(); } + + // This is a non const version of getFileEntry() which is used if the buffer + // size needs to be increased due to potential z/OS EBCDIC -

[clang] [libcxx] [libc++] Rename `__` prefix to `__libcpp_` for locale related functions (PR #119241)

2025-01-28 Thread Zibi Sarbinowski via cfe-commits
zibi2 wrote: > ... the only bulletproof way of addressing this issue is push/pop Thx, I will experiment with push/pop and handle only names we have in conflict. https://github.com/llvm/llvm-project/pull/119241 ___ cfe-commits mailing list cfe-commits@

[clang] [libcxx] [libc++] Rename `__` prefix to `__libcpp_` for locale related functions (PR #119241)

2025-01-28 Thread Zibi Sarbinowski via cfe-commits
zibi2 wrote: Louis, are you still in position of not accepting the rename proposal in this PR? I was able to resolve the `__locale_t` name collision with a wrapper, but unfortunately, as Sean pointed out, we cannot undefine other macros conflicting with the inline functions in `libc++`. If

[clang] [SystemZ][z/OS] Mark text files as text in ClangScanDeps (PR #127514)

2025-02-18 Thread Zibi Sarbinowski via cfe-commits
https://github.com/zibi2 approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/127514 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Add back include for AutoConvert.h as it's needed for z/OS (PR #135430)

2025-04-11 Thread Zibi Sarbinowski via cfe-commits
https://github.com/zibi2 approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/135430 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Mark the file opened by DeserializedDeclsSourceRangePrinter as a text file (PR #135842)

2025-04-15 Thread Zibi Sarbinowski via cfe-commits
https://github.com/zibi2 created https://github.com/llvm/llvm-project/pull/135842 This PR will fix the following lit failure seeing on z/OS and most likely on Windows: `FAIL: Clang :: Frontend/dump-minimization-hints.cpp` Without `OF_TextWithCRLF` flag, a file is treated as binary and is read