Skip to content

Add runtime allocator #158

@crazydemo

Description

@crazydemo
  • Porting GC_V1's alloc / free implementation to lib/gc/ExecutionEngine/CPURuntime/Parallel.cpp
  • Addgc_aligned_malloc / gc_aligned_free / gc_thread_aligned_malloc / gc_thread_aligned_free ops in CPURuntime dialect
  • Add memref.alloc / memref.free => cpuruntime.gc_alloc / cpuruntime.gc_free conversion pass right before ConvertSCFToOpenMPPass
  • Along with an analysis on whether the conversion is safe. (BufferViewFlowAnalysis could be used for do analysis on multiple alias. Current special case, return / yield memref)
  • Lower the cpuruntime.alloc / free to llvm, check whether there's exsisting mechanism could be reused.
  • Compare with UMF allocator.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions