[LLVMdev] [DragonEgg] Why Fortran's "call flush()" is converted to "call void bitcast (void (...)* @_gfortran_flush_i4 to void (i8*)*)(i8* null) nounwind" ?

Anton Korobeynikov anton at korobeynikov.info
Tue Jul 17 13:43:15 PDT 2012


> Thanks, Duncan, makes sense! I suppose you meant something like this:
>
>                     Function* callee = dyn_cast<Function>(
>                         call->getCalledValue()->stripPointerCasts());
>                     if (!callee) continue;
Yes. Note that you'll receive varargs function here.

-- 
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University



More information about the llvm-dev mailing list