-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(ci): llvm components mapping && mac minimize build size
- Loading branch information
Showing
12 changed files
with
2,157 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,9 @@ | |
|
||
llvm_18 | ||
cmake # need for finding ZLIB::ZLIB LLVM cmake dependency | ||
libxml2 | ||
libffi | ||
libpfm | ||
]; | ||
}; | ||
}); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#include "Disassembler.h" | ||
|
||
#include <nanobind/nanobind.h> | ||
#include <llvm-c/Disassembler.h> | ||
#include "types_priv.h" | ||
|
||
namespace nb = nanobind; | ||
using namespace nb::literals; | ||
|
||
void populateDisassembler(nb::module_ &m) { | ||
// m.def("create_disasm") | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#ifndef LLVMPYM_DISASSEMBLER_H | ||
#define LLVMPYM_DISASSEMBLER_H | ||
|
||
#include <nanobind/nanobind.h> | ||
|
||
void populateDisassembler(nanobind::module_ &m); | ||
|
||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#include "PymDisasmContext.h" | ||
#include <llvm-c/Disassembler.h> | ||
|
||
PymDisasmContext::PymDisasmContext(LLVMDisasmContextRef obj) | ||
: obj(get_shared_obj(obj)) { } | ||
|
||
LLVMDisasmContextRef PymDisasmContext::get() const { | ||
return obj.get(); | ||
} | ||
|
||
SHARED_POINTER_IMPL(PymDisasmContext, LLVMDisasmContextRef, void, | ||
LLVMDisasmDispose) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#ifndef LLVMPYM_TYPES_PRIV_PYMDISASMCONTEXT_H | ||
#define LLVMPYM_TYPES_PRIV_PYMDISASMCONTEXT_H | ||
|
||
#include <llvm-c/DisassemblerTypes.h> | ||
#include <memory> | ||
#include <unordered_map> | ||
#include <mutex> | ||
#include "PymLLVMObject.h" | ||
#include "utils.h" | ||
|
||
class PymDisasmContext : public PymLLVMObject<PymDisasmContext, LLVMDisasmContextRef> { | ||
public: | ||
explicit PymDisasmContext(LLVMDisasmContextRef data); | ||
LLVMDisasmContextRef get() const; | ||
|
||
private: | ||
SHARED_POINTER_DEF(LLVMDisasmContextRef, void); | ||
}; | ||
|
||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from .llvmpym_ext.disassembler import * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.