[LLVMdev] Generating libcalls and operation legalization

Scott Michel scottm at aero.org
Thu Jan 29 10:14:56 PST 2009


I understand why SelectionDAGLegalize is a completely hidden class  
(but does it really need to be completely hidden?) However, if a  
target backend has to generate a libcall, shouldn't there be an  
exposed API to do this? Or should there be another bit added to the  
Legal/Custom/Expand/Promote enum to force generation of a libcall?

I'm trying to avoid duplicating work already done in the  
SelectionDAGLegalize source (ExpandLibCall) and want to make sure  
that both the call and the callseq_end are properly legalzed.


-scooter



More information about the llvm-dev mailing list