[llvm-dev] Where to define a new library routine in LLVM framework?

Dounia Khaldi via llvm-dev llvm-dev at lists.llvm.org
Mon Aug 22 16:50:58 PDT 2016


Hello,

I am working on a transformation pass that converts malloc operations into
HBM specific allocations. Specifically, I generate a call to a new function
that I called memkind_alloc (please don't confuse it with memkind_malloc
that is Intel specific library routine). The transformation has been
successfully added to the compiler. However, I was not sure where to add
the definition of this function.

The two options I can think of are:
(1) I create a new library for this and link it with LLVM.
(2) extending an existing LLVM runtime library such as compiler-rt. If this
is the right/best option, Is compiler-rt the right place to add a new file
that will contain my new function?

Please let me know your thoughts on this.

Thanks,


-- 
Dounia KHALDI
Research Assistant Professor
Institute for Advanced Computational Science
Stony Brook University
Stony Brook, NY 11794-5250
www.iacs.stonybrook.edu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160822/566e958e/attachment.html>


More information about the llvm-dev mailing list