Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/llvm/llvm-project.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/polly
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2021-10-08 20:45:30 +0300
committerReid Kleckner <rnk@google.com>2021-10-08 20:46:05 +0300
commit46ef2e0bf995d8db4cbdf69f3d1bbc2487030ba0 (patch)
tree959b76a64c0d5bbe636f0c10bffb5207f81ab407 /polly
parent3ab238af4fa44a12ff3d479dc7fac50332ad2875 (diff)
Update polly for removal of CallInst::arg_operands/getNumArgOperands
Fixes polly build
Diffstat (limited to 'polly')
-rw-r--r--polly/lib/Analysis/ScopBuilder.cpp4
-rw-r--r--polly/lib/Analysis/ScopDetection.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/polly/lib/Analysis/ScopBuilder.cpp b/polly/lib/Analysis/ScopBuilder.cpp
index 60d4183ac241..35e91b4423d6 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 045d0f9dbe7d..393af1e5f605 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;