VPIntrinsic::getDeclarationForParams creates a vp intrinsic declaration for parameters you want to call it with.
This is in preparation of a new builder class that makes emitting vp intrinsic code nearly as convenient as using a plain ir builder (aka VectorBuilder, to be used by D99750).
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Unit Tests
Time | Test | |
---|---|---|
1,020 ms | x64 debian > libomp.lock::omp_init_lock.c |
Event Timeline
llvm/lib/IR/IntrinsicInst.cpp | ||
---|---|---|
393 | Is this written this way because of the TODO? It seems like this could just be auto *VPFunc = Intrinsic::getDeclaration(M, VPID, Params[0]->getType()); Which avoids the SmallVector. |
llvm/lib/IR/IntrinsicInst.cpp | ||
---|---|---|
393 | It's because of the todo.. other intrinsics will need multiple demangling types (eg vp.fptosi). No reason not to simplify it for now, though. |
Is this written this way because of the TODO? It seems like this could just be
Which avoids the SmallVector.