[polly] r232711 - Add some missing __isl_give/__isl_keep annotations
Tobias Grosser
tobias at grosser.es
Thu Mar 19 00:43:35 PDT 2015
Author: grosser
Date: Thu Mar 19 02:43:35 2015
New Revision: 232711
URL: http://llvm.org/viewvc/llvm-project?rev=232711&view=rev
Log:
Add some missing __isl_give/__isl_keep annotations
Modified:
polly/trunk/lib/Transform/ScheduleOptimizer.cpp
Modified: polly/trunk/lib/Transform/ScheduleOptimizer.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Transform/ScheduleOptimizer.cpp?rev=232711&r1=232710&r2=232711&view=diff
==============================================================================
--- polly/trunk/lib/Transform/ScheduleOptimizer.cpp (original)
+++ polly/trunk/lib/Transform/ScheduleOptimizer.cpp Thu Mar 19 02:43:35 2015
@@ -190,8 +190,9 @@ private:
/// DimToVectorize can be divided by VectorWidth. The default VectorWidth is
/// currently constant and not yet target specific. This function does not
/// reason about parallelism.
- static isl_map *getPrevectorMap(isl_ctx *ctx, int DimToVectorize,
- int ScheduleDimensions, int VectorWidth = 4);
+ static __isl_give isl_map *getPrevectorMap(isl_ctx *ctx, int DimToVectorize,
+ int ScheduleDimensions,
+ int VectorWidth = 4);
/// @brief Get the scheduling map for a list of bands.
///
@@ -200,7 +201,8 @@ private:
/// the individual bands are tiled.
static isl_union_map *getScheduleForBandList(isl_band_list *BandList);
- static isl_union_map *getScheduleMap(isl_schedule *Schedule);
+ static __isl_give isl_union_map *
+ getScheduleMap(__isl_keep isl_schedule *Schedule);
using llvm::Pass::doFinalization;
@@ -326,9 +328,9 @@ isl_union_map *IslScheduleOptimizer::get
return isl_union_map_apply_range(PartialSchedule, TileUMap);
}
-isl_map *IslScheduleOptimizer::getPrevectorMap(isl_ctx *ctx, int DimToVectorize,
- int ScheduleDimensions,
- int VectorWidth) {
+__isl_give isl_map *
+IslScheduleOptimizer::getPrevectorMap(isl_ctx *ctx, int DimToVectorize,
+ int ScheduleDimensions, int VectorWidth) {
isl_space *Space;
isl_local_space *LocalSpace, *LocalSpaceRange;
isl_set *Modulo;
@@ -448,7 +450,8 @@ IslScheduleOptimizer::getScheduleForBand
return Schedule;
}
-isl_union_map *IslScheduleOptimizer::getScheduleMap(isl_schedule *Schedule) {
+__isl_give isl_union_map *
+IslScheduleOptimizer::getScheduleMap(__isl_keep isl_schedule *Schedule) {
isl_band_list *BandList = isl_schedule_get_band_forest(Schedule);
isl_union_map *ScheduleMap = getScheduleForBandList(BandList);
isl_band_list_free(BandList);
More information about the llvm-commits
mailing list