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
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
@@ -107,12 +107,14 @@ namespace {
KEYMSCOMPAT = 0x40,
KEYSYCL = 0x80,
KEYCUDA = 0x100,
-KEYHLSL = 0x200,
-KEYFIXEDPOINT = 0x400,
+KEYZOS= 0x200,
+KEYNOZOS = 0x400,
+KEYHLSL = 0x80
@@ -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
@@ -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
@@ -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()) {
@@ -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
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
@@ -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
@@ -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
@@ -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)
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
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
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
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
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
@@ -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
@@ -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
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
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
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
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
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
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
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
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
@@ -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 -
@@ -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 -
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
@@ -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 -
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@
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
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
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
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
35 matches
Mail list logo