[VPlan] Make various tryTo* helpers private and mark as const (NFC).
authorFlorian Hahn <flo@fhahn.com>
Thu, 16 Apr 2020 09:43:09 +0000 (10:43 +0100)
committerFlorian Hahn <flo@fhahn.com>
Tue, 21 Apr 2020 13:49:02 +0000 (14:49 +0100)
commit647c9e72e4bee3676f19e92dd5be84f165dcaffa
tree60286363dde50f943672a2085bb2e3f8c45f32fd
parentba72389269bb6201ae79b1425ef7b3ee5a0941cf
[VPlan] Make various tryTo* helpers private and mark as const (NFC).

The individual tryTo* helpers do not need to be public. Also, the
builder contained two consecutive public: sections, which is not
necessary. Moved the remaining public methods after the constructor.

Also make some of the tryTo* helpers const.

Reviewers: gilr, rengolin, Ayal, hsaito

Reviewed by: gilr

Differential Revision: https://reviews.llvm.org/D78288
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
llvm/lib/Transforms/Vectorize/VPRecipeBuilder.h