Browse Source

template cleanup

Eyck Jentzsch 1 year ago
parent
commit
cff4b1d33b
1 changed files with 0 additions and 16 deletions
  1. 0
    16
      riscv/gen_input/templates/vm-vm_CORENAME.cpp.gtl

+ 0
- 16
riscv/gen_input/templates/vm-vm_CORENAME.cpp.gtl View File

@@ -112,15 +112,10 @@ protected:
112 112
 
113 113
     void gen_trap_check(llvm::BasicBlock *bb);
114 114
 
115
-
116 115
     inline llvm::Value *gen_reg_load(unsigned i, unsigned level = 0) {
117 116
         return this->builder.CreateLoad(get_reg_ptr(i), false);
118 117
     }
119 118
 
120
-    llvm::Value* gen_fdispatch(std::string fname, const std::vector<llvm::Value*>& args);
121
-
122
-    llvm::Value* gen_dispatch(std::string name, llvm::Value*, llvm::Value*, llvm::Value*);
123
-
124 119
     inline void gen_set_pc(virt_addr_t pc, unsigned reg_num) {
125 120
         llvm::Value *next_pc_v = this->builder.CreateSExtOrTrunc(this->gen_const(traits<ARCH>::XLEN, pc.val),
126 121
                                                                   this->get_type(traits<ARCH>::XLEN));
@@ -325,17 +320,6 @@ template <typename ARCH> inline void vm_impl<ARCH>::gen_trap_check(llvm::BasicBl
325 320
                           bb, this->trap_blk, 1);
326 321
 }
327 322
 
328
-template<typename ARCH>
329
-inline llvm::Value* vm_impl<ARCH>::gen_fdispatch(std::string fname, const std::vector<llvm::Value*>& args) {
330
-        return this->builder.CreateCall(this->mod->getFunction(fname), args);
331
-}
332
-
333
-template<typename ARCH>
334
-inline llvm::Value* vm_impl<ARCH>::gen_dispatch(std::string name, llvm::Value* val1, llvm::Value* val2, llvm::Value* val3) {
335
-}
336
-
337
-} // namespace rv32imacf
338
-
339 323
 template <>
340 324
 std::unique_ptr<vm_if> create<arch::${coreDef.name.toLowerCase()}>(arch::${coreDef.name.toLowerCase()} *core, unsigned short port, bool dump) {
341 325
     std::unique_ptr<${coreDef.name.toLowerCase()}::vm_impl<arch::${coreDef.name.toLowerCase()}>> ret =