Skip to content

Commit

Permalink
Appease clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
ggeorgakoudis committed Dec 11, 2024
1 parent c14f818 commit 3174499
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ __pycache__
.vscode
.cache
miniconda3*
install*
9 changes: 6 additions & 3 deletions lib/TransformLambdaSpecialization.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,16 @@ class TransformLambdaSpecialization {
static void transform(Module &M, Function &F,
SmallVector<RuntimeConstant, 8> &RC) {
auto LambdaClass = F.getArg(0);
DBG(dbgs() << "TransformLambdaSpecialization::transform" << "\n");
DBG(dbgs() << "\t args" << "\n");
DBG(dbgs() << "TransformLambdaSpecialization::transform"
<< "\n");
DBG(dbgs() << "\t args"
<< "\n");
for (auto &Arg : RC) {
DBG(dbgs() << "{" << Arg.Value.Int64Val << ", " << Arg.Slot << " }\n");
}

DBG(dbgs() << "\t users" << "\n");
DBG(dbgs() << "\t users"
<< "\n");
for (User *User : LambdaClass->users()) {
DBG(dbgs() << *User << "\n");
if (dyn_cast<LoadInst>(User)) {
Expand Down
9 changes: 6 additions & 3 deletions pass/ProteusPass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -984,8 +984,10 @@ class ProteusJitPassImpl {
}

void findJitVariables(Module &M) {
DEBUG(dbgs() << "finding jit variables" << "\n");
DEBUG(dbgs() << "users..." << "\n");
DEBUG(dbgs() << "finding jit variables"
<< "\n");
DEBUG(dbgs() << "users..."
<< "\n");

SmallVector<Function *, 16> JitFunctions;

Expand Down Expand Up @@ -1021,7 +1023,8 @@ class ProteusJitPassImpl {
DEBUG(dbgs() << "slot: " << *Slot << "\n");
CB->setArgOperand(1, Slot);
} else {
DEBUG(dbgs() << "no gep, assuming slot 0" << "\n");
DEBUG(dbgs() << "no gep, assuming slot 0"
<< "\n");
Constant *C = ConstantInt::get(Int32Ty, 0);
CB->setArgOperand(1, C);
}
Expand Down

0 comments on commit 3174499

Please sign in to comment.