Skip to content

Commit

Permalink
Removed redundant virtual method
Browse files Browse the repository at this point in the history
  • Loading branch information
jim19930609 committed May 31, 2022
1 parent d96bdde commit bf0975b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 15 deletions.
8 changes: 0 additions & 8 deletions taichi/backends/cuda/codegen_cuda.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -954,12 +954,4 @@ FunctionType CUDAModuleToFunctionConverter::convert(
#endif // TI_WITH_CUDA
}

FunctionType CUDAModuleToFunctionConverter::convert(
const Kernel *kernel,
std::unique_ptr<llvm::Module> mod,
std::vector<OffloadedTask> &&tasks) const {
return convert(kernel->name, infer_launch_args(kernel), std::move(mod),
std::move(tasks));
}

TLANG_NAMESPACE_END
4 changes: 0 additions & 4 deletions taichi/backends/cuda/codegen_cuda.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@ class CUDAModuleToFunctionConverter : public ModuleToFunctionConverter {
const std::vector<LlvmLaunchArgInfo> &args,
std::unique_ptr<llvm::Module> mod,
std::vector<OffloadedTask> &&tasks) const override;

FunctionType convert(const Kernel *kernel,
std::unique_ptr<llvm::Module> mod,
std::vector<OffloadedTask> &&tasks) const override;
};

TLANG_NAMESPACE_END
6 changes: 3 additions & 3 deletions taichi/codegen/codegen_llvm.h
Original file line number Diff line number Diff line change
Expand Up @@ -427,9 +427,9 @@ class ModuleToFunctionConverter {
std::unique_ptr<llvm::Module> mod,
std::vector<OffloadedTask> &&tasks) const;

virtual FunctionType convert(const Kernel *kernel,
std::unique_ptr<llvm::Module> mod,
std::vector<OffloadedTask> &&tasks) const;
FunctionType convert(const Kernel *kernel,
std::unique_ptr<llvm::Module> mod,
std::vector<OffloadedTask> &&tasks) const;

protected:
TaichiLLVMContext *tlctx_{nullptr};
Expand Down

0 comments on commit bf0975b

Please sign in to comment.