summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2010-05-27 23:57:25 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2010-05-27 23:57:25 +0000
commit700bfada6375546f82000bdd1b4cdbe87beebea5 (patch)
tree08201eccc3aed612163606f2bb3461be5c87d717 /include
parent1fa1c7b23bd06d2c1b37aa0f0cf7740fa6759e0b (diff)
downloadllvm-700bfada6375546f82000bdd1b4cdbe87beebea5.tar.gz
llvm-700bfada6375546f82000bdd1b4cdbe87beebea5.tar.bz2
llvm-700bfada6375546f82000bdd1b4cdbe87beebea5.tar.xz
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
Diffstat (limited to 'include')
-rw-r--r--include/llvm/CodeGen/Passes.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/llvm/CodeGen/Passes.h b/include/llvm/CodeGen/Passes.h
index 96fb8b907b..a8f4fbabe8 100644
--- a/include/llvm/CodeGen/Passes.h
+++ b/include/llvm/CodeGen/Passes.h
@@ -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