[all-commits] [llvm/llvm-project] 259d56: [LoopAccessAnalysis] Add a const qualifier to getM...
Vedant Paranjape via All-commits
all-commits at lists.llvm.org
Mon Jul 31 02:45:34 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 259d56d41d664d70f7b4360941c25c98f6f439b1
https://github.com/llvm/llvm-project/commit/259d56d41d664d70f7b4360941c25c98f6f439b1
Author: Vedant Paranjape <vedant.paranjape at amd.com>
Date: 2023-07-31 (Mon, 31 Jul 2023)
Changed paths:
M llvm/include/llvm/Analysis/LoopAccessAnalysis.h
Log Message:
-----------
[LoopAccessAnalysis] Add a const qualifier to getMaxSafeDepDistBytes()
Add a const qualifier to this API call, since this is a member of
MemoryDepChecker and LoopAccessInfo returns an object of this class as a
const, as follows:
const MemoryDepChecker &getDepChecker() const { return *DepChecker; }
If one tries to use function as follows:
LAI->getDepChecker().getMaxSafeDepDistBytes()
results in the following error:
passing ‘const llvm::MemoryDepChecker’ as ‘this’ argument discards
qualifiers
Reviewed By: nikic
Differential Revision: https://reviews.llvm.org/D156304
More information about the All-commits
mailing list