[llvm] [Draft] Basic JITLink AArch32 support for clang-repl (PR #77313)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 15 04:21:26 PST 2024
Stefan =?utf-8?q?Gränitz?= <stefan.graenitz at gmail.com>,
Stefan =?utf-8?q?Gränitz?= <stefan.graenitz at gmail.com>,
Stefan =?utf-8?q?Gränitz?= <stefan.graenitz at gmail.com>,
Stefan =?utf-8?q?Gränitz?= <stefan.graenitz at gmail.com>,
Stefan =?utf-8?q?Gränitz?= <stefan.graenitz at gmail.com>,
Stefan =?utf-8?q?Gränitz?= <stefan.graenitz at gmail.com>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/77313 at github.com>
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 5cc03442d392693d0d2457f571cc8fa1736bfe5e 13ce9e6c1e36bb7675ab74226bdf4b03a6f76ac4 -- llvm/include/llvm/ExecutionEngine/JITLink/aarch32.h llvm/include/llvm/ExecutionEngine/RuntimeDyldChecker.h llvm/lib/ExecutionEngine/JITLink/ELF_aarch32.cpp llvm/lib/ExecutionEngine/JITLink/aarch32.cpp llvm/lib/ExecutionEngine/Orc/LLJIT.cpp llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldChecker.cpp llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldCheckerImpl.h llvm/tools/llvm-jitlink/llvm-jitlink-coff.cpp llvm/tools/llvm-jitlink/llvm-jitlink-elf.cpp llvm/tools/llvm-jitlink/llvm-jitlink-macho.cpp llvm/tools/llvm-jitlink/llvm-jitlink.cpp llvm/tools/llvm-jitlink/llvm-jitlink.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/include/llvm/ExecutionEngine/JITLink/aarch32.h b/llvm/include/llvm/ExecutionEngine/JITLink/aarch32.h
index 44f11f6162..34c2f2d105 100644
--- a/llvm/include/llvm/ExecutionEngine/JITLink/aarch32.h
+++ b/llvm/include/llvm/ExecutionEngine/JITLink/aarch32.h
@@ -323,7 +323,6 @@ inline Error applyFixup(LinkGraph &G, Block &B, const Edge &E,
///
class StubsManager_v7 {
public:
-
StubsManager_v7() = default;
/// Name of the object file section that will contain all our stubs.
@@ -336,9 +335,16 @@ public:
private:
using StubMapEntry = SmallVector<std::tuple<bool, Symbol *>>;
- enum ThumbStatePreference { Undefined = -1, Avoid = 0, PreferNot, Prefer, Force };
-
- Symbol *selectStub(const StubMapEntry &Candidates, ThumbStatePreference ThumbState);
+ enum ThumbStatePreference {
+ Undefined = -1,
+ Avoid = 0,
+ PreferNot,
+ Prefer,
+ Force
+ };
+
+ Symbol *selectStub(const StubMapEntry &Candidates,
+ ThumbStatePreference ThumbState);
DenseMap<StringRef, StubMapEntry> StubMap;
Section *StubsSection = nullptr;
``````````
</details>
https://github.com/llvm/llvm-project/pull/77313
More information about the llvm-commits
mailing list