-
Notifications
You must be signed in to change notification settings - Fork 15.1k
[NFC][RA] Refactor RABasic into a Separate Header #149555
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,107 @@ | ||||||||||
| //===-- RegAllocBasic.h - Basic Register Allocator Header -----------------===// | ||||||||||
| // | ||||||||||
| // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | ||||||||||
| // See https://llvm.org/LICENSE.txt for license information. | ||||||||||
| // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||||||||||
| // | ||||||||||
| //===----------------------------------------------------------------------===// | ||||||||||
| // | ||||||||||
| // This file declares the RABasic class, which provides a minimal | ||||||||||
| // implementation of the basic register allocator. | ||||||||||
| // | ||||||||||
| //===----------------------------------------------------------------------===// | ||||||||||
|
|
||||||||||
| #ifndef LLVM_CODEGEN_REGALLOCBAISC_H_ | ||||||||||
| #define LLVM_CODEGEN_REGALLOCBAISC_H_ | ||||||||||
|
||||||||||
| #ifndef LLVM_CODEGEN_REGALLOCBAISC_H_ | |
| #define LLVM_CODEGEN_REGALLOCBAISC_H_ | |
| #ifndef LLVM_CODEGEN_REGALLOCBASIC_H | |
| #define LLVM_CODEGEN_REGALLOCBASIC_H |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
most files tend to use LLVM_LIB_CODEGEN_XXXX_H it seems...
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please check which include files are actually needed, and which ones can be replaced with class xxx; forward declarations. LiveRegMatrix and VirtRegMap seem unused at a first glance...
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| #endif // #ifndef LLVM_CODEGEN_REGALLOCBAISC_H_ | |
| #endif |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use syntax recognized by doxygen (and possibly fix the pre-existing problem in RegAllocBasic.cpp)