You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
384 B
35 lines
384 B
#pragma once
|
|
|
|
#include "CompilerHelper.h"
|
|
|
|
#include <llvm/IR/Module.h>
|
|
|
|
namespace dev
|
|
{
|
|
namespace eth
|
|
{
|
|
namespace jit
|
|
{
|
|
|
|
class Stack : public CompilerHelper
|
|
{
|
|
public:
|
|
Stack(llvm::IRBuilder<>& builder);
|
|
virtual ~Stack();
|
|
|
|
void pushWord(llvm::Value* _word);
|
|
llvm::Instruction* popWord();
|
|
|
|
private:
|
|
llvm::Function* m_push;
|
|
llvm::Function* m_pop;
|
|
|
|
llvm::Value* m_arg;
|
|
};
|
|
|
|
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|