[llvm] r194541 - Give folks a reference to some material on the fundamental design

Chandler Carruth chandlerc at gmail.com
Tue Nov 12 17:51:36 PST 2013


Author: chandlerc
Date: Tue Nov 12 19:51:36 2013
New Revision: 194541

URL: http://llvm.org/viewvc/llvm-project?rev=194541&view=rev
Log:
Give folks a reference to some material on the fundamental design
pattern in use here. Addresses review feedback from Sean (thanks!) and
others.

Modified:
    llvm/trunk/include/llvm/IR/PassManager.h

Modified: llvm/trunk/include/llvm/IR/PassManager.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/PassManager.h?rev=194541&r1=194540&r2=194541&view=diff
==============================================================================
--- llvm/trunk/include/llvm/IR/PassManager.h (original)
+++ llvm/trunk/include/llvm/IR/PassManager.h Tue Nov 12 19:51:36 2013
@@ -25,6 +25,13 @@
 ///   a Function.
 /// * ModulePassManager must be directly run, runs each pass over the Module.
 ///
+/// Note that the implementations of the pass managers use concept-based
+/// polymorphism as outlined in the "Value Semantics and Concept-based
+/// Polymorphism" talk (or its abbreviated sibling "Inheritance Is The Base
+/// Class of Evil") by Sean Parent:
+/// * http://github.com/sean-parent/sean-parent.github.com/wiki/Papers-and-Presentations
+/// * http://channel9.msdn.com/Events/GoingNative/2013/Inheritance-Is-The-Base-Class-of-Evil
+///
 //===----------------------------------------------------------------------===//
 
 #include "llvm/ADT/DenseMap.h"





More information about the llvm-commits mailing list