[polly] 46ef2e0 - Update polly for removal of CallInst::arg_operands/getNumArgOperands
Reid Kleckner via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 8 10:46:09 PDT 2021
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;
More information about the llvm-commits
mailing list