[llvm] [z/OS] Implement shared memory handling for JIT (PR #89933)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 24 07:18:35 PDT 2024
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff 74e07ab523122d6a8347b25770062ab331b6bb84 00033e062e3bebf6a1255ac7f76838a856e13ec8 -- llvm/lib/ExecutionEngine/Orc/MemoryMapper.cpp llvm/lib/ExecutionEngine/Orc/TargetProcess/ExecutorSharedMemoryMapperService.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/ExecutionEngine/Orc/MemoryMapper.cpp b/llvm/lib/ExecutionEngine/Orc/MemoryMapper.cpp
index ba538abcc3..bba3329e8c 100644
--- a/llvm/lib/ExecutionEngine/Orc/MemoryMapper.cpp
+++ b/llvm/lib/ExecutionEngine/Orc/MemoryMapper.cpp
@@ -17,8 +17,8 @@
#include <fcntl.h>
#include <sys/mman.h>
#if defined(__MVS__)
-#include <sys/shm.h>
#include "llvm/Support/BLAKE3.h"
+#include <sys/shm.h>
#endif
#include <unistd.h>
#elif defined(_WIN32)
diff --git a/llvm/lib/ExecutionEngine/Orc/TargetProcess/ExecutorSharedMemoryMapperService.cpp b/llvm/lib/ExecutionEngine/Orc/TargetProcess/ExecutorSharedMemoryMapperService.cpp
index eb9864ee83..f5118c0f2b 100644
--- a/llvm/lib/ExecutionEngine/Orc/TargetProcess/ExecutorSharedMemoryMapperService.cpp
+++ b/llvm/lib/ExecutionEngine/Orc/TargetProcess/ExecutorSharedMemoryMapperService.cpp
@@ -19,8 +19,8 @@
#include <fcntl.h>
#include <sys/mman.h>
#if defined(__MVS__)
-#include <sys/shm.h>
#include "llvm/Support/BLAKE3.h"
+#include <sys/shm.h>
#endif
#include <unistd.h>
#endif
@@ -152,7 +152,7 @@ Expected<ExecutorAddr> ExecutorSharedMemoryMapperService::initialize(
#if defined(LLVM_ON_UNIX)
#if defined(__MVS__)
- // TODO Is it possible to change the protection level?
+ // TODO Is it possible to change the protection level?
#else
int NativeProt = 0;
if ((Segment.RAG.Prot & MemProt::Read) == MemProt::Read)
``````````
</details>
https://github.com/llvm/llvm-project/pull/89933
More information about the llvm-commits
mailing list