[PATCH] D18614: Add TargetMachine::addEarlyAsPossiblePasses.
Justin Lebar via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 30 11:52:48 PDT 2016
jlebar created this revision.
jlebar added a reviewer: chandlerc.
jlebar added a subscriber: llvm-commits.
This is a hook to allow TargetMachine to install passes at the
EP_EarlyAsPossible PassManagerBuilder extension point.
http://reviews.llvm.org/D18614
Files:
include/llvm/Target/TargetMachine.h
Index: include/llvm/Target/TargetMachine.h
===================================================================
--- include/llvm/Target/TargetMachine.h
+++ include/llvm/Target/TargetMachine.h
@@ -217,6 +217,11 @@
/// uses this to answer queries about the IR.
virtual TargetIRAnalysis getTargetIRAnalysis();
+ /// Add target-specific function passes that should be run as early as
+ /// possible -- before most machine-independent IR passes. Most
+ /// TargetMachines have no such passes.
+ virtual void addEarlyAsPossiblePasses(PassManagerBase &) {}
+
/// These enums are meant to be passed into addPassesToEmitFile to indicate
/// what type of file to emit, and returned by it to indicate what type of
/// file could actually be made.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D18614.52097.patch
Type: text/x-patch
Size: 757 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160330/e504bf13/attachment.bin>
More information about the llvm-commits
mailing list