mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-28 10:46:11 +00:00
Make the detection context non-constant [NFC]
llvm-svn: 270410
This commit is contained in:
parent
a61eda7698
commit
1dafea4114
@ -525,7 +525,7 @@ public:
|
||||
bool isMaxRegionInScop(const Region &R, bool Verify = true) const;
|
||||
|
||||
/// @brief Return the detection context for @p R, nullptr if @p R was invalid.
|
||||
const DetectionContext *getDetectionContext(const Region *R) const;
|
||||
DetectionContext *getDetectionContext(const Region *R) const;
|
||||
|
||||
/// @brief Return the set of rejection causes for @p R.
|
||||
const RejectLog *lookupRejectionLog(const Region *R) const;
|
||||
|
@ -1354,7 +1354,7 @@ private:
|
||||
DenseMap<const SCEV *, isl_id *> ParameterIds;
|
||||
|
||||
/// @brief The context of the SCoP created during SCoP detection.
|
||||
const ScopDetection::DetectionContext &DC;
|
||||
ScopDetection::DetectionContext &DC;
|
||||
|
||||
/// Isl context.
|
||||
///
|
||||
@ -1495,7 +1495,7 @@ private:
|
||||
|
||||
/// @brief Scop constructor; invoked from ScopInfo::buildScop.
|
||||
Scop(Region &R, ScalarEvolution &SE, LoopInfo &LI,
|
||||
const ScopDetection::DetectionContext &DC);
|
||||
ScopDetection::DetectionContext &DC);
|
||||
|
||||
/// @brief Get or create the access function set in a BasicBlock
|
||||
AccFuncSetType &getOrCreateAccessFunctions(const BasicBlock *BB) {
|
||||
|
@ -1500,7 +1500,7 @@ bool ScopDetection::runOnFunction(llvm::Function &F) {
|
||||
return false;
|
||||
}
|
||||
|
||||
const ScopDetection::DetectionContext *
|
||||
ScopDetection::DetectionContext *
|
||||
ScopDetection::getDetectionContext(const Region *R) const {
|
||||
auto DCMIt = DetectionContextMap.find(getBBPairForRegion(R));
|
||||
if (DCMIt == DetectionContextMap.end())
|
||||
|
@ -3052,7 +3052,7 @@ static Loop *getLoopSurroundingRegion(Region &R, LoopInfo &LI) {
|
||||
}
|
||||
|
||||
Scop::Scop(Region &R, ScalarEvolution &ScalarEvolution, LoopInfo &LI,
|
||||
const ScopDetection::DetectionContext &DC)
|
||||
ScopDetection::DetectionContext &DC)
|
||||
: SE(&ScalarEvolution), R(R), IsOptimized(false),
|
||||
HasSingleExitEdge(R.getExitingBlock()), HasErrorBlock(false),
|
||||
MaxLoopDepth(0), DC(DC), IslCtx(isl_ctx_alloc(), isl_ctx_free),
|
||||
|
Loading…
Reference in New Issue
Block a user