summaryrefslogtreecommitdiff
path: root/polly/include
diff options
context:
space:
mode:
authorMichael Kruse <llvm-project@meinersbur.de>2022-02-16 11:56:25 -0600
committerMichael Kruse <llvm-project@meinersbur.de>2022-02-16 12:52:17 -0600
commitad84c6f657894d98bfb9f71a69574e4b24df6174 (patch)
tree3e03f9f6e144a2bd7b22a29abc85869fb4488976 /polly/include
parente027c00821dda48d06cf73c6c16176fcb7b8adcb (diff)
downloadllvm-ad84c6f657894d98bfb9f71a69574e4b24df6174.tar.gz
[polly] Match function definitions and header declarations. NFC.
Ensure that function definitions match their declrations in header files, even if they have no effect on linking. This includes 1. Both have the same __isl_* annotations 2. Both use the same type alias 3. Remove unused declarations that have no definition 4. Use explicit polly namespace qualifier for definitions; generally, the .cpp file should use at most an anon namespace region since only symbols declared in the header file can be accessed from other translation units anyway. For defintions that have been declared in the header file, the explicit namespace qualifier ensures that both match.
Diffstat (limited to 'polly/include')
-rw-r--r--polly/include/polly/CodeGen/IslAst.h3
-rw-r--r--polly/include/polly/ScopDetection.h13
-rw-r--r--polly/include/polly/ScopInfo.h42
3 files changed, 0 insertions, 58 deletions
diff --git a/polly/include/polly/CodeGen/IslAst.h b/polly/include/polly/CodeGen/IslAst.h
index bab4fce864a8..0dc947c07800 100644
--- a/polly/include/polly/CodeGen/IslAst.h
+++ b/polly/include/polly/CodeGen/IslAst.h
@@ -40,9 +40,6 @@ public:
static IslAst create(Scop &Scop, const Dependences &D);
- /// Print a source code representation of the program.
- void pprint(raw_ostream &OS);
-
isl::ast_node getAst();
const std::shared_ptr<isl_ctx> getSharedIslCtx() const { return Ctx; }
diff --git a/polly/include/polly/ScopDetection.h b/polly/include/polly/ScopDetection.h
index e1195c92b96e..578555f84f8c 100644
--- a/polly/include/polly/ScopDetection.h
+++ b/polly/include/polly/ScopDetection.h
@@ -408,16 +408,6 @@ private:
/// @return True if the memory access is valid, false otherwise.
bool isValidMemoryAccess(MemAccInst Inst, DetectionContext &Context) const;
- /// Check if an instruction has any non trivial scalar dependencies as part of
- /// a Scop.
- ///
- /// @param Inst The instruction to check.
- /// @param RefRegion The region in respect to which we check the access
- /// function.
- ///
- /// @return True if the instruction has scalar dependences, false otherwise.
- bool hasScalarDependency(Instruction &Inst, Region &RefRegion) const;
-
/// Check if an instruction can be part of a Scop.
///
/// @param Inst The instruction to check.
@@ -562,9 +552,6 @@ public:
/// Return the set of rejection causes for @p R.
const RejectLog *lookupRejectionLog(const Region *R) const;
- /// Return true if @p SubR is a non-affine subregion in @p ScopR.
- bool isNonAffineSubRegion(const Region *SubR, const Region *ScopR) const;
-
/// Get a message why a region is invalid
///
/// @param R The region for which we get the error message
diff --git a/polly/include/polly/ScopInfo.h b/polly/include/polly/ScopInfo.h
index 9739e3310dac..84bf442e80a7 100644
--- a/polly/include/polly/ScopInfo.h
+++ b/polly/include/polly/ScopInfo.h
@@ -1614,44 +1614,6 @@ public:
/// Print ScopStmt S to raw_ostream OS.
raw_ostream &operator<<(raw_ostream &OS, const ScopStmt &S);
-/// Build the conditions sets for the branch condition @p Condition in
-/// the @p Domain.
-///
-/// This will fill @p ConditionSets with the conditions under which control
-/// will be moved from @p TI to its successors. Hence, @p ConditionSets will
-/// have as many elements as @p TI has successors. If @p TI is nullptr the
-/// context under which @p Condition is true/false will be returned as the
-/// new elements of @p ConditionSets.
-bool buildConditionSets(Scop &S, BasicBlock *BB, Value *Condition,
- Instruction *TI, Loop *L, __isl_keep isl_set *Domain,
- DenseMap<BasicBlock *, isl::set> &InvalidDomainMap,
- SmallVectorImpl<__isl_give isl_set *> &ConditionSets);
-
-/// Build condition sets for unsigned ICmpInst(s).
-/// Special handling is required for unsigned operands to ensure that if
-/// MSB (aka the Sign bit) is set for an operands in an unsigned ICmpInst
-/// it should wrap around.
-///
-/// @param IsStrictUpperBound holds information on the predicate relation
-/// between TestVal and UpperBound, i.e,
-/// TestVal < UpperBound OR TestVal <= UpperBound
-__isl_give isl_set *
-buildUnsignedConditionSets(Scop &S, BasicBlock *BB, Value *Condition,
- __isl_keep isl_set *Domain, const SCEV *SCEV_TestVal,
- const SCEV *SCEV_UpperBound,
- DenseMap<BasicBlock *, isl::set> &InvalidDomainMap,
- bool IsStrictUpperBound);
-
-/// Build the conditions sets for the terminator @p TI in the @p Domain.
-///
-/// This will fill @p ConditionSets with the conditions under which control
-/// will be moved from @p TI to its successors. Hence, @p ConditionSets will
-/// have as many elements as @p TI has successors.
-bool buildConditionSets(Scop &S, BasicBlock *BB, Instruction *TI, Loop *L,
- __isl_keep isl_set *Domain,
- DenseMap<BasicBlock *, isl::set> &InvalidDomainMap,
- SmallVectorImpl<__isl_give isl_set *> &ConditionSets);
-
/// Static Control Part
///
/// A Scop is the polyhedral representation of a control flow region detected
@@ -1918,10 +1880,6 @@ private:
//@}
- /// Initialize this ScopBuilder.
- void init(AAResults &AA, AssumptionCache &AC, DominatorTree &DT,
- LoopInfo &LI);
-
/// Return the access for the base ptr of @p MA if any.
MemoryAccess *lookupBasePtrAccess(MemoryAccess *MA);