[llvm-dev] RFC: Opaque pointer status and future direction

Tim Northover via llvm-dev llvm-dev at lists.llvm.org
Thu Dec 19 11:15:15 PST 2019


Hi Kevin,

On Thu, 19 Dec 2019 at 18:44, Kevin Neal via llvm-dev
<llvm-dev at lists.llvm.org> wrote:
> The IRBuilder's CreateConstrainedFPCall() also needs to be changed.
>
> I got stuck when I found that Intrinsic::getDeclaration() threw away the info I needed, and changing it was going to be a rather large task due to the number of callers.

Could you elaborate on that? I did actually discover that function
needed modification the other day, but converting it to take a
"Function *" seemed to satisfy Clang (and make the implementation
simpler).

My current understanding is that Intrinsic::getDeclaration returns a
Function that *does* have the necessary info
(Function::getFunctionType, though CreateCall can be used directly).

Cheers.

Tim.


More information about the llvm-dev mailing list