Skip to content
  • Chandler Carruth's avatar
    [PM] Add support for using SFINAE to reflect on an analysis's result · f6e9986a
    Chandler Carruth authored
    type and detect whether or not it provides an 'invalidate' member the
    analysis manager should use.
    
    This lets the overwhelming common case of *not* caring about custom
    behavior when an analysis is invalidated be the the obvious default
    behavior with no code written by the author of an analysis. Only when
    they write code specifically to handle invalidation does it get used.
    
    Both cases are actually covered by tests here. The test analysis uses
    the default behavior, and the proxy module analysis actually has custom
    behavior on invalidation that is firing correctly. (In fact, this is the
    analysis which was the primary motivation for having custom invalidation
    behavior in the first place.)
    
    llvm-svn: 195332
    f6e9986a
Loading