[polly] 46ef2e0 - Update polly for removal of CallInst::arg_operands/getNumArgOperands

Michael Kruse via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 8 20:08:11 PDT 2021


Thank you.

Michael

Am Fr., 8. Okt. 2021 um 12:46 Uhr schrieb Reid Kleckner via
llvm-commits <llvm-commits at lists.llvm.org>:
>
>
> Author: Reid Kleckner
> Date: 2021-10-08T10:46:05-07:00
> New Revision: 46ef2e0bf995d8db4cbdf69f3d1bbc2487030ba0
>
> URL: https://github.com/llvm/llvm-project/commit/46ef2e0bf995d8db4cbdf69f3d1bbc2487030ba0
> DIFF: https://github.com/llvm/llvm-project/commit/46ef2e0bf995d8db4cbdf69f3d1bbc2487030ba0.diff
>
> LOG: Update polly for removal of CallInst::arg_operands/getNumArgOperands
>
> Fixes polly build
>
> Added:
>
>
> Modified:
>     polly/lib/Analysis/ScopBuilder.cpp
>     polly/lib/Analysis/ScopDetection.cpp
>
> Removed:
>
>
>
> ################################################################################
> diff  --git a/polly/lib/Analysis/ScopBuilder.cpp b/polly/lib/Analysis/ScopBuilder.cpp
> index 60d4183ac241c..35e91b4423d6d 100644
> --- a/polly/lib/Analysis/ScopBuilder.cpp
> +++ b/polly/lib/Analysis/ScopBuilder.cpp
> @@ -1554,7 +1554,7 @@ void ScopBuilder::addUserAssumptions(
>      AssumptionCache &AC, DenseMap<BasicBlock *, isl::set> &InvalidDomainMap) {
>    for (auto &Assumption : AC.assumptions()) {
>      auto *CI = dyn_cast_or_null<CallInst>(Assumption);
> -    if (!CI || CI->getNumArgOperands() != 1)
> +    if (!CI || CI->arg_size() != 1)
>        continue;
>
>      bool InScop = scop->contains(CI);
> @@ -1860,7 +1860,7 @@ bool ScopBuilder::buildAccessCallInst(MemAccInst Inst, ScopStmt *Stmt) {
>    case FMRB_OnlyAccessesArgumentPointees: {
>      auto AccType = ReadOnly ? MemoryAccess::READ : MemoryAccess::MAY_WRITE;
>      Loop *L = LI.getLoopFor(Inst->getParent());
> -    for (const auto &Arg : CI->arg_operands()) {
> +    for (const auto &Arg : CI->args()) {
>        if (!Arg->getType()->isPointerTy())
>          continue;
>
>
> diff  --git a/polly/lib/Analysis/ScopDetection.cpp b/polly/lib/Analysis/ScopDetection.cpp
> index 045d0f9dbe7d2..393af1e5f6053 100644
> --- a/polly/lib/Analysis/ScopDetection.cpp
> +++ b/polly/lib/Analysis/ScopDetection.cpp
> @@ -729,7 +729,7 @@ bool ScopDetection::isValidCallInst(CallInst &CI,
>      case FMRB_OnlyReadsArgumentPointees:
>      case FMRB_OnlyAccessesArgumentPointees:
>      case FMRB_OnlyWritesArgumentPointees:
> -      for (const auto &Arg : CI.arg_operands()) {
> +      for (const auto &Arg : CI.args()) {
>          if (!Arg->getType()->isPointerTy())
>            continue;
>
>
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits


More information about the llvm-commits mailing list