//===- VPlanUtils.cpp - VPlan-related utilities ---------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// #include "VPlanUtils.h" #include "VPlanPatternMatch.h" #include "llvm/Analysis/ScalarEvolutionExpressions.h" usingnamespacellvm; bool vputils::onlyFirstLaneUsed(const VPValue *Def) { … } bool vputils::onlyFirstPartUsed(const VPValue *Def) { … } VPValue *vputils::getOrCreateVPValueForSCEVExpr(VPlan &Plan, const SCEV *Expr, ScalarEvolution &SE) { … } bool vputils::isHeaderMask(const VPValue *V, VPlan &Plan) { … }