feat(core): add JIT support for aarch64#6758
Merged
bluestreak01 merged 6 commits intomasterfrom Feb 9, 2026
Merged
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the
✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
bluestreak01
approved these changes
Feb 9, 2026
Contributor
[PR Coverage check]😍 pass : 30 / 30 (100.00%) file detail
|
Contributor
|
@RaphDal really cool patch. Great job! |
maciulis
pushed a commit
to maciulis/questdb
that referenced
this pull request
Feb 19, 2026
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request adds support for ARM64 (AArch64) architecture to the JIT compiler, enabling QuestDB's JIT code generation to run natively on ARM64 systems in addition to x86. The changes introduce ARM64-specific implementations for register handling, caches, and code generation, while maintaining compatibility with the existing x86 logic. Conditional compilation is used throughout to select the appropriate architecture at build time.
Architecture support and conditional compilation:
common.handcompiler.cppto select between ARM64 (aarch64.h) and x86 (x86.h,avx2.h) headers and implementations. This ensures the codebase can be built and run on both architectures. [1] [2]ARM64-specific JIT code generation:
FunctionandCountOnlyFunctionstructs incompiler.cpp, including methods for code generation, register setup, and loop logic. These mirror the x86 implementations but use ARM64 instructions and register types. [1] [2]Register and cache handling for ARM64:
common.hforjit_value_t,ColumnAddressCache,ConstantCache, andColumnValueCache, including methods for handling ARM64 registers and values, and appropriate storage for ARM64 register types. [1] [2] [3] [4]Maintaining x86 compatibility:
#elseblocks and ensuring all caches and register handling remain unchanged for x86 builds. [1] [2] [3] [4]Benchmark setup update:
SqlJitCompilerScalarBenchmark.javato ensure the execution context is properly initialized for the new architecture support.Performance improvements
SqlJitCompilerScalarBenchmarkran on an Apple M5.