diff options
Diffstat (limited to 'include/cps/ArrayHandler.h')
| -rw-r--r-- | include/cps/ArrayHandler.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/cps/ArrayHandler.h b/include/cps/ArrayHandler.h index 8ba631f..a09e708 100644 --- a/include/cps/ArrayHandler.h +++ b/include/cps/ArrayHandler.h @@ -47,6 +47,11 @@ class ArrayHandler { const std::vector<llvm::Value*> &Highs, std::vector<llvm::Value*> &Multipliers, llvm::Value *&TotalElements); + // Computes the bounds math, then fills and registers Name's metadata. + const ArrayMetadata &defineMetadata(const std::string &Name, const TypeInfo *ElemInfo, + std::vector<llvm::Value*> Lows, + std::vector<llvm::Value*> Highs, + llvm::Value *&TotalElements); bool emitCheckedIndices(const std::string &Name, const std::vector<std::unique_ptr<ExprAST>> &IndexExprs, int Line, |
