aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/X86/X86ISelLowering.h
diff options
context:
space:
mode:
authorNadav Rotem <nrotem@apple.com>2013-01-04 17:48:25 +0000
committerNadav Rotem <nrotem@apple.com>2013-01-04 17:48:25 +0000
commite503319874f57ab4a0354521b03a71cf8e07b866 (patch)
tree6d6b818c02185f5523b3cde95373bb1beb36432a /lib/Target/X86/X86ISelLowering.h
parente12bf1875481b02d07b6ce9c153ec3410068e234 (diff)
downloadexternal_llvm-e503319874f57ab4a0354521b03a71cf8e07b866.zip
external_llvm-e503319874f57ab4a0354521b03a71cf8e07b866.tar.gz
external_llvm-e503319874f57ab4a0354521b03a71cf8e07b866.tar.bz2
LoopVectorizer:
1. Add code to estimate register pressure. 2. Add code to select the unroll factor based on register pressure. 3. Add bits to TargetTransformInfo to provide the number of registers. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171469 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86ISelLowering.h')
-rw-r--r--lib/Target/X86/X86ISelLowering.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Target/X86/X86ISelLowering.h b/lib/Target/X86/X86ISelLowering.h
index 2e2fc2a..86b7764 100644
--- a/lib/Target/X86/X86ISelLowering.h
+++ b/lib/Target/X86/X86ISelLowering.h
@@ -959,6 +959,8 @@ namespace llvm {
explicit X86VectorTargetTransformInfo(const TargetLowering *TL) :
VectorTargetTransformImpl(TL) {}
+ virtual unsigned getNumberOfRegisters(bool Vector) const;
+
virtual unsigned getArithmeticInstrCost(unsigned Opcode, Type *Ty) const;
virtual unsigned getMemoryOpCost(unsigned Opcode, Type *Src,