Skip to content

Commit

Permalink
Remove the TODO as it's implemented
Browse files Browse the repository at this point in the history
  • Loading branch information
optimisan committed Jan 7, 2025
1 parent 87f73d9 commit 2780e96
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
1 change: 0 additions & 1 deletion llvm/include/llvm/Passes/CodeGenPassBuilder.h
Original file line number Diff line number Diff line change
Expand Up @@ -1072,7 +1072,6 @@ void CodeGenPassBuilder<Derived, TargetMachineT>::addTargetRegisterAllocator(
template <typename Derived, typename TargetMachineT>
void CodeGenPassBuilder<Derived, TargetMachineT>::addRegAllocPass(
AddMachinePass &addPass, bool Optimized) const {
// TODO: Parse Opt.RegAlloc to add register allocator.
// Use the specified -regalloc-npm={basic|greedy|fast|pbqp}
if (Opt.RegAlloc > RegAllocType::Default) {
switch (Opt.RegAlloc) {
Expand Down
6 changes: 0 additions & 6 deletions llvm/tools/llc/NewPMDriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,6 @@

using namespace llvm;

// static cl::opt<std::string>
// RegAlloc("regalloc-npm",
// cl::desc("Register allocator to use for new pass manager"),
// cl::Hidden, cl::init("default"));

// create option for RegAllocType enum
static cl::opt<RegAllocType> RegAlloc(
"regalloc-npm", cl::desc("Register allocator to use for new pass manager"),
cl::Hidden, cl::init(RegAllocType::Unset),
Expand Down

0 comments on commit 2780e96

Please sign in to comment.