mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-29 10:25:12 +00:00
Add a -regalloc=default option that chooses a register allocator based on the -O
optimization level. This only really affects llc for now because both the llvm-gcc and clang front ends override the default register allocator. I intend to remove that code later. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@104904 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -85,9 +85,10 @@ namespace llvm {
|
||||
///
|
||||
FunctionPass *createDeadMachineInstructionElimPass();
|
||||
|
||||
/// Creates a register allocator as the user specified on the command line.
|
||||
/// Creates a register allocator as the user specified on the command line, or
|
||||
/// picks one that matches OptLevel.
|
||||
///
|
||||
FunctionPass *createRegisterAllocator();
|
||||
FunctionPass *createRegisterAllocator(CodeGenOpt::Level OptLevel);
|
||||
|
||||
/// LocalRegisterAllocation Pass - This pass register allocates the input code
|
||||
/// a basic block at a time, yielding code better than the simple register
|
||||
|
Reference in New Issue
Block a user