]> granicus.if.org Git - llvm/commit
Template the sparse propagation solver instead of using void pointers
authorDaniel Berlin <dberlin@dberlin.org>
Mon, 2 Oct 2017 22:49:49 +0000 (22:49 +0000)
committerDaniel Berlin <dberlin@dberlin.org>
Mon, 2 Oct 2017 22:49:49 +0000 (22:49 +0000)
commitf61c0bbf0e7da59374d5ebf3817880574fb38109
treeded1724d87c8fec0dae08ac9b34da8c5f2c0afda
parent705bd5960bf4d2db226dd2f0db6cc52d82e5be80
Template the sparse propagation solver instead of using void pointers

Summary:
This avoids using void * as the type of the lattice value and ugly casts needed to make that happen.
(If folks want to use references, etc, they can use a reference_wrapper).

Reviewers: davide, mssimpso

Subscribers: sanjoy, llvm-commits

Differential Revision: https://reviews.llvm.org/D38476

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@314734 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/SparsePropagation.h
lib/Analysis/SparsePropagation.cpp