diff options
| author | Riccardo Mori <patacca@autistici.org> | 2021-07-09 20:10:57 +0200 |
|---|---|---|
| committer | Riccardo Mori <patacca@autistici.org> | 2021-07-09 21:14:14 +0200 |
| commit | 0813bd1696dc0c971c21ea337df96d3a07ff86d8 (patch) | |
| tree | 293ce53c0b10d1a3b78d84a3caa7efec8c86441f /polly/lib/CodeGen/PPCGCodeGeneration.cpp | |
| parent | 768e3af6345a532d383205049679aaaccca26628 (diff) | |
[Polly][Isl] Use isl::*::ctx instead of isl::*::get_ctx. NFC
This is part of an effort to reduce the differences between the custom C++ bindings used right now by polly in `lib/External/isl/include/isl/isl-noxceptions.h` and the official isl C++ interface.
Changes made:
- Use `isl::*::ctx()` instead of `isl::*::get_ctx()` (for example `isl::space::ctx()` instead of `isl::space::get_ctx()`)
- Add `isl::` namespace in front of isl types to avoid confusion (for example `isl::space::ctx` and `isl::ctx`
- `isl-noexceptions.h` has been generated by this https://github.com/patacca/isl/commit/b64e33c62d3fe7db506f6630f9e935b663f9c5a4
Reviewed By: Meinersbur
Differential Revision: https://reviews.llvm.org/D105691
Diffstat (limited to 'polly/lib/CodeGen/PPCGCodeGeneration.cpp')
| -rw-r--r-- | polly/lib/CodeGen/PPCGCodeGeneration.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/polly/lib/CodeGen/PPCGCodeGeneration.cpp b/polly/lib/CodeGen/PPCGCodeGeneration.cpp index 9d2b3d974807..4c47e396131e 100644 --- a/polly/lib/CodeGen/PPCGCodeGeneration.cpp +++ b/polly/lib/CodeGen/PPCGCodeGeneration.cpp @@ -306,7 +306,7 @@ static __isl_give isl_id_to_ast_expr *pollyBuildAstExprForStmt( return NULL; isl::ast_build Build = isl::manage_copy(Build_C); - isl::ctx Ctx = Build.get_ctx(); + isl::ctx Ctx = Build.ctx(); isl::id_to_ast_expr RefToExpr = isl::id_to_ast_expr::alloc(Ctx, 0); Stmt->setAstBuild(Build); @@ -1158,7 +1158,7 @@ Value *GPUNodeBuilder::getArrayOffset(gpu_array_info *Array) { return nullptr; } - isl::ast_expr Result = isl::ast_expr::from_val(isl::val(Min.get_ctx(), 0)); + isl::ast_expr Result = isl::ast_expr::from_val(isl::val(Min.ctx(), 0)); for (long i = 0, n = Min.tuple_dim(); i < n; i++) { if (i > 0) { |
