1 //===- IslAst.cpp - isl code generator interface --------------------------===// 2 // 3 // The LLVM Compiler Infrastructure 4 // 5 // This file is distributed under the University of Illinois Open Source 6 // License. See LICENSE.TXT for details. 7 // 8 //===----------------------------------------------------------------------===// 9 // 10 // The isl code generator interface takes a Scop and generates a isl_ast. This 11 // ist_ast can either be returned directly or it can be pretty printed to 12 // stdout. 13 // 14 // A typical isl_ast output looks like this: 15 // 16 // for (c2 = max(0, ceild(n + m, 2); c2 <= min(511, floord(5 * n, 3)); c2++) { 17 // bb2(c2); 18 // } 19 // 20 //===----------------------------------------------------------------------===// 21 22 #include "polly/CodeGen/CodeGeneration.h" 23 #include "polly/CodeGen/IslAst.h" 24 #include "polly/DependenceInfo.h" 25 #include "polly/LinkAllPasses.h" 26 #include "polly/Options.h" 27 #include "polly/ScopInfo.h" 28 #include "polly/Support/GICHelper.h" 29 #include "llvm/Analysis/RegionInfo.h" 30 #include "llvm/Support/Debug.h" 31 #include "isl/aff.h" 32 #include "isl/ast_build.h" 33 #include "isl/list.h" 34 #include "isl/map.h" 35 #include "isl/set.h" 36 #include "isl/union_map.h" 37 38 #define DEBUG_TYPE "polly-ast" 39 40 using namespace llvm; 41 using namespace polly; 42 43 using IslAstUserPayload = IslAstInfo::IslAstUserPayload; 44 45 static cl::opt<bool> 46 PollyParallel("polly-parallel", 47 cl::desc("Generate thread parallel code (isl codegen only)"), 48 cl::init(false), cl::ZeroOrMore, cl::cat(PollyCategory)); 49 50 static cl::opt<bool> PollyParallelForce( 51 "polly-parallel-force", 52 cl::desc( 53 "Force generation of thread parallel code ignoring any cost model"), 54 cl::init(false), cl::ZeroOrMore, cl::cat(PollyCategory)); 55 56 static cl::opt<bool> UseContext("polly-ast-use-context", 57 cl::desc("Use context"), cl::Hidden, 58 cl::init(false), cl::ZeroOrMore, 59 cl::cat(PollyCategory)); 60 61 static cl::opt<bool> DetectParallel("polly-ast-detect-parallel", 62 cl::desc("Detect parallelism"), cl::Hidden, 63 cl::init(false), cl::ZeroOrMore, 64 cl::cat(PollyCategory)); 65 66 static cl::opt<bool> NoEarlyExit( 67 "polly-no-early-exit", 68 cl::desc("Do not exit early if no benefit of the Polly version was found."), 69 cl::Hidden, cl::init(false), cl::ZeroOrMore, cl::cat(PollyCategory)); 70 71 namespace polly { 72 class IslAst { 73 public: 74 IslAst(Scop *Scop, const Dependences &D); 75 76 ~IslAst(); 77 78 /// Print a source code representation of the program. 79 void pprint(llvm::raw_ostream &OS); 80 81 __isl_give isl_ast_node *getAst(); 82 83 /// @brief Get the run-time conditions for the Scop. 84 __isl_give isl_ast_expr *getRunCondition(); 85 86 private: 87 Scop *S; 88 isl_ast_node *Root; 89 isl_ast_expr *RunCondition; 90 91 void buildRunCondition(__isl_keep isl_ast_build *Build); 92 }; 93 } // End namespace polly. 94 95 /// @brief Free an IslAstUserPayload object pointed to by @p Ptr 96 static void freeIslAstUserPayload(void *Ptr) { 97 delete ((IslAstInfo::IslAstUserPayload *)Ptr); 98 } 99 100 IslAstInfo::IslAstUserPayload::~IslAstUserPayload() { 101 isl_ast_build_free(Build); 102 isl_pw_aff_free(MinimalDependenceDistance); 103 } 104 105 /// @brief Temporary information used when building the ast. 106 struct AstBuildUserInfo { 107 /// @brief Construct and initialize the helper struct for AST creation. 108 AstBuildUserInfo() 109 : Deps(nullptr), InParallelFor(false), LastForNodeId(nullptr) {} 110 111 /// @brief The dependence information used for the parallelism check. 112 const Dependences *Deps; 113 114 /// @brief Flag to indicate that we are inside a parallel for node. 115 bool InParallelFor; 116 117 /// @brief The last iterator id created for the current SCoP. 118 isl_id *LastForNodeId; 119 }; 120 121 /// @brief Print a string @p str in a single line using @p Printer. 122 static isl_printer *printLine(__isl_take isl_printer *Printer, 123 const std::string &str, 124 __isl_keep isl_pw_aff *PWA = nullptr) { 125 Printer = isl_printer_start_line(Printer); 126 Printer = isl_printer_print_str(Printer, str.c_str()); 127 if (PWA) 128 Printer = isl_printer_print_pw_aff(Printer, PWA); 129 return isl_printer_end_line(Printer); 130 } 131 132 /// @brief Return all broken reductions as a string of clauses (OpenMP style). 133 static const std::string getBrokenReductionsStr(__isl_keep isl_ast_node *Node) { 134 IslAstInfo::MemoryAccessSet *BrokenReductions; 135 std::string str; 136 137 BrokenReductions = IslAstInfo::getBrokenReductions(Node); 138 if (!BrokenReductions || BrokenReductions->empty()) 139 return ""; 140 141 // Map each type of reduction to a comma separated list of the base addresses. 142 std::map<MemoryAccess::ReductionType, std::string> Clauses; 143 for (MemoryAccess *MA : *BrokenReductions) 144 if (MA->isWrite()) 145 Clauses[MA->getReductionType()] += 146 ", " + MA->getBaseAddr()->getName().str(); 147 148 // Now print the reductions sorted by type. Each type will cause a clause 149 // like: reduction (+ : sum0, sum1, sum2) 150 for (const auto &ReductionClause : Clauses) { 151 str += " reduction ("; 152 str += MemoryAccess::getReductionOperatorStr(ReductionClause.first); 153 // Remove the first two symbols (", ") to make the output look pretty. 154 str += " : " + ReductionClause.second.substr(2) + ")"; 155 } 156 157 return str; 158 } 159 160 /// @brief Callback executed for each for node in the ast in order to print it. 161 static isl_printer *cbPrintFor(__isl_take isl_printer *Printer, 162 __isl_take isl_ast_print_options *Options, 163 __isl_keep isl_ast_node *Node, void *) { 164 165 isl_pw_aff *DD = IslAstInfo::getMinimalDependenceDistance(Node); 166 const std::string BrokenReductionsStr = getBrokenReductionsStr(Node); 167 const std::string KnownParallelStr = "#pragma known-parallel"; 168 const std::string DepDisPragmaStr = "#pragma minimal dependence distance: "; 169 const std::string SimdPragmaStr = "#pragma simd"; 170 const std::string OmpPragmaStr = "#pragma omp parallel for"; 171 172 if (DD) 173 Printer = printLine(Printer, DepDisPragmaStr, DD); 174 175 if (IslAstInfo::isInnermostParallel(Node)) 176 Printer = printLine(Printer, SimdPragmaStr + BrokenReductionsStr); 177 178 if (IslAstInfo::isExecutedInParallel(Node)) 179 Printer = printLine(Printer, OmpPragmaStr); 180 else if (IslAstInfo::isOutermostParallel(Node)) 181 Printer = printLine(Printer, KnownParallelStr + BrokenReductionsStr); 182 183 isl_pw_aff_free(DD); 184 return isl_ast_node_for_print(Node, Printer, Options); 185 } 186 187 /// @brief Check if the current scheduling dimension is parallel 188 /// 189 /// In case the dimension is parallel we also check if any reduction 190 /// dependences is broken when we exploit this parallelism. If so, 191 /// @p IsReductionParallel will be set to true. The reduction dependences we use 192 /// to check are actually the union of the transitive closure of the initial 193 /// reduction dependences together with their reveresal. Even though these 194 /// dependences connect all iterations with each other (thus they are cyclic) 195 /// we can perform the parallelism check as we are only interested in a zero 196 /// (or non-zero) dependence distance on the dimension in question. 197 static bool astScheduleDimIsParallel(__isl_keep isl_ast_build *Build, 198 const Dependences *D, 199 IslAstUserPayload *NodeInfo) { 200 if (!D->hasValidDependences()) 201 return false; 202 203 isl_union_map *Schedule = isl_ast_build_get_schedule(Build); 204 isl_union_map *Deps = D->getDependences( 205 Dependences::TYPE_RAW | Dependences::TYPE_WAW | Dependences::TYPE_WAR); 206 207 if (!D->isParallel(Schedule, Deps, &NodeInfo->MinimalDependenceDistance) && 208 !isl_union_map_free(Schedule)) 209 return false; 210 211 isl_union_map *RedDeps = D->getDependences(Dependences::TYPE_TC_RED); 212 if (!D->isParallel(Schedule, RedDeps)) 213 NodeInfo->IsReductionParallel = true; 214 215 if (!NodeInfo->IsReductionParallel && !isl_union_map_free(Schedule)) 216 return true; 217 218 // Annotate reduction parallel nodes with the memory accesses which caused the 219 // reduction dependences parallel execution of the node conflicts with. 220 for (const auto &MaRedPair : D->getReductionDependences()) { 221 if (!MaRedPair.second) 222 continue; 223 RedDeps = isl_union_map_from_map(isl_map_copy(MaRedPair.second)); 224 if (!D->isParallel(Schedule, RedDeps)) 225 NodeInfo->BrokenReductions.insert(MaRedPair.first); 226 } 227 228 isl_union_map_free(Schedule); 229 return true; 230 } 231 232 // This method is executed before the construction of a for node. It creates 233 // an isl_id that is used to annotate the subsequently generated ast for nodes. 234 // 235 // In this function we also run the following analyses: 236 // 237 // - Detection of openmp parallel loops 238 // 239 static __isl_give isl_id *astBuildBeforeFor(__isl_keep isl_ast_build *Build, 240 void *User) { 241 AstBuildUserInfo *BuildInfo = (AstBuildUserInfo *)User; 242 IslAstUserPayload *Payload = new IslAstUserPayload(); 243 isl_id *Id = isl_id_alloc(isl_ast_build_get_ctx(Build), "", Payload); 244 Id = isl_id_set_free_user(Id, freeIslAstUserPayload); 245 BuildInfo->LastForNodeId = Id; 246 247 // Test for parallelism only if we are not already inside a parallel loop 248 if (!BuildInfo->InParallelFor) 249 BuildInfo->InParallelFor = Payload->IsOutermostParallel = 250 astScheduleDimIsParallel(Build, BuildInfo->Deps, Payload); 251 252 return Id; 253 } 254 255 // This method is executed after the construction of a for node. 256 // 257 // It performs the following actions: 258 // 259 // - Reset the 'InParallelFor' flag, as soon as we leave a for node, 260 // that is marked as openmp parallel. 261 // 262 static __isl_give isl_ast_node * 263 astBuildAfterFor(__isl_take isl_ast_node *Node, __isl_keep isl_ast_build *Build, 264 void *User) { 265 isl_id *Id = isl_ast_node_get_annotation(Node); 266 assert(Id && "Post order visit assumes annotated for nodes"); 267 IslAstUserPayload *Payload = (IslAstUserPayload *)isl_id_get_user(Id); 268 assert(Payload && "Post order visit assumes annotated for nodes"); 269 270 AstBuildUserInfo *BuildInfo = (AstBuildUserInfo *)User; 271 assert(!Payload->Build && "Build environment already set"); 272 Payload->Build = isl_ast_build_copy(Build); 273 Payload->IsInnermost = (Id == BuildInfo->LastForNodeId); 274 275 // Innermost loops that are surrounded by parallel loops have not yet been 276 // tested for parallelism. Test them here to ensure we check all innermost 277 // loops for parallelism. 278 if (Payload->IsInnermost && BuildInfo->InParallelFor) { 279 if (Payload->IsOutermostParallel) 280 Payload->IsInnermostParallel = true; 281 else 282 Payload->IsInnermostParallel = 283 astScheduleDimIsParallel(Build, BuildInfo->Deps, Payload); 284 } 285 if (Payload->IsOutermostParallel) 286 BuildInfo->InParallelFor = false; 287 288 isl_id_free(Id); 289 return Node; 290 } 291 292 static __isl_give isl_ast_node *AtEachDomain(__isl_take isl_ast_node *Node, 293 __isl_keep isl_ast_build *Build, 294 void *User) { 295 assert(!isl_ast_node_get_annotation(Node) && "Node already annotated"); 296 297 IslAstUserPayload *Payload = new IslAstUserPayload(); 298 isl_id *Id = isl_id_alloc(isl_ast_build_get_ctx(Build), "", Payload); 299 Id = isl_id_set_free_user(Id, freeIslAstUserPayload); 300 301 Payload->Build = isl_ast_build_copy(Build); 302 303 return isl_ast_node_set_annotation(Node, Id); 304 } 305 306 // Build alias check condition given a pair of minimal/maximal access. 307 static __isl_give isl_ast_expr * 308 buildCondition(__isl_keep isl_ast_build *Build, const Scop::MinMaxAccessTy *It0, 309 const Scop::MinMaxAccessTy *It1) { 310 isl_ast_expr *NonAliasGroup, *MinExpr, *MaxExpr; 311 MinExpr = isl_ast_expr_address_of(isl_ast_build_access_from_pw_multi_aff( 312 Build, isl_pw_multi_aff_copy(It0->first))); 313 MaxExpr = isl_ast_expr_address_of(isl_ast_build_access_from_pw_multi_aff( 314 Build, isl_pw_multi_aff_copy(It1->second))); 315 NonAliasGroup = isl_ast_expr_le(MaxExpr, MinExpr); 316 MinExpr = isl_ast_expr_address_of(isl_ast_build_access_from_pw_multi_aff( 317 Build, isl_pw_multi_aff_copy(It1->first))); 318 MaxExpr = isl_ast_expr_address_of(isl_ast_build_access_from_pw_multi_aff( 319 Build, isl_pw_multi_aff_copy(It0->second))); 320 NonAliasGroup = 321 isl_ast_expr_or(NonAliasGroup, isl_ast_expr_le(MaxExpr, MinExpr)); 322 323 return NonAliasGroup; 324 } 325 326 void IslAst::buildRunCondition(__isl_keep isl_ast_build *Build) { 327 // The conditions that need to be checked at run-time for this scop are 328 // available as an isl_set in the AssumedContext from which we can directly 329 // derive a run-time condition. 330 RunCondition = isl_ast_build_expr_from_set(Build, S->getAssumedContext()); 331 332 // Create the alias checks from the minimal/maximal accesses in each alias 333 // group which consists of read only and non read only (read write) accesses. 334 // This operation is by construction quadratic in the read-write pointers and 335 // linear int the read only pointers in each alias group. 336 for (const Scop::MinMaxVectorPairTy &MinMaxAccessPair : S->getAliasGroups()) { 337 auto &MinMaxReadWrite = MinMaxAccessPair.first; 338 auto &MinMaxReadOnly = MinMaxAccessPair.second; 339 auto RWAccEnd = MinMaxReadWrite.end(); 340 341 for (auto RWAccIt0 = MinMaxReadWrite.begin(); RWAccIt0 != RWAccEnd; 342 ++RWAccIt0) { 343 for (auto RWAccIt1 = RWAccIt0 + 1; RWAccIt1 != RWAccEnd; ++RWAccIt1) 344 RunCondition = isl_ast_expr_and( 345 RunCondition, buildCondition(Build, RWAccIt0, RWAccIt1)); 346 for (const Scop::MinMaxAccessTy &ROAccIt : MinMaxReadOnly) 347 RunCondition = isl_ast_expr_and( 348 RunCondition, buildCondition(Build, RWAccIt0, &ROAccIt)); 349 } 350 } 351 } 352 353 /// @brief Simple cost analysis for a given SCoP 354 /// 355 /// TODO: Improve this analysis and extract it to make it usable in other 356 /// places too. 357 /// In order to improve the cost model we could either keep track of 358 /// performed optimizations (e.g., tiling) or compute properties on the 359 /// original as well as optimized SCoP (e.g., #stride-one-accesses). 360 static bool benefitsFromPolly(Scop *Scop, bool PerformParallelTest) { 361 362 // First check the user choice. 363 if (NoEarlyExit) 364 return true; 365 366 // Check if nothing interesting happened. 367 if (!PerformParallelTest && !Scop->isOptimized() && 368 Scop->getAliasGroups().empty()) 369 return false; 370 371 // The default assumption is that Polly improves the code. 372 return true; 373 } 374 375 IslAst::IslAst(Scop *Scop, const Dependences &D) 376 : S(Scop), Root(nullptr), RunCondition(nullptr) { 377 378 bool PerformParallelTest = PollyParallel || DetectParallel || 379 PollyVectorizerChoice != VECTORIZER_NONE; 380 381 // Skip AST and code generation if there was no benefit achieved. 382 if (!benefitsFromPolly(Scop, PerformParallelTest)) 383 return; 384 385 isl_ctx *Ctx = S->getIslCtx(); 386 isl_options_set_ast_build_atomic_upper_bound(Ctx, true); 387 isl_ast_build *Build; 388 AstBuildUserInfo BuildInfo; 389 390 if (UseContext) 391 Build = isl_ast_build_from_context(S->getContext()); 392 else 393 Build = isl_ast_build_from_context(isl_set_universe(S->getParamSpace())); 394 395 Build = isl_ast_build_set_at_each_domain(Build, AtEachDomain, nullptr); 396 397 if (PerformParallelTest) { 398 BuildInfo.Deps = &D; 399 BuildInfo.InParallelFor = 0; 400 401 Build = isl_ast_build_set_before_each_for(Build, &astBuildBeforeFor, 402 &BuildInfo); 403 Build = 404 isl_ast_build_set_after_each_for(Build, &astBuildAfterFor, &BuildInfo); 405 } 406 407 buildRunCondition(Build); 408 409 Root = isl_ast_build_node_from_schedule(Build, S->getScheduleTree()); 410 411 isl_ast_build_free(Build); 412 } 413 414 IslAst::~IslAst() { 415 isl_ast_node_free(Root); 416 isl_ast_expr_free(RunCondition); 417 } 418 419 __isl_give isl_ast_node *IslAst::getAst() { return isl_ast_node_copy(Root); } 420 __isl_give isl_ast_expr *IslAst::getRunCondition() { 421 return isl_ast_expr_copy(RunCondition); 422 } 423 424 void IslAstInfo::releaseMemory() { 425 if (Ast) { 426 delete Ast; 427 Ast = nullptr; 428 } 429 } 430 431 bool IslAstInfo::runOnScop(Scop &Scop) { 432 if (Ast) 433 delete Ast; 434 435 S = &Scop; 436 437 const Dependences &D = getAnalysis<DependenceInfo>().getDependences(); 438 439 Ast = new IslAst(&Scop, D); 440 441 DEBUG(printScop(dbgs(), Scop)); 442 return false; 443 } 444 445 __isl_give isl_ast_node *IslAstInfo::getAst() const { return Ast->getAst(); } 446 __isl_give isl_ast_expr *IslAstInfo::getRunCondition() const { 447 return Ast->getRunCondition(); 448 } 449 450 IslAstUserPayload *IslAstInfo::getNodePayload(__isl_keep isl_ast_node *Node) { 451 isl_id *Id = isl_ast_node_get_annotation(Node); 452 if (!Id) 453 return nullptr; 454 IslAstUserPayload *Payload = (IslAstUserPayload *)isl_id_get_user(Id); 455 isl_id_free(Id); 456 return Payload; 457 } 458 459 bool IslAstInfo::isInnermost(__isl_keep isl_ast_node *Node) { 460 IslAstUserPayload *Payload = getNodePayload(Node); 461 return Payload && Payload->IsInnermost; 462 } 463 464 bool IslAstInfo::isParallel(__isl_keep isl_ast_node *Node) { 465 return IslAstInfo::isInnermostParallel(Node) || 466 IslAstInfo::isOutermostParallel(Node); 467 } 468 469 bool IslAstInfo::isInnermostParallel(__isl_keep isl_ast_node *Node) { 470 IslAstUserPayload *Payload = getNodePayload(Node); 471 return Payload && Payload->IsInnermostParallel; 472 } 473 474 bool IslAstInfo::isOutermostParallel(__isl_keep isl_ast_node *Node) { 475 IslAstUserPayload *Payload = getNodePayload(Node); 476 return Payload && Payload->IsOutermostParallel; 477 } 478 479 bool IslAstInfo::isReductionParallel(__isl_keep isl_ast_node *Node) { 480 IslAstUserPayload *Payload = getNodePayload(Node); 481 return Payload && Payload->IsReductionParallel; 482 } 483 484 bool IslAstInfo::isExecutedInParallel(__isl_keep isl_ast_node *Node) { 485 486 if (!PollyParallel) 487 return false; 488 489 // Do not parallelize innermost loops. 490 // 491 // Parallelizing innermost loops is often not profitable, especially if 492 // they have a low number of iterations. 493 // 494 // TODO: Decide this based on the number of loop iterations that will be 495 // executed. This can possibly require run-time checks, which again 496 // raises the question of both run-time check overhead and code size 497 // costs. 498 if (!PollyParallelForce && isInnermost(Node)) 499 return false; 500 501 return isOutermostParallel(Node) && !isReductionParallel(Node); 502 } 503 504 isl_union_map *IslAstInfo::getSchedule(__isl_keep isl_ast_node *Node) { 505 IslAstUserPayload *Payload = getNodePayload(Node); 506 return Payload ? isl_ast_build_get_schedule(Payload->Build) : nullptr; 507 } 508 509 isl_pw_aff * 510 IslAstInfo::getMinimalDependenceDistance(__isl_keep isl_ast_node *Node) { 511 IslAstUserPayload *Payload = getNodePayload(Node); 512 return Payload ? isl_pw_aff_copy(Payload->MinimalDependenceDistance) 513 : nullptr; 514 } 515 516 IslAstInfo::MemoryAccessSet * 517 IslAstInfo::getBrokenReductions(__isl_keep isl_ast_node *Node) { 518 IslAstUserPayload *Payload = getNodePayload(Node); 519 return Payload ? &Payload->BrokenReductions : nullptr; 520 } 521 522 isl_ast_build *IslAstInfo::getBuild(__isl_keep isl_ast_node *Node) { 523 IslAstUserPayload *Payload = getNodePayload(Node); 524 return Payload ? Payload->Build : nullptr; 525 } 526 527 void IslAstInfo::printScop(raw_ostream &OS, Scop &S) const { 528 isl_ast_print_options *Options; 529 isl_ast_node *RootNode = getAst(); 530 Function *F = S.getRegion().getEntry()->getParent(); 531 532 OS << ":: isl ast :: " << F->getName() << " :: " << S.getRegion().getNameStr() 533 << "\n"; 534 535 if (!RootNode) { 536 OS << ":: isl ast generation and code generation was skipped!\n\n"; 537 return; 538 } 539 540 isl_ast_expr *RunCondition = getRunCondition(); 541 char *RtCStr, *AstStr; 542 543 Options = isl_ast_print_options_alloc(S.getIslCtx()); 544 Options = isl_ast_print_options_set_print_for(Options, cbPrintFor, nullptr); 545 546 isl_printer *P = isl_printer_to_str(S.getIslCtx()); 547 P = isl_printer_print_ast_expr(P, RunCondition); 548 RtCStr = isl_printer_get_str(P); 549 P = isl_printer_flush(P); 550 P = isl_printer_indent(P, 4); 551 P = isl_printer_set_output_format(P, ISL_FORMAT_C); 552 P = isl_ast_node_print(RootNode, P, Options); 553 AstStr = isl_printer_get_str(P); 554 555 isl_union_map *Schedule = 556 isl_union_map_intersect_domain(S.getSchedule(), S.getDomains()); 557 558 DEBUG({ 559 dbgs() << S.getContextStr() << "\n"; 560 dbgs() << stringFromIslObj(Schedule); 561 }); 562 OS << "\nif (" << RtCStr << ")\n\n"; 563 OS << AstStr << "\n"; 564 OS << "else\n"; 565 OS << " { /* original code */ }\n\n"; 566 567 free(RtCStr); 568 free(AstStr); 569 570 isl_ast_expr_free(RunCondition); 571 isl_union_map_free(Schedule); 572 isl_ast_node_free(RootNode); 573 isl_printer_free(P); 574 } 575 576 void IslAstInfo::getAnalysisUsage(AnalysisUsage &AU) const { 577 // Get the Common analysis usage of ScopPasses. 578 ScopPass::getAnalysisUsage(AU); 579 AU.addRequired<ScopInfo>(); 580 AU.addRequired<DependenceInfo>(); 581 } 582 583 char IslAstInfo::ID = 0; 584 585 Pass *polly::createIslAstInfoPass() { return new IslAstInfo(); } 586 587 INITIALIZE_PASS_BEGIN(IslAstInfo, "polly-ast", 588 "Polly - Generate an AST of the SCoP (isl)", false, 589 false); 590 INITIALIZE_PASS_DEPENDENCY(ScopInfo); 591 INITIALIZE_PASS_DEPENDENCY(DependenceInfo); 592 INITIALIZE_PASS_END(IslAstInfo, "polly-ast", 593 "Polly - Generate an AST from the SCoP (isl)", false, false) 594