Skip to content

Commit

Permalink
clang format files
Browse files Browse the repository at this point in the history
  • Loading branch information
optimisan committed Dec 19, 2024
1 parent 6345993 commit 5c2a6b2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
16 changes: 8 additions & 8 deletions llvm/include/llvm/Passes/CodeGenPassBuilder.h
Original file line number Diff line number Diff line change
Expand Up @@ -1078,14 +1078,14 @@ void CodeGenPassBuilder<Derived, TargetMachineT>::addRegAllocPass(
// Use the specified -regalloc-npm={basic|greedy|fast|pbqp}
if (Opt.RegAlloc > RegAllocType::Default) {
switch (Opt.RegAlloc) {
case RegAllocType::Fast:
addPass(RegAllocFastPass());
break;
case RegAllocType::Greedy:
addPass(RAGreedyPass());
break;
default:
report_fatal_error("Register allocator not supported yet.", false);
case RegAllocType::Fast:
addPass(RegAllocFastPass());
break;
case RegAllocType::Greedy:
addPass(RAGreedyPass());
break;
default:
report_fatal_error("Register allocator not supported yet.", false);
}
return;
}
Expand Down
3 changes: 2 additions & 1 deletion llvm/lib/Passes/PassBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1315,7 +1315,8 @@ parseBoundsCheckingOptions(StringRef Params) {
return Mode;
}

Expected<RAGreedyPass::Options> parseRegAllocGreedyFilterFunc(PassBuilder &PB, StringRef Params) {
Expected<RAGreedyPass::Options>
parseRegAllocGreedyFilterFunc(PassBuilder &PB, StringRef Params) {
if (Params.empty() || Params == "all") {
return RAGreedyPass::Options();
}
Expand Down

0 comments on commit 5c2a6b2

Please sign in to comment.