Skip to content

Commit

Permalink
Refine includes for stack.hpp
Browse files Browse the repository at this point in the history
Also added some docs.
#180
  • Loading branch information
aleasims committed Mar 12, 2024
1 parent d60e34f commit b4be672
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 14 deletions.
1 change: 1 addition & 0 deletions include/nil/blueprint/assigner.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
#include <nil/blueprint/logger.hpp>
#include <nil/blueprint/layout_resolver.hpp>
#include <nil/blueprint/input_reader.hpp>
#include <nil/blueprint/memory.hpp>
#include <nil/blueprint/non_native_marshalling.hpp>
#include <nil/blueprint/stack.hpp>
#include <nil/blueprint/integers/addition.hpp>
Expand Down
1 change: 1 addition & 0 deletions include/nil/blueprint/input_reader.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
#include "llvm/IR/Type.h"

#include <nil/blueprint/layout_resolver.hpp>
#include <nil/blueprint/memory.hpp>
#include <nil/blueprint/signature_parser.hpp>
#include <nil/blueprint/stack.hpp>
#include <nil/blueprint/non_native_marshalling.hpp>
Expand Down
22 changes: 8 additions & 14 deletions include/nil/blueprint/stack.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,24 +26,18 @@
#ifndef CRYPTO3_ASSIGNER_STACK_HPP
#define CRYPTO3_ASSIGNER_STACK_HPP

#include <list>
#include <map>
#include <variant>
#include <stack>

#include <llvm/IRReader/IRReader.h>
#include <llvm/IR/LLVMContext.h>
#include <llvm/Support/SourceMgr.h>
#include <llvm/IR/Module.h>
#include <llvm/IR/InstrTypes.h>
#include <llvm/IR/Instructions.h>
#include "llvm/IR/Constants.h"
#include "llvm/IR/Instructions.h"
#include "llvm/IR/Value.h"

#include <nil/blueprint/memory.hpp>
#include <map>
#include <vector>

namespace nil {
namespace blueprint {

/**
* @brief Execution frame. Each function call uses its own `stack_frame`, which holds
* local variables.
*/
template<typename VarType>
struct stack_frame {
/// @brief Type representing scalar registers.
Expand Down

0 comments on commit b4be672

Please sign in to comment.