From cff4b1d33bb7a97223071b1faa7596656659e0d1 Mon Sep 17 00:00:00 2001 From: Eyck Jentzsch Date: Tue, 24 Apr 2018 19:02:21 +0200 Subject: [PATCH] template cleanup --- riscv/gen_input/templates/vm-vm_CORENAME.cpp.gtl | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/riscv/gen_input/templates/vm-vm_CORENAME.cpp.gtl b/riscv/gen_input/templates/vm-vm_CORENAME.cpp.gtl index acb1dea..d4552cc 100644 --- a/riscv/gen_input/templates/vm-vm_CORENAME.cpp.gtl +++ b/riscv/gen_input/templates/vm-vm_CORENAME.cpp.gtl @@ -112,15 +112,10 @@ protected: void gen_trap_check(llvm::BasicBlock *bb); - inline llvm::Value *gen_reg_load(unsigned i, unsigned level = 0) { return this->builder.CreateLoad(get_reg_ptr(i), false); } - llvm::Value* gen_fdispatch(std::string fname, const std::vector& args); - - llvm::Value* gen_dispatch(std::string name, llvm::Value*, llvm::Value*, llvm::Value*); - inline void gen_set_pc(virt_addr_t pc, unsigned reg_num) { llvm::Value *next_pc_v = this->builder.CreateSExtOrTrunc(this->gen_const(traits::XLEN, pc.val), this->get_type(traits::XLEN)); @@ -325,17 +320,6 @@ template inline void vm_impl::gen_trap_check(llvm::BasicBl bb, this->trap_blk, 1); } -template -inline llvm::Value* vm_impl::gen_fdispatch(std::string fname, const std::vector& args) { - return this->builder.CreateCall(this->mod->getFunction(fname), args); -} - -template -inline llvm::Value* vm_impl::gen_dispatch(std::string name, llvm::Value* val1, llvm::Value* val2, llvm::Value* val3) { -} - -} // namespace rv32imacf - template <> std::unique_ptr create(arch::${coreDef.name.toLowerCase()} *core, unsigned short port, bool dump) { std::unique_ptr<${coreDef.name.toLowerCase()}::vm_impl> ret =