[PATCH] D74675: LowerMatrixIntrinsics: Avoid use of deprecated CreateCall methods

Nicolai Hähnle via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Feb 15 12:54:52 PST 2020


nhaehnle created this revision.
nhaehnle added a reviewer: t.p.northover.
Herald added a subscriber: hiraditya.
Herald added a project: LLVM.
nhaehnle added a child revision: D74676: OpaquePtr: IRBuilder: Add deprecated attribute on CreateCall methods.

Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D74675

Files:
  llvm/lib/Transforms/Scalar/LowerMatrixIntrinsics.cpp


Index: llvm/lib/Transforms/Scalar/LowerMatrixIntrinsics.cpp
===================================================================
--- llvm/lib/Transforms/Scalar/LowerMatrixIntrinsics.cpp
+++ llvm/lib/Transforms/Scalar/LowerMatrixIntrinsics.cpp
@@ -742,7 +742,7 @@
       if (AllowContraction) {
         // Use fmuladd for floating point operations and let the backend decide
         // if that's profitable.
-        Value *FMulAdd = Intrinsic::getDeclaration(
+        Function *FMulAdd = Intrinsic::getDeclaration(
             Func.getParent(), Intrinsic::fmuladd, A->getType());
         return Builder.CreateCall(FMulAdd, {A, B, Sum});
       }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D74675.244837.patch
Type: text/x-patch
Size: 650 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200215/6230e3bc/attachment.bin>


More information about the llvm-commits mailing list