aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2010-07-24 20:48:54 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2010-07-24 20:48:54 +0000
commit3de7500eba1846790f95f6e0b7a20b503d94f25a (patch)
treed62766e7cee631cf10aa71a3322e6aa26bb5b0fc /include
parent107b6fffa4f46484a84743835b87fdcb699804bd (diff)
downloadexternal_llvm-3de7500eba1846790f95f6e0b7a20b503d94f25a.zip
external_llvm-3de7500eba1846790f95f6e0b7a20b503d94f25a.tar.gz
external_llvm-3de7500eba1846790f95f6e0b7a20b503d94f25a.tar.bz2
Add hook to insert late LLVM=>LLVM passes just before isel
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109354 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Target/TargetMachine.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/include/llvm/Target/TargetMachine.h b/include/llvm/Target/TargetMachine.h
index 60c0064..42e99e0 100644
--- a/include/llvm/Target/TargetMachine.h
+++ b/include/llvm/Target/TargetMachine.h
@@ -312,10 +312,15 @@ public:
bool DisableVerify = true);
/// Target-Independent Code Generator Pass Configuration Options.
-
- /// addInstSelector - This method should add any "last minute" LLVM->LLVM
- /// passes, then install an instruction selector pass, which converts from
- /// LLVM code to machine instructions.
+
+ /// addPreISelPasses - This method should add any "last minute" LLVM->LLVM
+ /// passes (which are run just before instruction selector).
+ virtual bool addPreISel(PassManagerBase &, CodeGenOpt::Level) {
+ return true;
+ }
+
+ /// addInstSelector - This method should install an instruction selector pass,
+ /// which converts from LLVM code to machine instructions.
virtual bool addInstSelector(PassManagerBase &, CodeGenOpt::Level) {
return true;
}