diff options
author | Nikita Popov <npopov@redhat.com> | 2022-10-19 10:42:09 +0200 |
---|---|---|
committer | Nikita Popov <npopov@redhat.com> | 2022-10-19 10:54:47 +0200 |
commit | 1a9d9823c5feb6336adb6d0ad1042b81350e4e20 (patch) | |
tree | 2e3500beec1026ce220aff613077bc3b0c40cffd /polly | |
parent | a5b35dee7a945452fd0c0183cad9bcc598a6ecd6 (diff) | |
download | llvm-1a9d9823c5feb6336adb6d0ad1042b81350e4e20.zip llvm-1a9d9823c5feb6336adb6d0ad1042b81350e4e20.tar.gz llvm-1a9d9823c5feb6336adb6d0ad1042b81350e4e20.tar.bz2 |
[AA] Rename uses of FunctionModRefBehavior (NFC)
Followup to D135962 to rename remaining uses of
FunctionModRefBehavior to MemoryEffects. Does not touch API names
yet, but also updates variables names FMRB/MRB to ME, to match the
new type name.
Diffstat (limited to 'polly')
-rw-r--r-- | polly/lib/Analysis/ScopBuilder.cpp | 10 | ||||
-rw-r--r-- | polly/lib/Analysis/ScopDetection.cpp | 6 |
2 files changed, 8 insertions, 8 deletions
diff --git a/polly/lib/Analysis/ScopBuilder.cpp b/polly/lib/Analysis/ScopBuilder.cpp index 0f36d24..9f6f920 100644 --- a/polly/lib/Analysis/ScopBuilder.cpp +++ b/polly/lib/Analysis/ScopBuilder.cpp @@ -1636,12 +1636,12 @@ bool ScopBuilder::buildAccessCallInst(MemAccInst Inst, ScopStmt *Stmt) { auto *AF = SE.getConstant(IntegerType::getInt64Ty(CI->getContext()), 0); auto *CalledFunction = CI->getCalledFunction(); - FunctionModRefBehavior FMRB = AA.getModRefBehavior(CalledFunction); - if (FMRB.doesNotAccessMemory()) + MemoryEffects ME = AA.getModRefBehavior(CalledFunction); + if (ME.doesNotAccessMemory()) return true; - if (FMRB.onlyAccessesArgPointees()) { - ModRefInfo ArgMR = FMRB.getModRef(FunctionModRefBehavior::ArgMem); + if (ME.onlyAccessesArgPointees()) { + ModRefInfo ArgMR = ME.getModRef(MemoryEffects::ArgMem); auto AccType = !isModSet(ArgMR) ? MemoryAccess::READ : MemoryAccess::MAY_WRITE; Loop *L = LI.getLoopFor(Inst->getParent()); @@ -1665,7 +1665,7 @@ bool ScopBuilder::buildAccessCallInst(MemAccInst Inst, ScopStmt *Stmt) { return true; } - if (FMRB.onlyReadsMemory()) { + if (ME.onlyReadsMemory()) { GlobalReads.emplace_back(Stmt, CI); return true; } diff --git a/polly/lib/Analysis/ScopDetection.cpp b/polly/lib/Analysis/ScopDetection.cpp index 7c80a74..dbdde29 100644 --- a/polly/lib/Analysis/ScopDetection.cpp +++ b/polly/lib/Analysis/ScopDetection.cpp @@ -708,8 +708,8 @@ bool ScopDetection::isValidCallInst(CallInst &CI, } if (AllowModrefCall) { - FunctionModRefBehavior FMRB = AA.getModRefBehavior(CalledFunction); - if (FMRB.onlyAccessesArgPointees()) { + MemoryEffects ME = AA.getModRefBehavior(CalledFunction); + if (ME.onlyAccessesArgPointees()) { for (const auto &Arg : CI.args()) { if (!Arg->getType()->isPointerTy()) continue; @@ -735,7 +735,7 @@ bool ScopDetection::isValidCallInst(CallInst &CI, return true; } - if (FMRB.onlyReadsMemory()) { + if (ME.onlyReadsMemory()) { // Implicitly disable delinearization since we have an unknown // accesses with an unknown access function. Context.HasUnknownAccess = true; |