瀏覽代碼

RegAllocFast: Cleanup; NFC

- Use range based for
- Variable names should start with upper case
- Add `const`
- Change class name to match filename
- Fix doxygen comments
- Use MCPhysReg instead of unsigned
- Use references instead of pointers where things cannot be nullptr
- Misc coding style improvements

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@312846 91177308-0d34-0410-b5e6-96231b3b80d8
Matthias Braun 8 年之前
父節點
當前提交
8da30a7fc9
共有 3 個文件被更改,包括 264 次插入265 次删除
  1. 1 1
      include/llvm/InitializePasses.h
  2. 1 1
      lib/CodeGen/CodeGen.cpp
  3. 262 263
      lib/CodeGen/RegAllocFast.cpp

+ 1 - 1
include/llvm/InitializePasses.h

@@ -304,7 +304,7 @@ void initializeProfileSummaryInfoWrapperPassPass(PassRegistry&);
 void initializePromoteLegacyPassPass(PassRegistry&);
 void initializePruneEHPass(PassRegistry&);
 void initializeRABasicPass(PassRegistry&);
-void initializeRAFastPass(PassRegistry&);
+void initializeRegAllocFastPass(PassRegistry&);
 void initializeRAGreedyPass(PassRegistry&);
 void initializeReassociateLegacyPassPass(PassRegistry&);
 void initializeRegBankSelectPass(PassRegistry&);

+ 1 - 1
lib/CodeGen/CodeGen.cpp

@@ -78,7 +78,7 @@ void llvm::initializeCodeGen(PassRegistry &Registry) {
   initializePreISelIntrinsicLoweringLegacyPassPass(Registry);
   initializeProcessImplicitDefsPass(Registry);
   initializeRABasicPass(Registry);
-  initializeRAFastPass(Registry);
+  initializeRegAllocFastPass(Registry);
   initializeRAGreedyPass(Registry);
   initializeRegisterCoalescerPass(Registry);
   initializeRenameIndependentSubregsPass(Registry);

File diff suppressed because it is too large
+ 262 - 263
lib/CodeGen/RegAllocFast.cpp


Some files were not shown because too many files changed in this diff