[PATCH] D18614: Add TargetMachine::addEarlyAsPossiblePasses.
Justin Lebar via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 27 11:00:12 PDT 2016
jlebar updated this revision to Diff 55264.
jlebar added a comment.
Clarify comment.
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 in the optimization pipeline. 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.55264.patch
Type: text/x-patch
Size: 741 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160427/558b3f9d/attachment.bin>
More information about the llvm-commits
mailing list