[LLVMdev] referencing call signature in llvm for k&r style function calls

reed kotler rkotler at mips.com
Tue Dec 10 14:01:32 PST 2013


i'm looking at IR in one of my passes.

if I have something like:

float p();

the IR "call instruction" shows the calling function as being null.

what is the correct way to determine the signature?

in this case

float p();

int main() {
float x1 = p();
float x2 = p(x1);
}

I need to know the parameters and return type.

Tia.

Reed







More information about the llvm-dev mailing list