Skip to content

Commit 90bf953

Browse files
committed
temp test 2
1 parent 8cfef39 commit 90bf953

File tree

7 files changed

+10
-8
lines changed

7 files changed

+10
-8
lines changed

nautilus/src/nautilus/compiler/backends/mlir/LLVMIROptimizer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
#include "nautilus/compiler/backends/mlir/LLVMIROptimizer.hpp"
44
#include "nautilus/compiler/DumpHandler.hpp"
5-
#include "nautilus/compiler/backends/mlir/LLVMInliningUtils.h"
5+
#include "nautilus/compiler/backends/mlir/LLVMInliningUtils.hpp"
66
#include <llvm/ExecutionEngine/Orc/JITTargetMachineBuilder.h>
77
#include <llvm/IR/Attributes.h>
88
#include <llvm/IRReader/IRReader.h>

nautilus/src/nautilus/compiler/backends/mlir/LLVMInliningUtils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "nautilus/compiler/backends/mlir/LLVMInliningUtils.h"
1+
#include "nautilus/compiler/backends/mlir/LLVMInliningUtils.hpp"
22
#include "fmt/format.h"
33
#include "nautilus/inline.hpp"
44
#include "llvm/IR/DebugInfo.h"

nautilus/src/nautilus/compiler/backends/mlir/LLVMInliningUtils.h renamed to nautilus/src/nautilus/compiler/backends/mlir/LLVMInliningUtils.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#pragma once
22

3-
#include "LLVMInliningUtils.h"
3+
#include "LLVMInliningUtils.hpp"
44
#include <llvm/Transforms/Utils/Cloning.h>
55

66
namespace nautilus::compiler::mlir {

nautilus/src/nautilus/llvm-passes/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ if(NAUTILUS_INLINE_SUPPORTED)
3939
target_include_directories(InliningPass PRIVATE ${LLVM_INCLUDE_DIRS})
4040
target_compile_definitions(InliningPass PRIVATE ${LLVM_DEFINITIONS})
4141
set_target_properties(InliningPass PROPERTIES
42-
COMPILE_OPTIONS "-Wno-unused-parameter;-Wno-unused-variable;-Wno-extra-semi;-Wno-deprecated-copy-with-dtor"
43-
LINK_OPTIONS ""
42+
COMPILE_OPTIONS "-Wno-unused-parameter;-Wno-unused-variable;-Wno-extra-semi;-Wno-deprecated-copy-with-dtor;-stdlib=libstdc++"
43+
LINK_OPTIONS "-stdlib=libstdc++"
4444
) #override global compile and link flags for the pass
4545

4646
target_link_libraries(InliningPass

nautilus/src/nautilus/llvm-passes/FunctionInliningPass.hpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#pragma once
2-
#include "InliningUtils.h"
2+
#include "InliningUtils.hpp"
33
#include "llvm/Bitcode/BitcodeWriter.h"
44
#include "llvm/IR/DIBuilder.h"
55
#include "llvm/IR/Function.h"
@@ -26,6 +26,7 @@ static llvm::Function* findSymbolRegistrationFunction(llvm::Module& M);
2626
inline llvm::PreservedAnalyses NautilusInlineRegistrationPass::run(llvm::Module& M, llvm::ModuleAnalysisManager& MAM) {
2727
auto& ctx = M.getContext();
2828

29+
llvm::errs() << "Running NautilusInlineRegistrationPass on" << M.getModuleIdentifier() << "\n";
2930
// Find registration functions
3031
auto* bitcodeRegistrationFunction = findBitcodeRegistrationFunction(M);
3132
auto* symbolRegistrationFunction = findSymbolRegistrationFunction(M);
@@ -52,6 +53,7 @@ inline llvm::PreservedAnalyses NautilusInlineRegistrationPass::run(llvm::Module&
5253
}
5354
}
5455
if (toInline) {
56+
llvm::errs() << "found inlinable function: " << F.getName() << "\n";
5557
if (!clonedM) {
5658
clonedM = CloneModule(M);
5759
}
@@ -81,7 +83,7 @@ inline llvm::PreservedAnalyses NautilusInlineRegistrationPass::run(llvm::Module&
8183
}
8284
ptr = newPtr;
8385
}
84-
86+
llvm::errs() << "inserting registration calls " << std::get<1>(*result).size() << "\n";
8587
// Insert registry calls into the initializer function to populate them at runtime
8688
insertBitcodeRegistryCall(ctorBuilder, bitcodeRegistrationFunction, F, std::get<0>(*result));
8789
insertSymbolRegistryCalls(ctorBuilder, symbolRegistrationFunction, std::get<1>(*result));

nautilus/src/nautilus/llvm-passes/InliningUtils.h renamed to nautilus/src/nautilus/llvm-passes/InliningUtils.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#pragma once
22

3-
#include "CloningUtils.h"
3+
#include "CloningUtils.hpp"
44
#include "llvm/Bitcode/BitcodeWriter.h"
55
#include "llvm/IR/Constants.h"
66
#include "llvm/IR/DIBuilder.h"

0 commit comments

Comments
 (0)