From b4be672c228b48f1b2c36156fb5c36effe5b81eb Mon Sep 17 00:00:00 2001 From: Alexander Evgin Date: Tue, 12 Mar 2024 19:11:53 +0000 Subject: [PATCH] Refine includes for stack.hpp Also added some docs. #180 --- include/nil/blueprint/assigner.hpp | 1 + include/nil/blueprint/input_reader.hpp | 1 + include/nil/blueprint/stack.hpp | 22 ++++++++-------------- 3 files changed, 10 insertions(+), 14 deletions(-) diff --git a/include/nil/blueprint/assigner.hpp b/include/nil/blueprint/assigner.hpp index 50443fd5..1dfdebff 100644 --- a/include/nil/blueprint/assigner.hpp +++ b/include/nil/blueprint/assigner.hpp @@ -55,6 +55,7 @@ #include #include #include +#include #include #include #include diff --git a/include/nil/blueprint/input_reader.hpp b/include/nil/blueprint/input_reader.hpp index cb64e28d..8cf0eae5 100644 --- a/include/nil/blueprint/input_reader.hpp +++ b/include/nil/blueprint/input_reader.hpp @@ -31,6 +31,7 @@ #include "llvm/IR/Type.h" #include +#include #include #include #include diff --git a/include/nil/blueprint/stack.hpp b/include/nil/blueprint/stack.hpp index cd9bc70a..b30a57d1 100644 --- a/include/nil/blueprint/stack.hpp +++ b/include/nil/blueprint/stack.hpp @@ -26,24 +26,18 @@ #ifndef CRYPTO3_ASSIGNER_STACK_HPP #define CRYPTO3_ASSIGNER_STACK_HPP -#include -#include -#include -#include - -#include -#include -#include -#include -#include -#include -#include "llvm/IR/Constants.h" +#include "llvm/IR/Instructions.h" +#include "llvm/IR/Value.h" -#include +#include +#include namespace nil { namespace blueprint { - + /** + * @brief Execution frame. Each function call uses its own `stack_frame`, which holds + * local variables. + */ template struct stack_frame { /// @brief Type representing scalar registers.