[LLVMdev] clang and static functions

Arvind Sudarsanam arvind.sudarsanam at aggiemail.usu.edu
Mon Dec 14 11:49:56 PST 2009


Hi,

I am trying to compile a single module (dgemm.c) using clang and
generate dgemm.ll.
Command: clang -emit-llvm dgemm.c -S -o dgemm.ll
Some of the functions are declared as static and clang ignores these functions:

One of the functions is:
static void innerloop(double a, const double* b, double* c, double beta)
{
  *b = a*beta;
   return;
}

Is there any way to make clang generate llvm code for the static functions?

Thanks
Sincerely
Arvind

-- 
Arvind Sudarsanam
Utah State University
Phone: (435) 512-7769
E-mail: theonemorpheus at gmail.com
Web-site: http://cc.usu.edu/~asudarsanam



More information about the llvm-dev mailing list