Skip to content

Commit

Permalink
Uniformize
Browse files Browse the repository at this point in the history
  • Loading branch information
fsaintjacques committed Dec 26, 2019
1 parent a0a2358 commit 69ce13e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 1 addition & 2 deletions include/jitmap/query/compiler.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ class QueryIRCodeGen {
public:
QueryIRCodeGen(const std::string& module_name, CompilerOptions options = {});
QueryIRCodeGen(QueryIRCodeGen&&);
~QueryIRCodeGen();

// Compile a query expression into the module.
//
Expand Down Expand Up @@ -80,8 +81,6 @@ class QueryIRCodeGen {
std::pair<std::unique_ptr<llvm::Module>, std::unique_ptr<llvm::LLVMContext>>;
ModuleAndContext Finish() &&;

~QueryIRCodeGen();

private:
class Impl;
std::unique_ptr<Impl> impl_;
Expand Down
3 changes: 3 additions & 0 deletions include/jitmap/query/jit.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ typedef void (*DenseEvalFn)(const BitsetWordType**, BitsetWordType*);
class JitEngine {
public:
JitEngine(CompilerOptions options = {});
JitEngine(JitEngine&&);
~JitEngine();

// Return the LLVM name for the host CPU.
Expand Down Expand Up @@ -51,6 +52,8 @@ class JitEngine {
private:
class Impl;
std::unique_ptr<Impl> impl_;

JitEngine(const JitEngine&) = delete;
};

} // namespace query
Expand Down
1 change: 1 addition & 0 deletions src/jitmap/query/jit.cc
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ JitEngine::JitEngine(CompilerOptions opts)
: impl_(std::make_unique<JitEngine::Impl>(InitHostTargetMachineBuilder(opts), opts)) {
}
JitEngine::~JitEngine() {}
JitEngine::JitEngine(JitEngine&& other) { std::swap(impl_, other.impl_); }

std::string JitEngine::GetTargetCPU() const { return impl_->GetTargetCPU(); }
std::string JitEngine::GetTargetFeatureString() const {
Expand Down

0 comments on commit 69ce13e

Please sign in to comment.